include("../../config/conn.php"); include("../../config/function.php"); sesCheck_m(); $bh=$_GET[bh]; $userid=returnuserid($_SESSION[SHOPUSER]); $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=0 and userid=".$userid."";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask); if(!$rowtask=mysql_fetch_array($restask)){php_toheader("tasklist.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("tasklist.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].",".$rowtask[useridhf].",1,'".$txt."','".$sj."',''"); php_toheader("taskgts.php?t=suc&bh=".$bh); } //函数结果 ?>