fetch1("select wfid,wfname from {$dbtbpre}enewsworkflow where wfid='$wfid'"); if(!$wfr['wfid']) { printerror('ErrorUrl',''); } $enews=ehtmlspecialchars($_GET['enews']); $postword='增加节点'; $url="管理工作流 > ".$wfr[wfname]." > 管理节点 > 增加节点"; //复制 if($enews=="AddWorkflowItem"&&$_GET['docopy']) { $tid=(int)$_GET['tid']; $r=$empire->fetch1("select * from {$dbtbpre}enewsworkflowitem where tid='$tid'"); $url="管理工作流 > ".$wfr[wfname]." > 管理节点 > 复制节点:".$r[tname].""; $username=substr($r[username],1,-1); } //修改 if($enews=="EditWorkflowItem") { $postword='修改节点'; $tid=(int)$_GET['tid']; $r=$empire->fetch1("select * from {$dbtbpre}enewsworkflowitem where tid='$tid'"); $url="管理工作流 > ".$wfr[wfname]." > 管理节点 > 修改节点:".$r[tname].""; $username=substr($r[username],1,-1); } //用户组 $group=''; $groupsql=$empire->query("select groupid,groupname from {$dbtbpre}enewsgroup order by groupid"); while($groupr=$empire->fetch($groupsql)) { $select=''; if(strstr($r[groupid],','.$groupr[groupid].',')) { $select=' selected'; } $group.=""; } //部门 $userclass=''; $ucsql=$empire->query("select classid,classname from {$dbtbpre}enewsuserclass order by classid"); while($ucr=$empire->fetch($ucsql)) { $select=''; if(strstr($r[userclass],','.$ucr[classid].',')) { $select=' selected'; } $userclass.=""; } //原节点 $items=''; $maxtno=0; $ytsql=$empire->query("select tid,tname,tno from {$dbtbpre}enewsworkflowitem where wfid='$wfid'"); while($ytr=$empire->fetch($ytsql)) { if($ytr[tno]>$maxtno) { $maxtno=$ytr[tno]; } $select=''; if($ytr[tid]==$r[tbdo]) { $select=' selected'; } $items.=""; } if($enews=="AddWorkflowItem") { $r[tno]=$maxtno+1; } db_close(); $empire=null; ?>
位置:=$url?> |