include("../../config/conn.php"); include("../../config/function.php"); sesCheck_m(); $bh=$_GET[bh]; $hfid=$_GET[hfid]; $sj=date("Y-m-d H:i:s"); $useridhf=returnuserid($_SESSION[SHOPUSER]); $sqltaskhf="select * from yjcode_taskhf where bh='".$bh."' and useridhf=".$useridhf." and taskty=1 and zt=0 and id=".$hfid."";mysql_query("SET NAMES 'GBK'");$restaskhf=mysql_query($sqltaskhf); if(!$rowtaskhf=mysql_fetch_array($restaskhf)){php_toheader("taskhflist1.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("taskhflist1.php");} if($_GET[control]=="ys"){ $oksj=date("Y-m-d H:i:s",strtotime("+".$rowcontrol[taskoksj]." day")); updatetable("yjcode_taskhf","ystxt='".sqlzhuru($_POST[content])."',oksj='".$oksj."',zt=1 where id=".$hfid); $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("taskhflist1.php"); } ?>