當前位置: 首頁>>代碼示例>>PHP>>正文


PHP pager::GetPagerContent方法代碼示例

本文整理匯總了PHP中pager::GetPagerContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP pager::GetPagerContent方法的具體用法?PHP pager::GetPagerContent怎麽用?PHP pager::GetPagerContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pager的用法示例。


在下文中一共展示了pager::GetPagerContent方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: actionIndex

 /**
  * 
  * 訂單數據服務費列表
  * 
  */
 public function actionIndex()
 {
     $ecmsTaxModel = new EcmsTaxReceiptModel();
     $dataserviceModel = new DataServiceFeeModel();
     $plamfromType = CDict::$platform_type;
     $getData = $this->_get();
     $curr_page = $getData['page'] ? $getData['page'] : 1;
     $platform_type = $this->_get('platform_type');
     // 平台類型
     $platfromType = CDict::$platform_type;
     $whereSql = '';
     if ($getData['platform_type'] != '0' && $getData['platform_type']) {
         $whereSql .= "AND ORDERTYPE = '" . $getData['platform_type'] . "'";
     }
     if (strlen($getData['gbillno']) > 0) {
         $whereSql .= "AND GENERALBILLNO LIKE '%" . $getData['gbillno'] . "%'";
     }
     if (strlen($getData['start-time']) > 0) {
         $whereSql .= " AND TO_CHAR(REALARRIVALDATE, 'YYYY-MM-DD HH24:MI:SS') > '" . $getData['start-time'] . " 00:00:00'";
     }
     if (strlen($getData['end-time']) > 0) {
         $whereSql .= " AND TO_CHAR(REALARRIVALDATE, 'YYYY-MM-DD HH24:MI:SS') < '" . $getData['end-time'] . " 24:00:00'";
     }
     $data = $dataserviceModel->getList($whereSql, $curr_page, $this->_pageSize);
     $count = $dataserviceModel->getNowhereCount($whereSql);
     $page = new pager($count, $curr_page, $this->_pageSize);
     $pageStr = $page->GetPagerContent();
     //var_dump($data);
     //var_dump($getData);
     //var_dump($whereSql);
     $count1 = $this->_orderHeadModel->get_count(" AND HANDLESTATE='3' AND BILLSTATUS='0' ");
     $count2 = $this->_orderHeadModel->get_count(" AND HANDLESTATE='3' AND BILLSTATUS='1' ");
     $count3 = $this->_orderHeadModel->get_count(" AND HANDLESTATE='3' AND BILLSTATUS='2' ");
     $count4 = $ecmsTaxModel->get_count(" AND TYPE='ECMS'");
     $count5 = $ecmsTaxModel->get_count(" AND TYPE='UPS'");
     $count6 = $dataserviceModel->getNowhereCount("");
     $this->assign("count1", $count1);
     $this->assign("count2", $count2);
     $this->assign("count3", $count3);
     $this->assign("count4", $count4);
     $this->assign("count5", $count5);
     $this->assign("count6", $count6);
     array_unshift($plamfromType, "選擇平台類型");
     $this->assign('page', $pageStr);
     $this->assign('count', $count);
     $this->assign('platform_type', $getData['platform_type']);
     $this->assign('gbillno', $getData['gbillno']);
     $this->assign('starttime', $getData['start-time']);
     $this->assign('endtime', $getData['end-time']);
     $this->assign('data', $data);
     $this->assign("platformType", $plamfromType);
     $this->display('dataservicefee/dataservicefee_index.html');
 }
開發者ID:WX-T,項目名稱:PHP,代碼行數:58,代碼來源:php操作Excel.php

示例2: pager

<head>   
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   
<title>----分頁演示-----</title>   
</head>   
<body>   
    <?php 
include "PHPPager.php";
error_reporting(7);
$myPage = new pager(1300, intval(isset($_GET['page']) ? $_GET['page'] : 1));
echo $myPage->GetPagerContent();
?>
   
</body>   
</html>   
開發者ID:KoMiles,項目名稱:PHPPager,代碼行數:14,代碼來源:PagerDemo.php


注:本文中的pager::GetPagerContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。