mode_meetjyAction.php 729 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. class mode_meetjyClassAction extends inputAction{
  3. protected function savebefore($table, $arr, $id, $addbo){
  4. $mid = $arr['mid'];
  5. $ors = m('meet')->getone($mid);
  6. if(!$ors)return '会议不存在';
  7. $darr['type'] = 2;
  8. $darr['title'] = $ors['title'];
  9. $darr['joinid'] = $ors['joinid'];
  10. return array(
  11. 'rows' => $darr
  12. );
  13. }
  14. protected function saveafter($table, $arr, $id, $addbo){
  15. }
  16. //读取会议列表(只能是10天内的)
  17. public function meetdata()
  18. {
  19. $dt = c('date')->adddate($this->rock->date,'d',-10);
  20. $rows = m('meet')->getrows("`type`=0 and `state`>0 and `startdt`>='$dt'",'id as value,title as name','startdt desc');
  21. return $rows;
  22. }
  23. }
粤ICP备19079148号