xinjian.php
Query($suser);?>新建流程
请选择节点人员:{ $v[2]}"; } ?>$v) { //根据用户名查找姓名 $sname="select name from users where uid='{ $v}'"; $name=$db->strquery($sname); echo "{ $k}--{ $name}--"; } } ?>请输入流程名称:
chuli.php
Query($sadd,1); foreach($attr as $v) { $saddpath="insert into flowpath values('','{ $code}','{ $v}','{ $k}')"; $db->Query($saddpath,1); } break; }
faqi.php
faqichuli.php
Query($sql,1)){ header("location:faqi.php");}
Query($suflow);?>审核流程
已结束 进行中
StrQuery($sorder);//次序号 //判断该用户在流程中的次序号是否等于流程走到哪 if($towhere==$order) { //处理流程名称 $sflowname="select name from liucheng where code='{ $flowcode}'"; $flowname=$db->strquery($sflowname);//流程名称 //处理发起者名称 $susername="select name from users where uid='{ $vuflow[2]}'"; $username=$db->strquery($susername);//发起者姓名 //处理是否结束 $jieshu=$vuflow[4]?"":""; echo" 流程名称 发起者 流程内容 是否结束 发起时间 操作 "; } } ?> { $flowname} { $username} { $vuflow[3]} { $jieshu} { $vuflow[5]} 通过
tongguo.php
Query($sql,1)){ $suflow="select * from userflow where ids='{ $code}'"; $auflow=$db->Query($suflow); $flowcode=$auflow[0][1];//流程代号 $towhere=$auflow[0][6];//走到哪了 //根据流程代号查询该流程下人员的个数 $scount="select count(*) from flowpath where code='{ $flowcode}'"; $count=$db->StrQuery($scount);//人员个数 //判断流程是否结束 if($towhere>=$count) { $sok="update userflow set isok=true where ids='{ $code}'"; $db->Query($sok,1); } header("location:shenhe.php");}
chakan.php
Query($sflow);?>查看流程
StrQuery($slna); //查询某个流程的所有uid $spath = "select uids from flowpath where code = '{ $v[0]}'"; $orders = $db->Query($spath); $attr = array(); //通过uid查询所有的姓名存到数组里面 foreach($orders as $c) { $sname = "select name from users where uid ='{ $c[0]}'"; $attr[] = $db->StrQuery($sname); } ?>流名称:审核人:StrQuery($sql); //通过流程代号查询流程数量 $scount = "select count(*) from flowpath where code = '{ $v[0]}'"; $row = $db->StrQuery($scount); //查询是否走完 if($tow>=$row) { echo "已完成"; break; } //通过流程代号和orders查询uid $suid = "select uids from flowpath where orders ='{ $tow}' and code = '{ $v[0]}'"; $auid = $db->StrQuery($suid); //通过uid查询姓名 $suidname = "select name from users where uid = '$auid'"; $aname = $db->StrQuery($suidname); ?> { $b} "; } else { echo " $b "; } } } ?>