include("../config/conn.php"); include("../config/function.php"); $ty1id=intval($_GET[ty1id]);$ty1name=returntasktype(1,$ty1id); $ty2id=intval($_GET[ty2id]);$ty2name=returntasktype(2,$ty2id); $_SESSION["tzURL"]=weburl."renwu/fabu.php?ty1id=".$ty1id."&ty2id=".$_GET[ty2id]; sesCheck(); if($_GET[control]=="add"){ zwzr(); $wczq=intval($_POST[twczq]); $yusuan1=intval($_POST[tyusuan1]); $yusuan2=intval($_POST[tyusuan2]); if($yusuan1==$yusuan2){$yusuantype=1;}else{$yusuantype=2;} $xyrs=intval($_POST[txyrs]); if($wczq<=0 || $yusuan1<=0 || $yusuan2<=0 || $xyrs<=0){Audit_alert("参数有误","fabu.php");} $bh=returnbh()."-".$rowuser[id]; if(empty($rowcontrol[taskok])){$zt=1;}else{$zt=0;} intotable("yjcode_renwu","bh,ty1id,ty2id,userid,sj,lastsj,wczq,bmjzsj,tit,txt,yusuan1,yusuan2,yusuantype,xyrs,djl,zt,renwuzt,ingnum","'".$bh."',".intval($_POST[ty1id]).",".intval($_POST[ty2id]).",".$rowuser[id].",".strtotime($sj).",".strtotime($sj).",".$wczq.",".strtotime(sqlzhuru($_POST[tbmjzsj])).",'".sqlzhuru($_POST[ttit])."','".sqlzhuru1($_POST[content])."',".$yusuan1.",".$yusuan2.",".$yusuantype.",".$xyrs.",1,".$zt.",1,0"); $id=mysqli_insert_id($conn); php_toheader("view".$id.".html"); } ?>