|
|
@ -268,20 +268,62 @@ class PromoteController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 消息列表
|
|
|
|
// 消息列表
|
|
|
|
public function msg_list($type=56){
|
|
|
|
public function msg_list($type=56,$p=0){
|
|
|
|
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
|
|
|
|
|
$row = $_REQUEST['row'];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$row = 10;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$page = $p ? $p : 1; //默认显示第一页数据
|
|
|
|
if($type==51){
|
|
|
|
if($type==51){
|
|
|
|
$data_list = M("document","sys_")->limit('0,50')->where("category_id=51 and status=1")->order("update_time desc")->select(); //游戏咨询
|
|
|
|
$data_list = M("document","sys_")->where("category_id=51 and status=1")->order("update_time desc") ->page($page, $row)->select(); //游戏咨询
|
|
|
|
|
|
|
|
$count = M("document","sys_")->where("category_id=51 and status=1")->count();
|
|
|
|
}elseif ($type==50){
|
|
|
|
}elseif ($type==50){
|
|
|
|
$data_list = null;
|
|
|
|
$data_list = null;
|
|
|
|
|
|
|
|
$count = 0;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$data_list = M("document","sys_")->limit('0,50')->where("category_id=56 and status=1")->order("update_time desc")->select(); //游戏公告
|
|
|
|
$data_list = M("document","sys_")->limit('0,50')->where("category_id=56 and status=1")->order("update_time desc")->page($page, $row)->select(); //游戏公告
|
|
|
|
|
|
|
|
$count = M("document","sys_")->where("category_id=56 and status=1")->count();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$parameter['p'] = I('get.p', 1);
|
|
|
|
|
|
|
|
$parameter['row'] = I('get.row');
|
|
|
|
|
|
|
|
$page = set_pagination($count, $row, $parameter);
|
|
|
|
|
|
|
|
if ($page) {
|
|
|
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->meta_title = "公告列表";
|
|
|
|
$this->meta_title = "公告列表";
|
|
|
|
$this->assign("type", $type);
|
|
|
|
$this->assign("type", $type);
|
|
|
|
$this->assign("data_list", $data_list);
|
|
|
|
$this->assign("data_list", $data_list);
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* public function page_show($model,$map,$p=1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (isset($_REQUEST['row'])) {
|
|
|
|
|
|
|
|
$row = $_REQUEST['row'];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$row = 10;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->meta_title = "平台币充值";
|
|
|
|
|
|
|
|
$page = $p ? $p : 1; //默认显示第一页数据
|
|
|
|
|
|
|
|
$data = M($model, 'tab_')
|
|
|
|
|
|
|
|
->where($map)
|
|
|
|
|
|
|
|
->order('id DESC')
|
|
|
|
|
|
|
|
->page($page, $row)
|
|
|
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$count = M($model, "tab_")->where($map)->count();
|
|
|
|
|
|
|
|
$parameter = $map;
|
|
|
|
|
|
|
|
$parameter['p'] = I('get.p', 1);
|
|
|
|
|
|
|
|
$parameter['row'] = I('get.row');
|
|
|
|
|
|
|
|
$page = set_pagination($count, $row, $parameter);
|
|
|
|
|
|
|
|
if ($page) {
|
|
|
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->assign("data_list", $data);
|
|
|
|
|
|
|
|
$this->display();
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 我的基本信息
|
|
|
|
* 我的基本信息
|
|
|
|