window.close();"; exit(); } //审核 $ecmscheck=(int)$_GET['ecmscheck']; $addecmscheck=''; $indexchecked=1; if($ecmscheck) { $addecmscheck='&ecmscheck='.$ecmscheck; $indexchecked=0; } $id=(int)$_GET['id']; $classid=(int)$_GET['classid']; if(!$id||!$classid||!$class_r[$classid][tbname]) { printerror('ErrorUrl',''); } //索引表 $index_r=$empire->fetch1("select checked from {$dbtbpre}ecms_".$class_r[$classid][tbname]."_index where id='$id' limit 1"); //返回表 $infotb=ReturnInfoMainTbname($class_r[$classid][tbname],$index_r['checked']); $nr=$empire->fetch1("select id,classid,userid,username,isqf,title from ".$infotb." where id='$id' limit 1"); if(!$nr['id']||$classid!=$nr[classid]||!$nr[isqf]) { printerror('ErrorUrl',''); } $r=$empire->fetch1("select id,wfid,tid,groupid,userclass,username,checknum,tstatus,checktno from {$dbtbpre}enewswfinfo where id='$id' and classid='$classid' limit 1"); if(!$r['id']) { printerror('ErrorUrl',''); } //工作流 if($r[tid]) { $cwfitemr=$empire->fetch1("select wfid,groupid,userclass,username from {$dbtbpre}enewsworkflowitem where tid='$r[tid]'"); if(strstr(','.$cwfitemr[groupid].',',','.$lur[groupid].',')||strstr(','.$cwfitemr[userclass].',',','.$lur[classid].',')||strstr(','.$cwfitemr[username].',',','.$lur[username].',')) { } else { //printerror("NotDoCheckUserLevel","history.go(-1)"); } } //工作流 $wfr=$empire->fetch1("select wfname from {$dbtbpre}enewsworkflow where wfid='$r[wfid]'"); //节点 $endwfitem=0; $wfitems=''; $wfitemsql=$empire->query("select tid,tname from {$dbtbpre}enewsworkflowitem where wfid='$r[wfid]' order by tno"); while($wfitemr=$empire->fetch($wfitemsql)) { if($r[checktno]=='100') { $endwfitem=1; } $wfitemsch='  '; $select=''; if($wfitemr[tid]==$r[tid]&&$endwfitem==0) { $select=' selected'; $wfitemsch='>'; } $wfitems.=""; } //记录 $logsql=$empire->query("select tid,username,checktime,checktext,checknum,checktype from {$dbtbpre}enewswfinfolog where id='$id' and classid='$classid' order by logid desc"); ?> 签发信息
信息:
工作流:,进度:
签发
操作 通过 返工 否决
评语
 
fetch($logsql)) { //节点 $itemr=$empire->fetch1("select tname from {$dbtbpre}enewsworkflowitem where tid='$logr[tid]'"); //操作 $st=''; if($logr['checktype']==1) { $st='通过'; } elseif($logr['checktype']==2) { $st='返工'; } elseif($logr['checktype']==3) { $st='否决'; } elseif($logr['checktype']==0) { $st='送审'; } ?>
操作记录
节点
操作
签发者
时间
评语