Commit 48ff9877 by 冷斌

踢人

parent d2ce7743
...@@ -210,7 +210,51 @@ class LiveingController extends AdminbaseController { ...@@ -210,7 +210,51 @@ class LiveingController extends AdminbaseController {
function image() function image()
{ {
echo 1;die; $map=array();
if($_REQUEST['start_time']!=''){
$map['starttime']=array("gt",strtotime($_REQUEST['start_time']));
$_GET['start_time']=$_REQUEST['start_time'];
}
if($_REQUEST['end_time']!=''){
$map['starttime']=array("lt",strtotime($_REQUEST['end_time']));
$_GET['end_time']=$_REQUEST['end_time'];
}
if($_REQUEST['start_time']!='' && $_REQUEST['end_time']!='' ){
$map['starttime']=array("between",array(strtotime($_REQUEST['start_time']),strtotime($_REQUEST['end_time'])));
$_GET['start_time']=$_REQUEST['start_time'];
$_GET['end_time']=$_REQUEST['end_time'];
}
if($_REQUEST['keyword']!=''){
$map['uid']=$_REQUEST['keyword'];
$_GET['keyword']=$_REQUEST['keyword'];
}
$live=M("users_live_image");
$count=$live->where($map)->count();
$page = $this->page($count, 20);
$lists = $live
->where($map)
->order("starttime DESC")
->limit($page->firstRow . ',' . $page->listRows)
->select();
foreach($lists as $k=>$v){
$userinfo=getUserInfo($v['uid']);
$v['userinfo']=$userinfo;
$lists[$k]=$v;
}
var_dump($lists);
die;
$this->assign('lists', $lists);
$this->assign('formget', $_GET);
$this->assign("page", $page->show('Admin'));
$this->display();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment