include("../../config/conn.php"); include("../../config/function.php"); sesCheck_m(); $bh=$_GET[bh]; $sj=date("Y-m-d H:i:s"); $useridhf=returnuserid($_SESSION[SHOPUSER]); $sqltask="select * from yjcode_task where bh='".$bh."' and taskty=0 and zt=3 and useridhf=".$useridhf."";mysql_query("SET NAMES 'GBK'");$restask=mysql_query($sqltask); if(!$rowtask=mysql_fetch_array($restask)){php_toheader("taskhflist.php");} if($_GET[control]=="ys"){ $bh=$_GET[bh]; updatetable("yjcode_task","zt=4 where id=".$rowtask[id]); $oksj=date("Y-m-d H:i:s",strtotime("+".$rowcontrol[taskoksj]." day")); updatetable("yjcode_taskhf","ystxt='".sqlzhuru($_POST[content])."',oksj='".$oksj."' where bh='".$bh."' and ifxz=1 and useridhf=".$useridhf." and taskty=0"); $sj=date("Y-m-d H:i:s"); $txt="已经完成任务,发起验收申请,雇主需要在".$oksj."前处理本次验收"; intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$rowtask[userid].",".$useridhf.",2,'".$txt."','".$sj."',''"); php_toheader("taskhflist.php"); } ?>