Esempio n. 1
0
 function export()
 {
     $model = $this->getModel('sn_code');
     // 搜索条件
     $map['addon'] = $this->addon;
     $map['target_id'] = I('target_id');
     $map['token'] = get_token();
     session('common_condition', $map);
     parent::common_export($model);
 }
Esempio n. 2
0
 function output()
 {
     $model = $this->getModel($this->table);
     $map['manager_id'] = $this->mid;
     session('common_condition', $map);
     // 搜索条件
     // $map ['coupon_id'] = I ( 'coupon_id' );
     // $search= I ( 'search' );
     // dump($search);
     // if ($search){
     // $this->assign('search',$search);
     // $map ['name'] = array (
     // 'like',
     // '%' . htmlspecialchars ( $search ) . '%'
     // );
     // session ( 'common_condition', $map );
     // }
     parent::common_export($model);
 }
 function export($model = null)
 {
     is_array($model) || ($model = $this->getModel('sport_award'));
     parent::common_export($this->model);
 }