viewAction.php 983 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. class viewClassAction extends Action
  3. {
  4. public function loaddataAjax()
  5. {
  6. $id = (int)$this->get('id');
  7. $setid = (int)$this->get('mid');
  8. $arr['data'] = m('flow_extent')->getone($id);
  9. $arr['wherelist'] = m('flow_where')->getall('setid='.$setid.'','id,name','sort');
  10. $arr['fieldsarr'] = m('flow_element')->getrows('mid='.$setid.' and `iszb`=0','name,fields','`sort`');
  11. echo json_encode($arr);
  12. }
  13. public function afterstroesss($table,$rows)
  14. {
  15. foreach($rows as $k=>$rs){
  16. $rows[$k]['modename'] = $this->db->getmou('[Q]flow_set','name',$rs['modeid']);
  17. $rows[$k]['whereid'] = $this->db->getmou('[Q]flow_where','name',$rs['whereid']);
  18. }
  19. return array(
  20. 'rows'=>$rows,
  21. //'modearr' => m('mode')->getmodearr(),
  22. );
  23. }
  24. public function flowview_savebefore($table, $das)
  25. {
  26. $str = m('where')->checkwhere($das['modeid'], $das['wherestr']);
  27. if($str)return $str;
  28. }
  29. public function autographAction()
  30. {
  31. }
  32. }
粤ICP备19079148号