本文整理汇总了PHP中PageNav类的典型用法代码示例。如果您正苦于以下问题:PHP PageNav类的具体用法?PHP PageNav怎么用?PHP PageNav使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PageNav类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index($request, $response)
{
/*{{{*/
$options = array();
$response->showContent = 1;
$currentPage = $request->getRequest('page', 1);
$pageSize = 20;
if ($request->status) {
$options['status'] = $request->status;
$status = $request->status;
} else {
$options['all'] = 1;
$status = 0;
}
if ($request->name) {
$options['realname'] = $request->name;
$options['nickname'] = $request->name;
}
$res = AssistantNicknameAuditClient::getInstance()->queryNicknameAduditList($currentPage, $pageSize, $options);
$assistantNicknameList = $res['nicknameList'];
$result = array();
//获得医助组别
foreach ($assistantNicknameList as $assistantNicknameAudit) {
$result[$assistantNicknameAudit->assistant->id] = DAL::get()->queryNameListbyInspector('InspectGroup', $assistantNicknameAudit->assistant);
}
$response->tmp = $result;
$response->assistantNicknameList = $assistantNicknameList;
$response->pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("/nicknameaudit/index?page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
$response->status = $status;
}
示例2: bingLiList
public function bingLiList($request,$response)
{/*{{{*/
$user = $this->user;
$patientId = $request->patientid;
if(empty($patientId))
{
$patientId = 'all';
}
$pageIndex = $request->p != 0 ? $request->p : 1;
$pageSize = 15;
$res = BingliClient::getInstance()->getAllAttachment($user->id, $patientId, $type='', $pageIndex, $pageSize);
$paList = isset($res['patientattachment']) ? $res['patientattachment'] : array();
$pagelink = '';
if (false == empty($paList) && false == empty($res['pageInfo'])){
$pagelink = PageNav::getNavLink(
PageNav::getPageNavTemplate("/mycase/binglilist?patientid=$patientId&p="),
$res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'],
$res['pageInfo']['total']);
}
$response->user = $user;
$response->patientId= $patientId;
$response->pagelink = $pagelink;
$response->paList = $paList;
$response->pageNum = $pageIndex;
}/*}}}*/
示例3: taskEventList
public function taskEventList($request, $response)
{
/*{{{*/
$request->page = $request->page ? $request->page : 1;
$_pageSize = $request->pageSize ? $request->pageSize : 200;
$response->spacePhone = $spacePhone = $request->spacePhone ? $request->spacePhone : "";
$response->spaceName = $spaceName = $request->spaceName ? $request->spaceName : '';
$response->spaceId = $spaceId = $request->spaceId ? $request->spaceId : "";
$response->userName = $userName = $request->userName ? $request->userName : "";
$response->userPhone = $userPhone = $request->userPhone ? $request->userPhone : '';
$response->orderId = $orderId = $request->orderId ? $request->orderId : '';
$response->priority = $priority = $request->priority ? $request->priority : "";
$response->taskStatus = $taskStatus = $request->taskStatus ? $request->taskStatus : TelOrderTask::STATUS_UN_FOLLOW . "," . TelOrderTask::STATUS_IN_FOLLOW;
$response->taskType = $taskType = $request->taskType ? $request->taskType : "";
$response->timeType = $timeType = $request->timeType ? $request->timeType : "";
$response->searchBeginTime = $searchBeginTime = $request->searchBeginTime ? $request->searchBeginTime : "";
$response->searchEndTime = $searchEndTime = $request->searchEndTime ? $request->searchEndTime : "";
$groupNames = $this->getGroupName($request, $response);
$params = array('spaceName' => $spaceName, 'spacePhone' => $spacePhone, 'spaceId' => $spaceId, 'userName' => $userName, 'userPhone' => $userPhone, 'orderId' => $orderId, 'priority' => $priority, 'taskStatus' => $taskStatus, 'taskType' => $taskType, 'timeType' => $timeType, 'searchBeginTime' => $searchBeginTime, 'searchEndTime' => $searchEndTime, 'paymentfront' => true);
$res = TelOrderTaskClient::getInstance()->getOrderTaskList($groupNames, $request->page, $_pageSize, $params);
$pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate("?spaceName={$spaceName}&spacePhone={$spacePhone}&userName={$userName}&userPhone={$userPhone}&orderId={$orderId}&searchBeginTime={$searchBeginTime}&searchEndTime={$searchEndTime}&taskType={$taskType}&taskStatus={$taskStatus}&priority={$priority}&timeType={$timeType}&page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
$spaceList = array();
if (isset($res['taskCount']) && false == empty($res['taskCount'])) {
foreach ($res['taskCount'] as $key => $value) {
$space = DAL::get()->find('space', $key);
array_push($spaceList, $space);
}
}
$response->offset = ($res['pageInfo']['nowpage'] - 1) * $res['pageInfo']['pagesize'];
$response->spaceList = $spaceList;
$response->taskCount = isset($res['taskCount']) ? $res['taskCount'] : '';
$response->pagelink = $pagelink;
$response->autoRefresh = $request->autoRefresh;
}
示例4: showlist
public function showlist($request, $response)
{
/*{{{*/
//dodo:psq
$option['doctorName'] = $request->doctorName;
$option['hospital'] = $request->hospital;
$option['trustfrom'] = $request->trustfrom;
$option['trustto'] = $request->trustto;
$option['level'] = $request->level;
$option['cheattimes'] = $request->cheattimes;
$option['doctorCommentStatus'] = $request->doctorCommentStatus;
$response->option = $option;
if ($this->isNotShowList($option)) {
$response->canShowList = false;
return null;
}
list($rows, $pageInfo) = CommentDoctorExtClient::getInstance()->getCommentDoctorList($option, $request->p, self::PAGE_SIZE);
// list($rows, $pageInfo) = CommentDoctorExtClient::getInstance()->getDoctorList4CommentDoctorExt($option['listColor'], $option['doctorName'], $request->p, self::PAGE_SIZE);
$response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate("/commentdoctor/showlist?doctorName=" . $option['doctorName'] . "&hospital=" . $option['hospital'] . "&trustfrom=" . $option['trustfrom'] . "&trustto=" . $option['trustto'] . "&cheattimes=" . $option['cheattimes'] . "&level=" . $option['level'] . "&doctorCommentStatus=" . $option['doctorCommentStatus'] . "&p="), $pageInfo['nowpage'], $pageInfo['pagesize'], $pageInfo['total']);
$response->rows = $rows;
$response->total = $pageInfo['total'];
$response->title = '点评医生列表';
$response->canShowList = true;
$response->goodCnts = DAL::get()->queryCntOfCommentDoctorIds('doctorcomment', $rows);
$response->trashCnts = DAL::get()->query_cnt_of_doctorIds('TrashDoctorCommentIndex', $rows);
$response->allCnt = $pageInfo['allCnt'];
}
示例5: showThreadList
public function showThreadList($request, $response)
{/*{{{*/
$nowPage = $request->getRequest('p', 1);
$pager = new XPager($nowPage, 10);
$status = $request->getRequest('status', '');
if($request->patientId > 0)
{
$patient = DAL::get()->mustFind('Patient', $request->patientId);
DBC::requireTrue($patient->user->id == $this->user->id, '无效患者');
list($caseList, $pageInfo) = ProposalClient::getInstance()->getProposalAndFlowList($patient, $pager, $status);
}
else
{
list($caseList, $pageInfo) = ProposalClient::getInstance()->getProposalAndFlowList($this->user, $pager, $status);
}
$response->caseList = $caseList;
$url = $response->router->urlfor('proposal/showThreadList', array(
'patientId' => $request->patientId,
'status' => $request->status,
));
$response->pageLink = PageNav::getNavLink(
PageNav::getPageNavTemplate($url.'&p=')
, $pageInfo['nowpage']
, $pageInfo['pagesize']
, $pageInfo['total']
);
$response->patientId = $request->patientId;
$response->caseStatus = "";
$response->status = $status;
$response->chargeFlowList = FlowClient::getInstance()->getPaiedFlowListByUser($this->user, $needCache = false);
$response->titleAndDisease = NodeClient::getInstance()->getTitleAndDiseaseByRelatedObjIds(array_keys($caseList),"Proposal");
}/*}}}*/
示例6: showList
public function showList($request, $response) {
$page = $request->page ? $request->page : 1;
$res = TypeidClient::getInstance()->getList($page, 50);
$response->list = $res['typeid'];
if (false == empty($res['pageInfo'])) {
$response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate('?page='), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
}
}
示例7: showDetail
public function showDetail( $request, $response )
{/*{{{*/
$pageSize = 25;
$subId = (int)Codec::getInstance()->decodeId( $request->subid );
$pageNum = $request->p;
$pageNum = ($pageNum > 0) ? $pageNum : 1;
$subscriptionDisease = DAL::get()->find( 'subscriptdisease', $subId );
$response->subscriptionDisease = $subscriptionDisease;
$res = SubscriptionClient::getInstance()->getOneDiseaseSubscriptionArticleList($subscriptionDisease, $pageSize, $pageNum);
$response->articleRes = $res['list'];
$articleCnt = $res['total'][$subscriptionDisease->diseaseId];
$pageNav = new PageNav();
$template = $pageNav->getPageNavTemplate("/subscriptdisease/showdetail?subid=$request->subid&p=");
$pageLink = $pageNav->getNavLink( $template, $pageNum, $pageSize, $articleCnt );
$response->pagelink = $pageLink;
}/*}}}*/
示例8: showList
public function showList($request, $response)
{
/*{{{*/
$nowPage = $request->getRequest('page', 1);
$pagesize = 20;
$res = DoctorClient::getInstance()->getNoteBookList($nowPage, $pagesize);
$pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("/notebook/showlist?type=" . "&page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
$response->noteBookList = isset($res['list']) ? $res['list'] : array();
$response->pageLink = $pageLink;
}
示例9: showList
public function showList($request, $response)
{
$key = $request->key;
$type = $request->type;
$nowPage = $request->getRequest('page', 1);
$res = DoctorClient::getInstance()->getProductADList($key, $type, $nowPage, 50);
$pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("/productad/showlist?type=" . $type . "&page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
$response->provNameList = Area::provInfo4PlussignChannel();
$response->productADList = isset($res['info']) ? $res['info'] : array();
$response->pageLink = $pageLink;
}
示例10: showList
public function showList($request, $response)
{
/*{{{*/
$pageSize = 50;
$nowPage = (int) $request->getRequest('p', 1);
$searchWord = $request->s3;
$level = $request->s2;
$timeSlot = $request->s4;
$beginTime = '';
$endTime = '';
if ($timeSlot) {
$timeArr = explode('|', $timeSlot);
$beginTime = $timeArr[0];
$endTime = $timeArr[1];
}
$classify = $request->classify;
if ($classify != 0 && $level == 0) {
$level = $classify;
}
$searchWordValue['s1'] = $request->s1;
$lableList = LableDefine::getLableList();
$response->lableList = $lableList;
$diseasename = $request->diseasename;
$searchWordValue['diseasename'] = '';
if ($diseasename) {
$searchWordValue['diseasename'] = $diseasename;
}
$diseaselable = $request->diseaselable;
$searchWordValue['diseaselable'] = '';
if ($diseaselable) {
$searchWordValue['diseaselable'] = $diseaselable;
}
$res = ArticleClient::getInstance()->getArticeList4Search($searchWord, $level, $timeSlot, $searchWordValue, $nowPage, $pageSize);
$articleList = isset($res['articleList']) ? $res['articleList'] : array();
$pageLink = '';
if (empty($res['pageInfo']) == false) {
$url = "/article/showlist?s1=" . urlencode($searchWordValue['s1']) . "&diseasename=" . urlencode($searchWordValue['diseasename']) . "&diseaselable=" . urlencode($searchWordValue['diseaselable']) . "&s2=" . urlencode($level) . "&s3=" . urlencode($searchWord) . "&s4=" . urlencode($timeSlot);
$pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate($url . "&p="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
}
$response->articleList = $articleList;
$response->nowPage = $nowPage;
$response->pageLink = $pageLink;
$response->classify = $classify;
$response->s1 = $searchWordValue['s1'];
$response->diseasename = $searchWordValue['diseasename'];
$response->diseaselable = $searchWordValue['diseaselable'];
$response->s2 = $level;
$response->s3 = $searchWord;
$response->s4 = $timeSlot;
$response->beginTime = $beginTime;
$response->endTime = $endTime;
$response->title = 'р╫иЗндубап╠М';
}
示例11: inbox
public function inbox($request, $response) {
$pageSize = 10;
$p = $request->p;
$pageId = (false == empty($p))?$request->p:1;
$data = array('userId' => $this->user->id, 'page_id' => $pageId, 'page_size' => $pageSize);
$result = $this->inboxList($data);
$pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("/internalmessage/inbox?p="), $pageId, $pageSize, $result['pageInfo']['COUNT']);
$response->user = $this->user;
$response->list = $result['list'];
$response->pageId = $pageId;
$response->pageLink = $pageLink;
}
示例12: showList
public function showList($request, $response)
{
$key = trim($request->key);
$currentPage = (int) $request->getRequest('page', 1);
$diseaseFacultyList = DiseaseClient::getInstance()->getDiseaseFacutlyForAdmin($key, $currentPage, 50);
$pageLink = '';
if (empty($diseaseFacultyList['pageInfo']) == false) {
$pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("/diseasefaculty/showlist?key=" . urlencode($key) . "&page="), $diseaseFacultyList['pageInfo']['nowpage'], $diseaseFacultyList['pageInfo']['pagesize'], $diseaseFacultyList['pageInfo']['total']);
}
$response->diseaseFacultyList = $diseaseFacultyList;
$response->pageLink = $pageLink;
$response->key = $key;
}
示例13: showList
public function showList($request, $response)
{
$hospitalName = $request->hospitalName;
$nowPage = $request->page ? $request->page : 1;
$res = HospitalClient::getInstance()->getHospitalAnnounceList($hospitalName, $nowPage, 50);
$pageLink = '';
if (isset($res['pageInfo'])) {
$pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("/hospitalannounce/showlist?page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
}
$response->hospitalName = $hospitalName;
$response->hospitalAnnounces = isset($res['hospitalAnnounces']) ? $res['hospitalAnnounces'] : array();
$response->pageLink = $pageLink;
}
示例14: all
/**
* @roles = array(Auditor::ROLE_LEADER);
*/
public function all($request, $response)
{
/*{{{*/
$page = $request->getRequest('page', 1);
$pageSize = 20;
$res = $this->auditorClient->getAuditors($this->auditor, $page, $pageSize);
$response->auditors = $res['auditors'];
$response->pagelink = '';
if (false == empty($res['page'])) {
$response->pagelink = PageNav::getNavLink(PageNav::getPageNavTemplate("/auditor/all?page="), $res['page']['nowpage'], $res['page']['pagesize'], $res['page']['total']);
}
$response->showContent = true;
}
示例15: ajaxSelectList
public function ajaxSelectList($request, $response)
{
/*{{{*/
header('Content-Type: text/html; charset=GBK');
$page = intval($request->getRequest('p', 1));
$res = ReplyTemplateClient::getInstance()->getInfosAndPage('replytemplate', $this->space->user->id, $page, 15);
$response->templateList = $res['replyInfos'];
$pagelink = '';
if (empty($res['page']) == false) {
$pageInfo = $res['page'];
$pagelink = PageNav::getNavLink(PageNav::getPageNavTemplateForSpace($this->space->getUrl() . 'replytemplate/ajaxselectlist?p='), $pageInfo['nowpage'], $pageInfo['pagesize'], $pageInfo['total']);
}
$response->pagelink = $pagelink;
}