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


PHP Pager::getNavLink方法代码示例

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


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

示例1: ajaxShowDoctorPresent

    public function ajaxShowDoctorPresent($request, $response)
    {/*{{{*/
        $patientId = $request->patientid;
        $response->patientId = $patientId;
        list($canSend, $errorMsg) = $this->canDoctorSendPresent();
        $response->canSend = $canSend;
        $response->errorMsg = $errorMsg;
        if(false == $canSend)
        {
            return;
        }

        $nowPage = $request->getRequest('page', 1);
        $response->page = $nowPage;
        $pageSize = 4;
        $presentResult = PresentClient::getInstance()->getDoctorPresents($nowPage, $pageSize);
        $response->presentList = $presentResult['presents'];
        $response->pagelink = Pager::getNavLink('/api/present/ajaxshowdoctorpresent?patientid='.$patientId.'&uname='.$this->_newSpace->userName.'&page=', $presentResult['pageInfo'], false);
    }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:19,代码来源:presentcontroller.php

示例2: auditPresentOrderList

 public function auditPresentOrderList($request, $response)
 {
     /*{{{*/
     $params = array();
     $isaudited = $request->getRequest('isaudited', 'all');
     $response->isaudited = $isaudited;
     $params['isaudited'] = $isaudited;
     $presentName = $request->getRequest('presentName', '');
     $response->presentName = $presentName;
     if ($presentName) {
         $present = DAL::get()->find_by_name('Present', $presentName);
         if ($present->isNull()) {
             $params['presentId'] = -1;
         } else {
             $params['presentId'] = $present->id;
         }
     }
     $userName = $request->getRequest('userName', '');
     $response->userName = $userName;
     if ($userName) {
         $user = DAL::get()->find_by_name('User', $userName);
         if ($user->isNull()) {
             $params['userId'] = -1;
         } else {
             $params['userId'] = $user->id;
         }
     }
     $doctorName = $request->getRequest('doctorName', '');
     $response->doctorName = $doctorName;
     if ($doctorName) {
         $space = DAL::get()->find_by_fld_SpaceUserName_or_fld_SpaceHostName('space', $doctorName, $doctorName);
         if ($space->isNull()) {
             $params['spaceId'] = -1;
         } else {
             $params['spaceId'] = $space->id;
         }
     }
     $patientName = $request->getRequest('patientName', '');
     $response->patientName = $patientName;
     if ($patientName) {
         $patient = DAL::get()->find_all_by_fld_PatientName_or_fld_PatientMobile('Patient', $patientName, $patientName);
         if (empty($patient)) {
             $params['patientId'] = array(-1);
         } else {
             $params['patientId'] = array_keys($patient);
         }
     }
     $params['nowPage'] = $request->getRequest('page', 1);
     $params['pageSize'] = 18;
     $pStartTime = $request->getRequest('pStartTime', XDateTime::now()->addDay(-2)->toShortString());
     $response->pStartTime = $pStartTime;
     $params['pStartTime'] = XDateTime::valueOf($pStartTime);
     $pEndTime = $request->getRequest('pEndTime', XDateTime::now()->toShortString());
     $response->pEndTime = $pEndTime;
     $params['pEndTime'] = XDateTime::valueOf($pEndTime)->addDay(1);
     $params['notSpacePresentCate'] = false;
     $result = PresentClient::getInstance()->getPresentOrders($params);
     $response->presentOrders = $result['presentOrderList'];
     $pagelink = '';
     $urlParams = array('presentName' => $presentName, 'isaudited' => $isaudited, 'userName' => $userName, 'doctorName' => $doctorName, 'patientName' => $patientName, 'pStartTime' => $pStartTime, 'pEndTime' => $pEndTime);
     $url = '/present/auditpresentorderlist?' . http_build_query($urlParams, '&') . '&page=';
     if (isset($result['pageInfo'])) {
         $pagelink = Pager::getNavLink($url, $result['pageInfo']);
     }
     $response->pagelink = $pagelink;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:66,代码来源:presentcontroller.php

示例3: scoreDetail

 public function scoreDetail($request, $response)
 {/*{{{*/
     $pageSize = 25;
     $pageIndex = $request->getRequest('page', 1);
     $result = ScoreClient::getInstance()->getLastMonthAccountItemByUserId($this->user->id, $pageIndex, $pageSize);
     $response->scoreItems = $result['scoreItems'];
     $response->pageLink = Pager::getNavLink('/index/scoredetail?page=', $result['pageInfo'], false);
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:8,代码来源:indexcontroller.php


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