本文整理汇总了PHP中PageNav::getPageNavTemplate4DiseasePage方法的典型用法代码示例。如果您正苦于以下问题:PHP PageNav::getPageNavTemplate4DiseasePage方法的具体用法?PHP PageNav::getPageNavTemplate4DiseasePage怎么用?PHP PageNav::getPageNavTemplate4DiseasePage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageNav
的用法示例。
在下文中一共展示了PageNav::getPageNavTemplate4DiseasePage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wxMsgImageList
public function wxMsgImageList($request, $response)
{
/*{{{*/
$wxUserId = $request->getRequest('WxUserId', 0);
$nowPage = $request->getRequest('p', 1);
$res = WxMgrClient::getInstance()->queryWxMsgList($wxUserId, $nowPage, 30, array('msgtype' => 'image'));
$wxMsgImageList = array();
if (false == empty($res['ids'])) {
$wxMsgImageList = DAL::get()->find('WxMsg', $res['ids']);
}
$response->wxMsgImageList = $wxMsgImageList;
$pageLink = '';
if (empty($res['pageInfo']) == false) {
$url = "/wxmgr/wxmsgimagelist?wxUserId=" . $wxUserId;
$pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate4DiseasePage($url . "&p="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
}
$response->pageLink = $pageLink;
}
示例2: diseasePageZhuanti
public function diseasePageZhuanti($request, $response)
{/*{{{*/
$diseasePage = DiseasePage::getByDiseaseId($this->disease->id);
$response->diseasePage = $diseasePage;
$queryType = $request->getRequest('queryType', self::ZHUANTI_QUERYTYPE_LABLE);
$response->queryType = $queryType;
$options = array();
$options['diseaseId'] = $this->disease->id;
if (false == empty($queryType))
{
$options['queryType'] = $queryType;
}
$rootLableKey = $request->getRequest('rootLableKey', '');
$response->rootLableKey = $rootLableKey;
if (false == empty($rootLableKey))
{
$options['rootLableKey'] = $rootLableKey;
}
$leafLableKey = $request->getRequest('leafLableKey', '');
$response->leafLableKey = $leafLableKey;
if (false == empty($leafLableKey))
{
$options['leafLableKey'] = $leafLableKey;
}
$cmsCategory = $request->getRequest('cmsCategory', '');
$response->cmsCategory = $cmsCategory;
if (false == empty($cmsCategory))
{
$options['cmsCategory'] = $cmsCategory;
}
$lableName = "专家观点";
if ($rootLableKey)
{
$lableList = LableDefine::getRootLableList();
$lableName = $lableList[$rootLableKey];
}
else if ($leafLableKey)
{
$lableName = LableDefine::getLableTitle($leafLableKey);
}
else if ($cmsCategory)
{
$lableName = CmsObjCategory::getDesc($cmsCategory);
}
$response->lableName = $lableName;
$page = $request->getRequest('page', 1);
$response->page = $page;
$pageSize = $request->getRequest('pageSize', 10);
if(stripos($_SERVER['REQUEST_URI'], 'leafLableKey=')
|| stripos($_SERVER['REQUEST_URI'], 'rootLableKey=')
|| stripos($_SERVER['REQUEST_URI'], 'queryType=')
|| stripos($_SERVER['REQUEST_URI'], 'cmsCategory=')
)
{
$jumpUrl = DiseasePage::getZhuantiUrl($diseasePage->disease->key, $queryType, $rootLableKey, $leafLableKey, $cmsCategory);
if ($page > 1)
{
$jumpUrl .= "?page=$page";
}
$response->exitJump($jumpUrl, 301);
}
$res = $diseasePage->getPaperAndZhuantiList4ZhuantiPage($page, $pageSize, $options);
$response->id2Types = $res['id2Types'];
$response->pageLink = PageNav::getNavLink(
PageNav::getPageNavTemplate4DiseasePage(DiseasePage::getZhuantiUrl($this->disease->key, $queryType, $rootLableKey, $leafLableKey, $cmsCategory).'&page='), $page, $pageSize, $res['total']);
$disease=$this->disease;
$ddCnt = DiseaseClient::getInstance()->getDiseaseDoctorCnt($this->disease->id);
// $title=$disease->name."专题_".$disease->name."_专家观点_好大夫在线";
$keywords=$disease->name."专题,".$disease->name."专家观点";
$description="中国最大的医疗网站-好大夫在线为您提供".$disease->name."详细介绍,".$disease->name."症状,".$disease->name."治疗,".$disease->name."吃什么等。更多".$disease->name."知识,".$ddCnt."位".$disease->name."专家观点,".$res['total']."篇".$disease->name."专题";
// $response->title=$title;
$response->keywords=$keywords;
$response->description=$description;
}/*}}}*/