include("../config/conn.php"); include("../config/function.php"); sesCheck(); $userid=returnuserid($_SESSION[SHOPUSER]); if($_GET[control]=="ok"){ //完成 $bh=$_GET[bh]; while0("*","yjcode_taskhf where bh='".$bh."' and taskty=1 and id=".$_GET[id]." and useridhf=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("taskhflist1.php");} $sj=date("Y-m-d H:i:s"); $txt="已经完成任务,发起验收申请"; intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$bh."',".$row[userid].",".$userid.",2,'".$txt."','".$sj."',''"); updatetable("yjcode_taskhf","zt=1 where id=".$_GET[id]." and zt=0 and useridhf=".$userid); php_toheader("taskhflist1.php"); }elseif($_GET[control]=="pt"){ //申请平台介入 while0("*","yjcode_taskhf where id=".$_GET[id]." and taskty=1 and zt=3 and useridhf=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("taskhflist1.php");} updatetable("yjcode_taskhf","zt=4 where id=".$row[id]); $sj=date("Y-m-d H:i:s"); $txt="对卖家验收不通过的做法不赞同,要求平台介入"; intotable("yjcode_tasklog","bh,userid,useridhf,admin,txt,sj,fj","'".$row[bh]."',".$row[userid].",".$userid.",2,'".$txt."','".$sj."',''"); php_toheader("taskhflist1.php"); } ?>