mode_flowsetAction.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * 此文件是流程模块【flowset.流程模块列表】对应控制器接口文件。
  4. */
  5. class mode_flowsetClassAction extends inputAction{
  6. public $pobj;
  7. protected function savebefore($table, $arr, $id, $addbo){
  8. if(!in_array('filelx', $this->mallfields)){
  9. $this->db->addFields('[Q]'.$table.'','filelx','tinyint(1)','0','录入页相应文件0选上传,1必须上传');
  10. }
  11. include_once('webmain/main/flow/flowAction.php');
  12. $this->pobj = new flowClassAction();
  13. return $this->pobj->flowsetsavebefore($table, $arr);
  14. }
  15. protected function saveafter($table, $arr, $id, $addbo){
  16. $this->pobj->flowsetsaveafter($table, $arr);
  17. }
  18. public function typedata()
  19. {
  20. $arr = array();
  21. $rows = $this->db->getall('select `type` from `[Q]flow_set` group by `type` order by `sort`');
  22. foreach($rows as $k=>$rs)$arr[] = array('value'=>'','name'=>$rs['type']);
  23. return $arr;
  24. }
  25. public function getothernrAjax()
  26. {
  27. $mkid = (int)$this->get('mkid','0');
  28. $ind = (int)$this->get('ind','0');
  29. $bh = 'flowelement';
  30. $atype = 'all';
  31. //读取数据
  32. $flow = m('flow')->initflow($bh);//初始化模块
  33. $cont = $flow->getrowstable($atype, 'and `mid`='.$mkid.'', 100,'name,fields,fieldstype,islu,isbt,iszb');//读取表格数据
  34. return $cont;
  35. }
  36. }
粤ICP备19079148号