$farr=m('flow_element')->getrows("`mid`='$modeid' and `islu`=1 and `iszb`=$iszb",'`name`,`fields`,`isbt`,`fieldstype`,`savewhere`,`dev`,`data`','`sort`');
$fieldarr=m('flow_element')->getrows("`mid`='$modeid' and `iszb`=0 $stwhe",'fields,fieldstype,name,dev,data,isbt,islu,attr,iszb,issou,gongsi,placeholder','`sort`');
$rows=m('flow_element')->getrows("`mid`='$this->modeid' and `iszb`=0",'`name`,`fields`,`isbt`,`iszs`,`fieldstype`,`savewhere`,`data`,`isdr`,`iszb`,`issou`,`islu`,`islb`,`isonly`','`sort`');
$rows=m('flow_element')->getrows("`mid`='$this->modeid' and `iszb`=0",'`name`,`fields`,`isbt`,`iszs`,`fieldstype`,`savewhere`,`data`,`isdr`,`iszb`,`issou`,`islu`,`islb`,`isonly`','`sort`');
...
@@ -200,13 +201,13 @@ class flowModel extends Model
...
@@ -200,13 +201,13 @@ class flowModel extends Model
$logrows=$this->flogmodel->getrows($this->mwhere.' and `modeid`='.$this->modeid.' and `courseid`>0 and `courseid`<88888 and `status`>0 and `valid`=1');
$logrows=$this->flogmodel->getrows($this->mwhere.' and `modeid`='.$this->modeid.' and `courseid`>0 and `courseid`<88888 and `status`>0 and `valid`=1');
$tuicourse=$this->flogmodel->getall($this->mwhere.' and `courseid`>0 and `valid`=1 and `status`=1 and `step`<'.$step.'','`id`,`checkname`,`name`','`step` desc');
$tuicourse=$this->flogmodel->getall($this->mwhere.' and `courseid`>0 and `valid`=1 and `status`=1 and `step`<'.$step.'','`id`,`checkname`,`name`','`step` desc');
@@ -2462,7 +2490,7 @@ class flowModel extends Model
...
@@ -2462,7 +2490,7 @@ class flowModel extends Model
}
}
return'ok';
return'ok';
}
}
/**
/**
* 加入日程提醒
* 加入日程提醒
*/
*/
...
@@ -2480,7 +2508,7 @@ class flowModel extends Model
...
@@ -2480,7 +2508,7 @@ class flowModel extends Model
m('schedule')->insert($barr);
m('schedule')->insert($barr);
return'ok';
return'ok';
}
}
/*
/*
* 获取操作菜单 $flx=0 从操作上点出来 1详情上展示的
* 获取操作菜单 $flx=0 从操作上点出来 1详情上展示的
*/
*/
...
@@ -2491,7 +2519,7 @@ class flowModel extends Model
...
@@ -2491,7 +2519,7 @@ class flowModel extends Model
$rows=$this->db->getrows('[Q]flow_menu',"`setid`='$this->modeid' ".$where." and `status`=1",'id,wherestr,name,statuscolor,statusvalue,num,islog,issm,type,upgcont','`sort`');
$rows=$this->db->getrows('[Q]flow_menu',"`setid`='$this->modeid' ".$where." and `status`=1",'id,wherestr,name,statuscolor,statusvalue,num,islog,issm,type,upgcont','`sort`');
$arr=array();
$arr=array();
$bfrom=$this->rock->post('bfrom');
$bfrom=$this->rock->post('bfrom');
foreach($rowsas$k=>$rs){
foreach($rowsas$k=>$rs){
$wherestr=$rs['wherestr'];
$wherestr=$rs['wherestr'];
$bo=false;
$bo=false;
...
@@ -2521,31 +2549,31 @@ class flowModel extends Model
...
@@ -2521,31 +2549,31 @@ class flowModel extends Model