viewAction.php 902 B

1234567891011121314151617181920212223242526272829303132
  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, $arr)
  25. {
  26. //$where = $arr['wherestr'];
  27. //$modeid = $arr['modeid'];
  28. }
  29. }