<div class="cate_box1 mb20 pl25"> <div class="clearfix cate_title1 mb15"> <h3 class="module1"><a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/yiyuan.htm"><?=$diseaseName?>推荐医院</a></h3> <i class="g_arrow4"></i> </div> <div class="fs clearfix pb10"> <span class="fb fl pr10">按地区查找:</span> <p class="area_search oh zoom lh160"> <a target="_blank" class="cur" href="<?=$_area_pre_url?>?nationwide=1">全国</a> <?php foreach($provinceList as $key => $prov) { $_area_pre_url = DiseasePage::getHospitalUrl($disease->key, $key); ?> <a target="_blank" <?=isset($province) && $province == $key? 'class="cur"': ''?> href="<?=$_area_pre_url?>"><?=$prov['Name']?></a> <?php } ?> <?php if($disease->isShowHaiwaiAd()) { ?> <a target="_blank" href="<?=$disease->getOverseaDiseaseRef()->overseadisease->getUrl()?>">海外</a> <?php }?> </p> </div> <div class="fs hp_hos"> <table class="hp_hos_table"> <tr class="title"> <td width="35%" class="td_link"><span class="pl20">医院</span></td> <td width="15%"><span class="g_area pl20">城市</span></td> <td width="20%"><span class="g_rank pl20">分级</span></td>
<!--好评医院 start--> <?php if (false == empty($citys)){ ?> <div class="hp_h fs"> <span class="fl fs gray2 dil mb5">所在地区:</span> <p class="area_search oh lh160"> <a href="<?=DiseasePage::getHospitalUrl($disease->key, $province, '', $hospitalGrade, $category)?>" class="<?=('' == $city) ? 'cur' : ''?>">全省</a> <?php foreach($citys as $cityName){ if (empty($cityName)) { continue; } ?> <a href="<?=DiseasePage::getHospitalUrl($disease->key, $province, $cityName, $hospitalGrade, $category)?>" class="<?=($city == $cityName) ? 'cur' : ''?>"><?=$cityName?></a> <?php } ?> </p> </div> <?php } ?> <!-- 推荐医院 start--> <? if (0 < count($hospitalList)) { include_once dirname(__file__).'/_center_hospitals_inner.php'; } else
</li> <li class="menu_cate_li clearfix"> <?php // 和hospital实体的categoryDefine要对应 $hospitalCategorys = DiseasePage::getHospitalCategorys(); ?> <p class="title">类型:</p> <div class="type_box"> <ul class="clearfix type_box_list"> <li><a href="<?=DiseasePage::getHospitalUrl($disease->key, $province, $city, $hospitalGrade, '')?>" class="<?=('' === $category ? 'cur' : '')?>">全部</a></li> <?php foreach($hospitalCategorys as $cate => $desc){ ?> <li><a href="<?=DiseasePage::getHospitalUrl($disease->key, $province, $city, $hospitalGrade, $cate)?>" class="<?=(strval($cate) === $category) ? 'cur' : ''?>"><?=$desc?></a></li> <?php } ?> </ul> </div> </li> </ul> </div> </div>
public function diseasePageHospital($request, $response) {/*{{{*/ $this->provinceList = Area::provInfoAll(); if (isset($this->provinceList[$this->province])){ $this->provinceName = $this->provinceList[$this->province]['Province']; } unset($this->provinceList['xizang']); $response->provinceList = $this->provinceList; $citys = array(); $options = array(); if (false == empty($this->provinceName)) { $options['prov'] = $this->provinceName; $citys = HospitalClient::getInstance()->getHospitalCityList($this->provinceName); } $response->citys = $citys; $city = $request->getRequest('city', ''); $response->city = $city; if (false == empty($city)) { $options['city'] = $city; } $hospitalGrade = $request->getRequest('hospitalGrade', ''); $response->hospitalGrade = $hospitalGrade; if (false == empty($hospitalGrade)) { $options['hospitalGrade'] = $hospitalGrade; } $category = $request->getRequest('category', ''); $response->category = $category; if (false == empty($category)) { $options['category'] = $category; } $page = $request->getRequest('page', 1); $diseasePage = DiseasePage::getByDiseaseId($this->disease->id); $response->diseasePage = $diseasePage; $pageSize = $request->getRequest('pageSize', 40); $res = $diseasePage->getHospitalList4HospitalPage($page, $pageSize, $options); $response->hospitalList = DAL::get()->find('hospital', $res['ids']); $response->pageLink = PageNav::getNavLink( PageNav::getPageNavTemplate4DiseasePage(DiseasePage::getHospitalUrl($this->disease->key, $this->province, $city, $hospitalGrade, $category).'&page='), $page, $pageSize, $res['total']); //seo $hospitalCount = isset($res['total'])?$res['total']:0; $title = "{$this->provinceName}{$this->disease->name}医院_好大夫在线"; $keywords = "{$this->provinceName}治疗{$this->disease->name}的医院,{$this->provinceName}{$this->disease->name}最好的医院,{$this->provinceName}治疗{$this->disease->name}最好的医院"; $description = "{$this->provinceName}{$this->disease->name}医院,根据患者投票评选的{$this->provinceName}{$this->disease->name}医院排名,含广东{$this->disease->name}医院{$hospitalCount}家。查询门诊时间、咨询专家、预约专家门诊,帮您找到{$this->provinceName}治疗{$this->disease->name}最好的医院。"; if ($page != 1 && $this->provinceName) { $title = $this->provinceName.$this->disease->name."医院_".$this->provinceName."好评医院推荐第".$this->nowPage."页_好大夫在线"; $keywords = ""; $description = ""; } $response->title = $title; $response->keywords = $keywords; $response->description = $description; }/*}}}*/