本文整理汇总了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');
}
示例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>