mode_newsAction.php 554 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. */
  4. class mode_newsClassAction extends inputAction{
  5. protected function savebefore($table, $arr, $id, $addbo){
  6. $uarr = array();
  7. if(!isset($arr['issms']))$uarr['issms']=0;
  8. return array(
  9. 'rows' => $uarr
  10. );
  11. }
  12. protected function saveafter($table, $arr, $id, $addbo){
  13. }
  14. //获取新闻
  15. public function getnewsAjax()
  16. {
  17. $typename = $this->post('typename');
  18. $rows = m('flow')->initflow('news')->getflowrows($this->adminid,'my',5,"and `typename`='$typename'");
  19. return $rows;
  20. }
  21. }
粤ICP备19079148号