当前位置: 首页>>代码示例>>PHP>>正文


PHP page::showpage方法代码示例

本文整理汇总了PHP中page::showpage方法的典型用法代码示例。如果您正苦于以下问题:PHP page::showpage方法的具体用法?PHP page::showpage怎么用?PHP page::showpage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在page的用法示例。


在下文中一共展示了page::showpage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: grid

 public function grid()
 {
     $this->actionMenu = array(array('name' => '添加社区', 'url' => utils::getUrl('admin/home/add/' . base64_encode($this->url))));
     $this->menuTitle = '社区管理列表';
     $page = request::getParam('page', 1);
     $pageSize = request::getParam('pageSize', 10);
     $tableParam = array('page' => $page, 'pageSize' => $pageSize, 'isCount' => true);
     $homeList = $this->homeModel->select($tableParam);
     $pageObj = new page();
     $pageStr = $pageObj->showpage($homeList['count'], $page, $pageSize);
     $data = array('homeList' => $homeList, 'pageStr' => $pageStr);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:13,代码来源:homeController.php

示例2: grid

 public function grid()
 {
     $this->menuTitle = '店铺列表';
     $page = request::getParam('page', 1);
     $pageSize = request::getParam('pagesize', 20);
     $shopParam = array('page' => $page, 'pageSize' => $pageSize, 'isCount' => true);
     $shopList = $this->shopObj->select($shopParam);
     //获取店铺类型
     $shopTypeObj = new shopTypeModel();
     $shopTypeList = $shopTypeObj->getAllShopType();
     $pageObj = new page();
     $pageStr = $pageObj->showpage($shopList['count'], $page, $pageSize);
     $data = array('shopList' => $shopList, 'shopTypeList' => $shopTypeList, 'pageStr' => $pageStr);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:15,代码来源:shopController.php

示例3: grid

 public function grid()
 {
     $this->actionMenu = array(array('name' => '所有订单', 'url' => utils::getUrl('admin/order/grid/')));
     $this->menuTitle = '订单管理';
     $page = request::getParam('page', 1);
     $pageSize = request::getParam('pageSize', 20);
     $tableParam = array('page' => $page, 'pageSize' => $pageSize, 'isCount' => true);
     $orderResult = $this->orderObj->select($tableParam);
     $pageObj = new page();
     $pageStr = $pageObj->showpage($orderResult['count'], $page, $pageSize);
     $payStatusArr = orderService::$orderPayStatus;
     $orderStatusArr = orderService::$orderStatus;
     $data = array('orderResult' => $orderResult, 'payStatusArr' => $payStatusArr, 'orderStatusArr' => $orderStatusArr, 'pageStr' => $pageStr);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:15,代码来源:orderController.php

示例4: grid

 /**
  *
  */
 public function grid()
 {
     $page = request::getParam('page', 1);
     $pageSize = request::getParam('pagesize', 20);
     $pageObj = new page();
     $whereParam = array('page' => $page, 'pageSize' => $pageSize, 'isCount' => true);
     $userService = utils::getService('user');
     $userList = $this->userObj->select($whereParam);
     $utypeList = $userService->utype;
     $statusList = $userService->pstatus;
     $userService = utils::getService('user');
     $isIdentityChcekArr = $userService->isIdentityCheck;
     $pageStr = $pageObj->showpage($userList['count'], $page, $pageSize);
     $data = array('userList' => $userList, 'pageStr' => $pageStr, 'utypeList' => $utypeList, 'statusList' => $statusList, 'isIdentityChcekArr' => $isIdentityChcekArr);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:19,代码来源:userController.php

示例5: grid

 public function grid()
 {
     $page = request::getParam('page', 1);
     $pageSize = request::getParam('pagesize', 20);
     $pageObj = new page();
     $whereParam = array('page' => $page, 'pageSize' => $pageSize, 'isCount' => true);
     $applicationList = $this->userApplicationObj->select($whereParam);
     if ($applicationList) {
         $userObj = new userModel();
         foreach ($applicationList['resultList'] as &$appUser) {
             $userInfo = $userObj->find($appUser['user_id']);
             $appUser['userInfo'] = $userInfo;
         }
     }
     $pageStr = $pageObj->showpage($applicationList['count'], $page, $pageSize);
     $businessAppService = utils::getService('businessApp');
     $pstatusList = $businessAppService->status;
     $data = array('pageStr' => $pageStr, 'applicationList' => $applicationList['resultList'], 'pstatusList' => $pstatusList);
     $this->setView($data);
 }
开发者ID:lzmyoyo,项目名称:ninxingfu,代码行数:20,代码来源:businessApplicationController.php


注:本文中的page::showpage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。