1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- namespace Cas\Controller\Admin\Platform;
- use Cas\Module\Lottery;
- use Cas\Dao\PlatformBulletin;
- use KIF\Core\Request;
- use Cas\Dao\LotteryEvents;
- use Cas\Controller\Admin\Controller;
- use KIF\Page\Page;
- use Cas\Dao\Platform;
- /**
- * "平台相关" - 用户列表
- *
- * @author lihuanchun
- */
- class UserInfo extends Controller {
- private $objDUserInfo;
- private $operatorData;
-
- /**
- * 默认
- */
- public function doDefault() {
- }
-
- /**
- * 初始化
- */
- public function __construct() {
- header ( "Content-Type: text/html; charset=utf-8" );
- $this->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 ();
- }
- }
-
|