本文整理匯總了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}