public function queryLinkSetByDiseaseId($request, $response)
 {
     /*{{{*/
     $diseaseName = $request->diseaseName;
     $articleId = $request->articleId;
     $disease = DAL::get()->find_by_name('disease', $diseaseName);
     $diseasePage = DiseasePage::getByDiseaseId($disease->id);
     $linkset_word = $diseasePage->getLinkSet_word();
     $article = DAL::get()->find('article', $articleId);
     $response->setRedirect($response->router->urlfor('linkset/modify', array('linksetId' => $linkset_word->id, 'url' => $article->getUrl())));
 }
?>
                    <li>
                        <?php $rootList = LableDefine::getRootLableList();?>
                        <a href="<?=DiseasePage::getZhuantiUrl($disease->key, DiseaseController::ZHUANTI_QUERYTYPE_LABLE, $rootKey)?>" class="<?=($rootKey == $rootLableKey) ? 'cur' : ''?>"><p class="<?=($rootKey == $rootLableKey) ? 'cur' : ''?>"><?=$rootList[$rootKey]?>(<?=$lableInfo['count']?>)</p></a>
                        <ul class="slide_box bb_e5">
                        <?php foreach($lableInfo['leafs'] as $leafId => $leafCount){?>
                            <li><a href="<?=DiseasePage::getZhuantiUrl($disease->key, DiseaseController::ZHUANTI_QUERYTYPE_LABLE, '', $leafId)?>" class="<?=($leafId == $leafLableKey) ? 'cur' : ''?>"><?=LableDefine::getLableTitle($leafId);?>(<?=$leafCount?>)</a></li>
                        <?php
                            }
                        ?>
                        </ul>
                    </li>
<?php }?>
                </ul>
<h3 class="total"><a href="<?=DiseasePage::getZhuantiUrl($disease->key, DiseaseController::ZHUANTI_QUERYTYPE_CMSCATEGORY, '', '', '')?>">全部栏目</a></h3>
                <ul class="menu_cate3">
    <?php 
        $array4Paper = CmsObjCategory::getDescArray4Paper();
        $categoryInfos = $diseasePage->getPaperCountGroupByCategory();
        foreach($categoryInfos as $key => $count){
    ?>
                    <li><a href="<?=DiseasePage::getZhuantiUrl($disease->key, DiseaseController::ZHUANTI_QUERYTYPE_CMSCATEGORY, '', '', $key)?>" class="<?=($key == $cmsCategory) ? 'cur' : ''?>"><?=$array4Paper[$key]?>(<?=$count?>)</a></li>
    <?php
        }
    ?>
                </ul>
            </div>
        </div>
    </div>
    <!--左侧导航 end--> 
<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>
<!--精品专题-->
    <?php 
    $linkset_jpzt = $diseasePage->getLinkSet_jpzt4Zhuanti();
    if ($preview || $linkset_jpzt->isOnline)
    {
    ?>
<div class="essence_art mb30">
    <h3 class="f20 black fn">精品专题
<?php
    $url = "http://".URL_PREFIX."hdfadmin.haodf.com/linkset/modify?linksetId=".$linkset_jpzt->id;
    echo DiseasePage::getEditHtml4PreviewPage($url);
?>
</h3>
    <ul class="clearfix fs">
    <?php 
        if ($preview || (LinkSet::ONLINE == $linkset_jpzt->isOnline))
        {
            $links = $linkset_jpzt->getLinks();
            foreach($links as $index => $link)
            {
    ?>

        <li><a target="_blank" href="<?=$link['url']?>"><?=XString::truncate($link['txt'], 36)?></a></li>
    <?php
            }
        }
    ?>
    </ul>
</div>
<?php } ?>
<!--精华文章 end--> 
<!--好评医生列表开始-->
<p class="pt20 fs pb10 gray3">好评票是该医生所治疗的<?=$disease->name?>患者对其进行的投票,看病经验是<?=$disease->name?>患者经该医生治疗后的经验分享</p>
<ul class="fs hp_doc clearfix">
<?php
if (true == empty($doctorList))
{
    $emptyInfo = '相关医生';
    $provinceName = '';
    $provinceList = Area::provInfoAll();
    if (isset($provinceList[$province])){
        $provinceName = $provinceList[$province]['Province'];
    }

    $services = DiseasePage::$services;
    $serviceForShow = isset($services[$service])?$services[$service]:'全部';
    $grades = DiseasePage::getHospitalGrades();
    $gradeDes = isset($grades[$hospitalGrade]) ? ' '.$grades[$hospitalGrade] : '';


    $emptyInfo = '"'.$provinceName.' '.$serviceForShow.' '.$gradeDes.' ' .$doctorGrade.'" 的推荐医生';

?>

<? include_once dirname(__file__).'/../common/_noresult_inner.php'; ?>

<?php } ?>

