mode_flowsetAction.php 1.1 KB

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