|
|
|
@ -29,8 +29,36 @@ class IndexController extends AdminController {
|
|
|
|
|
* @author cz
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public function index(Type $var = null)
|
|
|
|
|
public function index()
|
|
|
|
|
{
|
|
|
|
|
if(session('user_auth.uid')){
|
|
|
|
|
$data=M('Member')
|
|
|
|
|
->field('uid,nickname,username,us.last_login_time,us.last_login_ip,login')
|
|
|
|
|
->join('sys_ucenter_member as us on sys_member.uid = us.id')
|
|
|
|
|
->where(array('uid'=>session('user_auth.uid')))
|
|
|
|
|
->find();
|
|
|
|
|
header("Content-type: text/html; charset=utf-8");
|
|
|
|
|
if(is_administrator()){
|
|
|
|
|
$data['group']='超级管理员';
|
|
|
|
|
}else{
|
|
|
|
|
$data['group'] = get_auth_group_name($data['uid']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$this->assign('data',$data);
|
|
|
|
|
$this->indextt();
|
|
|
|
|
|
|
|
|
|
$this->meta_title = '管理首页';
|
|
|
|
|
|
|
|
|
|
// 日历
|
|
|
|
|
$this->calendar();
|
|
|
|
|
|
|
|
|
|
$tm = strtotime("-1 day");
|
|
|
|
|
dump();
|
|
|
|
|
$allcount = M("IndexChart","tab_")->field("all_count")->where("`date` = '{$tm}'")->find();
|
|
|
|
|
dump($allcount);
|
|
|
|
|
|
|
|
|
|
//累计统计
|
|
|
|
|
|
|
|
|
|
# code...
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|