Пример #1
0
<li class="menu_cate_li clearfix">
<p class="title1">医生职称:</p>
<div class="level_box">
<ul class="clearfix level_box_list">

<li><a
href="<?=DiseasePage::getDoctorUrl($disease->key,
    $province, $service, $hospitalGrade, '')?>"
    class="<?=('' ==$doctorGrade) ? 'cur' : ''?>">全部</a></li>

    <li><a
    href="<?=DiseasePage::getDoctorUrl($disease->key,
    $province, $service, $hospitalGrade, '主任医师')?>"
    class="<?=(Doctor::$grades[1] ===$doctorGrade) ? 'cur' : ''?>">主任医师</a></li>

    <li><a
    href="<?=DiseasePage::getDoctorUrl($disease->key,
    $province, $service, $hospitalGrade, '副主任医师')?>"
    class="<?=(Doctor::$grades[2] ===$doctorGrade) ? 'cur' : ''?>">副主任医师及以上</a></li>

    <li><a
    href="<?=DiseasePage::getDoctorUrl($disease->key,
    $province, $service, $hospitalGrade, '主治医师')?>"
    class="<?=(Doctor::$grades[3] ===$doctorGrade) ? 'cur' : ''?>">主治医师及以上</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
<p class="pb15 pr20 fs expert_rank">

<span class="mr5 fb">ÅÅÐò£º</span>

<a 
href="<?=DiseasePage::getDoctorUrl($disease->key, $province, $service,
$hospitalGrade, $doctorGrade, 'complex')?>" class="<?=($orderby == 'complex'
|| $orderby == '') ? 'cur'
: 'complex'?>">µÃƱ+»Ø¸´Êý</a>

<a
href="<?=DiseasePage::getDoctorUrl($disease->key, $province, $service,
$hospitalGrade, $doctorGrade, 'vote')?>" class="<?=($orderby == 'vote') ? 'cur'
: ''?>">µÃƱ</a>

<a
href="<?=DiseasePage::getDoctorUrl($disease->key, $province, $service,
$hospitalGrade, $doctorGrade, 'reply')?>" class="<?=($orderby == 'reply') ? 'cur'
: ''?>">×Éѯ»Ø¸´Êý</a>

</p>
		<!--推荐专家 start-->
		<div class="cate_box1 mb10 pl25">
			<div class="clearfix cate_title1 mb15">
				<h3 class="module1"><a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/daifu.htm"><?=$diseaseName?>推荐专家</a></h3>
                <p class="fr pt10 fs gray3">
                <a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/daifu.htm">查看更多推荐专家<span class="f8">>></span></a>
                </p>
				<i class="g_arrow4"></i>
			</div>
			<div class="fs clearfix pb10">
				<span class="fb fl pr5">按地区查找:</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::getDoctorUrl($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>
            <!--
			<p class="pb15 pr20 fs expert_rank">
				<span class="mr5 fb">排序:</span>
				<a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/daifu.htm?orderby=complex&province=" class="cur">得票+回复数</a>
				<a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/daifu.htm?orderby=vote&province=">得票</a>
				<a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/daifu.htm?orderby=reply&province=">咨询回复数</a>
			</p>
            -->
Пример #4
0
    private function diseasePageDoctor($request, $response, $diseasePage)
    {/*{{{*/

        $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;

        $options = array();
        if(false == empty($this->provinceName))
        {
            $options['prov'] = $this->provinceName;
        }

        $service = $request->service;
        $response->service = $service;
        if (false == empty($service))
        {
            $options['service'] = $service;
        }

        $hospitalGrade = $request->hospitalGrade;
        $response->hospitalGrade = $hospitalGrade;
        if (false == empty($hospitalGrade)) 
        {
            $options['hospitalGrade'] = $hospitalGrade;
        }

        $doctorGrade = $request->doctorGrade;
        $response->doctorGrade = $doctorGrade;
        if (false == empty($doctorGrade))
        {
            $options['doctorGrade'] = $doctorGrade;
        }

        $page = $request->getRequest('p', 1);

     
        $pageSize = $request->getRequest('pageSize', 15);
        $res = $diseasePage->getDoctorList4DoctorPage($page, $pageSize, $options);
        $response->doctorList = array();
        $response->pageLink = null;
        if (false == empty($res['ids']))
        {
            $response->doctorList = DAL::get()->find('doctor', $res['ids']);

            $fullUrl = DiseasePage::getDoctorUrl($this->disease->key, $this->province, $service, $hospitalGrade, $doctorGrade);
            $fullUrl = str_replace('/daifu_1', '/daifu_@', $fullUrl);
            list($preUrl, $appendUrl) = explode('@', $fullUrl);
            $pageUrl = PageNav::getPageNavTemplate4DiseasePage($preUrl, 2, 3, 1, true, $appendUrl);
            $response->pageLink = PageNav::getNavLink($pageUrl, $page, $pageSize, $res['total']);
        }
        $doctorCnt = 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->provinceName}{$this->disease->name}专家{$doctorCnt}位。查询门诊时间、咨询专家、预约专家门诊,帮您找到{$this->provinceName}最好的{$this->disease->name}专家。";
        if ($page != 1 && $this->provinceName)
        {
            $title = $this->provinceName.$this->disease->name."专家_".$this->disease->name."好评专家推荐第".$this->nowPage."页_好大夫在线";
            $keywords = "";
            $description = "";
        }
        $response->title = $title;
        $response->keywords = $keywords;
        $response->description = $description;
    }/*}}}*/