include("../config/conn.php"); include("../config/function.php"); sesCheck(); $bh=$_GET[bh]; $userid=returnuserid($_SESSION[SHOPUSER]); $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=0 and useridhf=".$userid."";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask); if(!$rowtask=mysql_fetch_array($restask)){php_toheader("taskhflist.php");} $sqltaskhf="select * from yjcode_taskhf where bh='".$bh."' and taskty=0 and useridhf=".$rowtask[useridhf]." and ifxz=1";mysql_query("SET NAMES 'GBK'");$restaskhf=mysql_query($sqltaskhf); if(!$rowtaskhf=mysql_fetch_array($restaskhf)){php_toheader("taskhflist.php");} //函数开始 if($_GET[control]=="add"){ zwzr(); $txt=sqlzhuru1($_POST[content]); $sj=date("Y-m-d H:i:s"); intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$rowtask[userid].",".$userid.",2,'".$txt."','".$sj."',''"); php_toheader("taskgt.php?t=suc&bh=".$bh); } //函数结果 ?>