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