You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace Admin\Controller;
|
|
|
|
/**
|
|
* 后台首页控制器
|
|
* @author 麦当苗儿 <zuojiazi@vip.qq.com>
|
|
*/
|
|
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']);
|
|
}
|
|
|
|
} |