*/ class DemoController extends ThinkController { public function lists(){ if(isset($_REQUEST['user_account'])){ $map['user_account']=array('like','%'.trim($_REQUEST['user_account']).'%'); unset($_REQUEST['user_account']); } if(isset($_REQUEST['time-start'])&&isset($_REQUEST['time-end'])){ $map['pay_time'] =array('BETWEEN',array(strtotime($_REQUEST['time-start']),strtotime($_REQUEST['time-end'])+24*60*60-1)); unset($_REQUEST['time-start']);unset($_REQUEST['time-end']); } if(isset($_REQUEST['game_name'])){ if($_REQUEST['game_name']=='全部'){ unset($_REQUEST['game_name']); }else{ $map['game_name']=$_REQUEST['game_name']; unset($_REQUEST['game_name']); } } if(isset($_REQUEST['pay_order_number'])){ $map['pay_order_number']=array('like','%'.trim($_REQUEST['pay_order_number']).'%'); unset($_REQUEST['pay_order_number']); } $model = array( 'm_name' => 'Demo', 'map' => $map, 'order' =>'id desc', 'title' => "Demo_title", 'template_list' =>'lists', ); $user = A('User','Event'); $user->user_join_($model,$_GET['p']); } }