<?php
$spaceIds = array();
foreach($doctorList as $doctor)
{
示例#6
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>
示例#7
0
</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>
示例#8
0
            </p>
        </div>
<?php
}
?>
    <!-- 推荐医院 start-->
            <? 
            if (0 < count($hospitalList))
            {
                include_once dirname(__file__).'/_center_hospitals_inner.php';
            }
            else
            {
                $provinceName = '';
                $provinceList = Area::provInfoAll();
                if (isset($provinceList[$province])){
                    $provinceName = $provinceList[$province]['Province'];
                }
                $grades = DiseasePage::getHospitalGrades();
                $gradeDes = isset($grades[$hospitalGrade]) ? ' '.$grades[$hospitalGrade] : '';
                $categorys = DiseasePage::getHospitalCategorys();
                $categoryName = isset($categorys[$category]) ? ' '.$categorys[$category] : '';
                $emptyInfo =
                '"'.$provinceName.$city.$gradeDes.$categoryName.'"  相关医院';
                include_once dirname(__file__).'/../common/_noresult_inner.php'; 
            }
            ?>
    <!-- 推荐医院 end-->
    </div>
</div>
		<!--推荐专家 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>
            -->
<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>
<div class="hot_zixun_box">
<?php
    $previewStr = '';
    if ($preview)
    {
        $previewStr = '&preview=1';
    }
    $url = "http://".URL_PREFIX."hdfadmin.haodf.com/diseasepage/modifyhotaskkeys?diseasePageId=".$diseasePage->id;
    echo DiseasePage::getEditHtml4PreviewPage($url, '后台编辑搜索热词');
    $hotKey = $diseasePage->getHotKeys4Front();
    $_flag = 1; 
    foreach($hotKey as $key)
    {
        foreach($key as $k)
        {
            if (empty($k) && !$preview)
            {
                $_flag = 0;
                break;
            }
        }
    }
    if ($_flag)
    {
?>
<h3 class="hot_icon">热门咨询</h3>
<ul class="clearfix">
<li><a href="<?=$disease->getZixunUrl().'?'.$previewStr?>" class="cur">全部</a></li>
<?php
if ($_flag)
{
示例#12
0
<div
class="clearfix
cate_title2">

<p
class="module2"><a
href="<?=DiseasePage::getZhuantiUrl($disease->key, DiseaseController::ZHUANTI_QUERYTYPE_CMSCATEGORY, '', '', 8)?>" target="_blank"
>疾病专题</a></p>

<p
class="fr
pt5">

<a
href="<?=DiseasePage::getZhuantiUrl($disease->key,
DiseaseController::ZHUANTI_QUERYTYPE_CMSCATEGORY, '', '', 8)?>" target="_blank"
class="fs">更多<span
class="f8">>></span></a>

</p>

<i
class="b_arrow3"></i>

</div>
<div
class="gray2
fs
hdf_visit">

<ul
    public function zhuanti($request, $response)
    {/*{{{*/
        $this->initialize($request, $response);
        
        //疾病页2013版
        $diseasePage = DiseasePage::getByDiseaseId($this->disease->id);
        if($diseasePage instanceof DiseasePage && $diseasePage->isOnlineOrPreview())
        {
            $this->diseasePageZhuanti($request, $response);
        	return 'diseasepage';
        }
        $this->pageIndex = 'zhuanti';
        $title = $this->disease->name . '更多专家观点';
        $name = $this->disease->name;
        $response->diseaseName=$name;

        list($openBooking, $topic, $doctor) = $this->getZhuanTi4Case();
        $response->openBooking = $openBooking;
        $response->topic = $topic;
        $response->doctor = $doctor;

        List($zhuanTiCount, $zhuanTiList)  = $this->getZhuanTiListByDiseaseId($this->disease->id);
		//分页
        $this->showPageInfo4ZhuanTiList($zhuanTiList,$request,$response);

        //取推荐大夫数
        $ddCnt = DiseaseClient::getInstance()->getDiseaseDoctorCnt($this->disease->id);

        $response->disease = $this->disease;
        $response->pageIndex = $this->pageIndex;
        $response->title = $title;
        $response->ddCnt = $ddCnt;
        $response->pageSite = $this->pageSite;

        $params = array();
        $params['diseaseId'] = $this->disease->id;
        $params['limit'] = 10;
        $params['postcount'] = 0;
        $params['spaceAdminLevel'] = 3;
        $params['orderby'] = 'rank';
        $lastSpaces = SpaceClient::getInstance()->getLatestOnlineSpaceList($params);
        $lastSpaces = $lastSpaces['spaceList']; 
        //两周内回复数
        $spacePostCntInfos = $this->getspacePostCntInfo($lastSpaces);
        $response->spacePostCntInfos = $spacePostCntInfos;	          
        $response->latestOnlineSpaces = $lastSpaces;
    }/*}}}*/