信呼OA版本v2.3.8
This commit is contained in:
31
webmain/flow/input/mode_meetjyAction.php
Normal file
31
webmain/flow/input/mode_meetjyAction.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
class mode_meetjyClassAction extends inputAction{
|
||||
|
||||
|
||||
protected function savebefore($table, $arr, $id, $addbo){
|
||||
|
||||
$mid = $arr['mid'];
|
||||
$ors = m('meet')->getone($mid);
|
||||
if(!$ors)return '会议不存在';
|
||||
$darr['type'] = 2;
|
||||
$darr['title'] = $ors['title'];
|
||||
$darr['joinid'] = $ors['joinid'];
|
||||
return array(
|
||||
'rows' => $darr
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
protected function saveafter($table, $arr, $id, $addbo){
|
||||
|
||||
}
|
||||
|
||||
//读取会议列表(只能是10天内的)
|
||||
public function meetdata()
|
||||
{
|
||||
$dt = c('date')->adddate($this->rock->date,'d',-10);
|
||||
$rows = m('meet')->getrows("`type`=0 and `state`>0 and `startdt`>='$dt'",'id as value,title as name','startdt desc');
|
||||
return $rows;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user