operatorData = $this->getUser (); $this->objDUserInfo = new \Cas\Dao\UserInfo (); } /** * 页面:用户列表 * 列表:http://cas.lishuy.com/?c=Admin_Platform_UserInfo&a=PageList */ public function doPageList(){ $page = Request::varGetInt ( 'page', 1 ); $size = 20; $offset = ($page - 1) * $size; $limit = "{$offset},{$size}"; $condition = array(); $total_num = $this->objDUserInfo->totals ( $condition ); $url_tpl = Request::schemeDomain () . "?c=Admin_Platform_UserInfo&a=PageList"; $url_tpl .= "&page={page}"; $objPage = new Page ( $total_num, $url_tpl, $page, $size ); $page_html = $objPage->html (); $order = 'id desc'; $ids = $this->objDUserInfo -> findIdsBy($condition , $limit, $order ); $userData = $this->objDUserInfo->gets($ids); $thisPageUserData = $this->objDUserInfo -> gets($ids); $this->tpl = 'admin/platform/user'; $title = '平台用户'; $this->setOutput('title', $title); $this->setOutput('menu_active', array('name' => 'platformusers', 'item' => '')); //激活菜单 $this->addNavMenu($title); $this->addNavMenu('平台设置'); $this->setOutput ( 'page_html', $page_html ); // 分页Html $this->setOutput ( 'thisPageUserData', $thisPageUserData );//当前页面ID $this->setOutput ('pagePublicData', $this->getPagePublicData()); // 后台管理相关数据 } public function display() { return $this->render (); } }