protected function getData($nowPage, $pageSize)
    {/*{{{*/
        $diseaseList = DiseaseClient::getInstance()->getAllDiseaseList($nowPage, $pageSize, array());
        if($nowPage <= $this->totalTimes && empty($diseaseList['list']))
        {
            throw new OpenPlatFormException("该次数据库取数据为空");
        }
        $diseases = array();
        foreach ($diseaseList['list'] as $disease)
        {
            $tmpArr = array();
            $zhuanTiList = $this->getZhuanTi($disease);

            $tmpArr['item']['related'] = "";
            if ($disease->related)
            {
                $i = 0;
                foreach ($disease->getRelatedDiseaseList() as $diseaseRelatedInfo)
                {
                    $dot = ($i == 0) ? "" : ",";
                    $tmpArr['item']['related'] .= $dot.$diseaseRelatedInfo['diseaseName'];
                    $i++;
                }
            }
            $tmpArr['item']['name'] = $disease->name;
            $tmpArr['item']['url'] = $disease->getUrl();
            $tmpArr['item']['yiyuan'] = $disease->getHospitalUrl(); 
            $tmpArr['item']['daifu'] = $disease->getDoctorUrl();
            $tmpArr['item']['zixun'] = $disease->getZixunUrl();
            if (false == empty($zhuanTiList))
            {
                $tmpArr['item']['zhuanti'] = $disease->getZhuantiUrl();
            }
            $tmpArr['item']['jieshao'] = $disease->getIntroUrl();
            $labelInfos  = DiseaseClient::getInstance()->getDiseaseLableByDiseaseAndLable($disease);
            foreach($labelInfos as $labelInfo)
            {
                $labelDesc['label']['labelName'] = LableDefine::getLableTitle($labelInfo['lableId']);
                $labelDesc['label']['labelUrl'] = 'http://www.haodf.com/lablelist/'.$disease->id.'/'.$labelInfo['lableId'].'.htm';

                if (false == in_array($labelDesc, $tmpArr['item']))
                {
                    $tmpArr['item'][] = $labelDesc;
                }
            }

            $diseases[] = $tmpArr;
            BeanFinder::get('LocalCache')->removeAll(); 
        }

        return $diseases;
    }/*}}}*/
<!-- start d-articleClass -->
<div class="d-articleClass bg mt10">
	<h3 class="d-articleClass-t d-tempTitle">文章分类</h3>
		<div class="d-hosBox-province">

            <?php foreach($lableList as $key => $lable){ ?>
                <?php if(isset($lableId) && $lableId == $key){ 
				?>
                    <a target="_blank" class="active" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/wenzhang.htm?lableid=<?=$key?>"><?=LableDefine::getLableTitle($key)?></a>
                <?php }else{ ?>
                    <a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/wenzhang.htm?lableid=<?=$key?>"><?=LableDefine::getLableTitle($key)?></a>
                <?php } ?>
            <?php } ?>
        </div>
        <div class="p15 f-yahei">
             <?php if(isset($isPGroup)){?>
                <!-- 碎片组模板:疾病页,disease;碎片模板:三级页疾病知识讲解区,disease_jbzs_doctor_jiangjie  beg-->
                   <?=Place::getPlaceContent('disease', 'disease_jbzs_doctor_jiangjie', $disease->key)?>
                <!-- end-->
             <?php }else{?>
		        <?=SpiderClient::getInstance()->showPiece($channelId, $isPreview, 'disease_jbzs_doctor_jiangjie', dirname(__FILE__).'/diseasepiece/i_jbzs_doctor_jiangjie.php')?>
             <?php }?>
		<ul class="mt30 doctorArticleList">
            <?php
            $i = 0;
            foreach($diseaseLableList as $type => $diseaseLable)
            {
				if(0 != $i & $i++%5 == 0)
				{
					echo('<li class="clearfix">&nbsp</li>');
				}
<!--左侧导航 start-->
<div class="fl">
        <div class="left_bar" id="left_bar">
            <div class="left_bar_menu fs">
            <h3 class="total"><a href="<?=DiseasePage::getZhuantiUrl($disease->key, DiseaseController::ZHUANTI_QUERYTYPE_LABLE)?>">全部专题</a></h3>
                <ul class="menu_cate">
<?php 
    $lableInfos = $diseasePage->getPaperAndZhuantiLableInfo();
    foreach($lableInfos as $rootKey =>$lableInfo){ 
?>
                    <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>
Esempio n. 4
0
<div class="jbnew_left2">
  <div class="jbnew_li_l_tit"><?=$disease->name?>֪ʶĿ¼</div>
  <div class="jbnew_li_l_bar">
    <ul class="jbnew_li_l_list">
    <?php foreach ($lableList as $key => $lable) {?>
      <li><a href="/disease/lablelist?diseaseid=<?=$disease->id?>&lableid=<?=$key?>">
      <span <?=($lableId == $key)?"class='bold'":""?>><?=LableDefine::getLableTitle($key)?></span>
      (<span class="orange"><?=count($lable)?></span>ƪ)</a></li>
    <?php } ?>
    </ul>
  </div>
</div>
<div class="jbnew_right2">
  <div class="jbnew_l_t_bar">
    <div class="jbnew_l_t_bar_tit2"><?=$disease->name?> <?=LableDefine::getLableTitle($lableId)?></div>
<?php 
foreach ($diseaseLableList as $type => $diseaseLable) 
{
		if ($diseaseLable['type'] == DiseaseLable::LABLE_ZHUANTI)
		{
			$zhuanTi = $diseaseLable['data'];
			$zhuanTiDoctor = isset($doctorList4ZhuanTi[$zhuanTi->id])?$doctorList4ZhuanTi[$zhuanTi->id]:'';
?>
	<!-- Ò»´ÎÑ­»·  start-->
	    <div class="jbnew_li_l_con">
	      <div class="jbnew_l_t_r_gd2">
	      <?php if (false == empty($zhuanTiDoctor)) 
	      {
	      	$zhuanTiDoctorHeadImg = $zhuanTiDoctor->getMediumHeadImage();
	      ?>
<?php if (false == empty($diseaseLableList)) {?>
<div class="jbnew_l_t_bar">
    <ul class="jbnew_l_t_bar_list">
    <?php
    foreach ($diseaseLableList as $lableId => $diseaseLableObjList) 
    {
    	if (false == empty($diseaseLableObjList)) {
    ?>
      <li>
        <h2 class="jbnew_l_t_bar_tit"><a style="text-decoration:none;" href="/lablelist/<?=$disease->id?>/<?=$lableId?>.htm" target="_blank"><span class="green_jb"><?=$disease->name?></span><?=LableDefine::getLableTitle($lableId)?></a></h2>
        <div class="jbnew_l_t_bar_list_con"   style="height:150px;padding: 0px 15px 5px;">
          <div class="jbnew_l_t_bar_list_con2"  style="height:125px;">
          <?php
          foreach ($diseaseLableObjList as $x => $obj) 
          {
          ?>
	          <?php if ($obj instanceof Article && $obj instanceof space){?>
	            <?php if($obj->user->hasSpace()){?>
	                ¡¤<a href="<?=$obj->getUrl()?>" target="_blank"><?=Xstring::truncate($obj->title, 45)?></a><br /> 
	            <?php }?>
	          <?php }else{?>
	                ¡¤<a href="<?=$obj->getUrl()?>" target="_blank"><?=Xstring::truncate($obj->title, 45)?></a><br /> 
	          <?php }?>
          <?php 
          }
          ?>
          </div>
          <div class="jbnew_more"><a href="/lablelist/<?=$disease->id?>/<?=$lableId?>.htm" class="green_jb" target="_blank">²é¿´¸ü¶à>></a></div>
        </div>
      </li>
    <?php } } ?>
            <ul class="<?=($templateTabNum == 3) ? "list3" : (($templateTabNum == 2) ? "list2" : "")?>">
                <?php foreach ($templateTabArray as $key => $tabName) { ?>
                <li><a href="javascript:;" style="<?=($templateTabNum == 3 && $key == 2) ? "border:none;" : ""?>"><?=$tabName?></a></li>
                <?php } ?>
            </ul>
        </div>

        <div class="bd">
          <?php if (false == empty($cntList)) {
                     $i = 0;
           ?>
                   <ul>
                       <?php foreach($cntList as $lable => $cnt) { 
                           $i ++;
                       ?>
                            <li><a href="<?=$router->urlfor('disease/articlelist', array('key' => $disease->key, 'lableid' => $lable))?>"><?=$disease->name?>的<?=LableDefine::getLableTitle($lable)?></a></li>
                       <?php 
                           if ($i > 2) break;
                       } 
                        if (count($cntList) > 3) { ?>
                            <li class="more"><a href="<?=$router->urlfor('disease/diseaseknowledge', array('key' => $disease->key))?>">查看更多</a></li>
                        <?php } ?>
                    </ul>
          <?php } ?>

          <?php if (false == empty($thesisList)) {
                     $i = 0;
           ?>
                   <ul id="thesisList" style="display:none">
                       <?php foreach($thesisList as $thesis) { 
                           $i ++;
            if (false == isset($diseaseLableListInfos[$lable]))
            {
                continue;
            }
            $article = $diseaseLableListInfos[$lable];
            $content = htmlspecialchars_decode(Seolink::outPut($article->content)); 
            $content = preg_replace("/<a[^>]*>/i", "", $content);
            $content = preg_replace("/&nbsp;/i", "", $content);
            if (strpos($article->space->extraOptions, 'ArticleEmbeddedLink=0') === FALSE) 
            {
                $content = preg_replace('/^(.{300}.*?)\<(br|\/p|\/div|\/center)/is', '\\1' . $article->space->getFullUrl() .'<\\2', $content);
            } 
            $content = XString::truncate(strip_tags(nl2br($content)),100);

            ?>
            <div class="new_11_list">
                <h3 class="list_tit"><?=$disease->name?>µÄ<?=LableDefine::getLableTitle($lable)?>£¨<span style="font-weight:normal;"><?=$cnt?>ƪ</span>£©</h3>
                <a href="<?=$router->urlfor('disease/articlelist', array('key' => $disease->key, 'lableid' => $lable))?>">
                    <h2 class="list_wz_tit"><?=$article->title?></h2>
                </a>
                <a href="<?=$router->urlfor('disease/articlelist', array('key' => $disease->key, 'lableid' => $lable))?>">
                    <div class="con"><?=$content?></div>
                </a>
                <div class="time"><?=$article->hits + $displayArticleNewHits[$article->id]?>ÒѶÁ</div>
            </div>
    <?php } 
     } ?>
</div>
<?php include_once dirname(__file__).'/../_innerfooter.php' ?>

Esempio n. 8
0
<?php include_once dirname(__file__).'/../_headergohome.php' ?>
    
<div class="new_11_jbyy">
    <h1 class="list_tit hh"><?=$disease->name?>µÄ<?=LableDefine::getLableTitle($lableId)?>£¨<span><?=$labelList[$lableId]?>ƪ</span>£©</h3>
</div>
<div class="new_11_jbzs" id="container">
    <?include('_articlelist_content.php');?>
</div>
<?php if ($nowPage < $pages) { ?>
<div id='more_btn' class="pub_btn_1 mb20">
    <a href="javascript:;">¼ÓÔظü¶à</a>
</div>
<?=PageNav::ajaxPageNavEventBind('#more_btn', '#container', $touchUrl.'/jibing/'.$disease->key.'/wenzhang/loadmorearticlelist?lableid='.$lableId.'&p=')?>
<?php } ?>
<?php include_once dirname(__file__).'/_labellist.php' ?>
<?php include_once dirname(__file__).'/../_innerfooter.php' ?>
Esempio n. 9
0
        <div class="hdf-qq-banner hdf-qq-green-b"><h1 class="f24"><?=$disease->name?></h1></div>
		<div class="hdf-qq-content clearfix">
			<div class="hdf-qq-main fl">
				<div class="intro-case hdf-qq-green-b p15 mt10">
                    <h2 class="intro-case-title f18">什么是<?=$disease->name?>?</h2>
                    <div class="intro-case-content pl20 pt20"><?=$diseaseIntro?>
						<a href="/disease/<?=$disease->key?>/jieshao.htm" class="green">看详情>></a>
                    </div>
				</div>
            <?php if (false == empty($diseaseLableList)) {?>
				<div class="case-details clearfix hdf-qq-green-b mt10">
            <?php foreach ($diseaseLableList as $lableId => $diseaseLableObjList) {
                    if (false == empty($diseaseLableObjList)) { ?>
					<div class="case-details-box has-right-b fl">
                        <div class="case-details-box-t f16">
                        <span class="green"><?=$disease->name?></span><?=LableDefine::getLableTitle($lableId)?></div>
						<div class="case-details-box-c p20 pr">
							<ul>
                      <?php foreach ($diseaseLableObjList as $x => $obj) { ?>
                          <?php if ($obj instanceof Article){?>
								<li class="pb5"><a href="/doctor/articledetail/<?=$obj->id?>.htm"><?=Xstring::truncate($obj->title, 42)?></a></li>
                          <?php }}?>
							</ul>
                            <p class="tr pa" style="right:8px; bottom:10px;">
                            <a href="/disease/<?=$disease->key?>/article/<?=$lableId?>.htm" class="green">查看更多>></a>
                            </p>
						</div>
					</div>
                <?php }} ?>
				</div>
                <?}?>
Esempio n. 10
0
<ul
class="slide_box
bb_e5">
<?php
$res = $diseasePage->getLableIdAndCntByLevelUnderOneLevel($rootKey);
foreach($res as $i => $r)
{
   //隐掉就诊指南与治疗费用
   if ($i == 302 || $i == 301) 
   {
       continue;
   }
?>

<li>
<a class="<?=($i == $lableid) ? "cur" : ''?>" href="<?=$diseasePage->getArticleUrl($disease->key, $i)?>"><?=LableDefine::getLableTitle($i)?>(<?=$r?>)</a>
</li>

<?php } ?>
</ul>

</li>
<?php
}?>


</ul>

<div
class="lanmu">
Esempio n. 11
0
<div class="cate_box1 mb20 pl25">
<div class="clearfix cate_title1 mb15">
    <p class="module1"><a href="http://www.<?=URL_PREFIX ?>haodf.com/jibing/<?=$disease->key?>/wenzhang.htm" target="_blank"><?=$diseaseName?>360度详解</a></p>
    <a href="http://www.<?=URL_PREFIX ?>haodf.com/jibing/<?=$disease->key?>/wenzhang.htm" target="_blank" class="fr fs pt10">查看全部医生文章<span class="f8">>></span></a>
    <i class="g_arrow4"></i>
</div>
<div class="w900 oh">
    <ul class="dis_detail fs">
    <?php
        foreach($lableids as $lableid)
        {
      ?>
        <li class="li_box">
            <div class="box1">
                <div class="clearfix">
                    <h2 class="title1"><a target="_blank" href="<?=$diseasePage->getArticleUrl($disease->key, $lableid['lableid'])?>"><?=$diseasePage->disease->name?>的<?=LableDefine::getLableTitle($lableid['lableid'])?></a></h2>
                    <a target="_blank" href="<?=$diseasePage->getArticleUrl($disease->key, $lableid['lableid'])?>" class="blue_font3 fr">更多<span class="f8 ml5">>></span></a>
                </div>
<ul class="box2">
<?php
            $articleIds = DAL::get()->queryArticlesByLableId('diseasepage', $lableid['lableid'], $diseasePage->disease->id);
            foreach($articleIds as $articleId)
            {
                $article = DAL::get()->find('article', $articleId);
                $_title = $article->showTitle;

?>
            <li class="clearfix">
                <a target="_blank" href="<?=$article->getUrl()?>" class="title2"><?=XString::truncate($_title, 40)?></a>
                <a target="_blank" href="<?=$article->space->getUrl()?>" class="name"><?=$article->space->host->name?></a>
            </li>
    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;

    }/*}}}*/
Esempio n. 13
0
<?php if (count($labelList) > 1) { ?>
<div class="new_11_xgjb pb10">
	<ul class="case_new_list2">
    <?php foreach ($labelList as $key => $value) { 
        if ($key == $lableId)
        {
            continue;
        }
    ?>
        <li><a href="lableid_<?=$key?>.htm"><?=LableDefine::getLableTitle($key)?>(<?=$value?>ƪ)</a></li>
        <?php } ?>
        <li class="clear"></li>
    </ul>
</div>
<?php } ?>
    public function getArticleCategoryListByDiseaseKey($diseaseKey)
    {/*{{{*/
        $disease = DAL::get()->find_by_fld_diseasekey('disease', $diseaseKey);
        if($disease->isNull())
        {
            $this->setErrorCode(136);
            return 0;
        }
		$lableList = array();
		foreach ($disease->diseaselables as $key => $diseaselable)
		{
            if(strtolower($diseaselable->type) == DiseaseLable::LABLE_ARTICLE && false == $diseaselable->relatedObject->space->isNull())
            {
                $lableList[$diseaselable->lableid][] = $diseaselable;
            }
		}
		ksort($lableList);
        $infos = array();
        $infos[0]['categoryName'] = '全部文章';
        $infos[0]['categoryId'] = 0;
        $infos[0]['diseaseId'] = $disease->id;
        $infos[0]['articleCount'] = 0;
        $totalCount = 0;
        foreach($lableList as $key => $lable)
        {
            $info = array();
            $info['categoryName'] = LableDefine::getLableTitle($key);
            $info['articleCount'] = count($lable);
            $totalCount += count($lable);
            $info['categoryId'] = $key;
            $info['diseaseId'] = $disease->id;
            $infos[] = $info;
        }
        $infos[0]['articleCount'] = $totalCount;
        $this->content = $infos;
    }/*}}}*/
Esempio n. 15
0
    <h1 style="font-size:24px; font-weight:700; font-family:'΢ÈíÑźÚ','ºÚÌå'; padding:21px 0 7px 30px; float:left; display:inline;">
    <a href="<?=$wwwUrl ?>/jibing/<?=$disease->key?>.htm" title="<?=$disease->name?>Ê×Ò³"><?=$disease->name?></a>&nbsp;
    <span class="font16" style="color:#000;"><?=$extraName?></span>
    </h1>
    <ul>
    	<?php foreach ($modules as $key => $module) { ?>
    	<li id="<?=($key == $pageIndex) ? 'hdf-subMenu_green_active' : ''?>">
    	<em><b><a href="<?=$module['link']?>" ><?=$module['name']?></a></b></em>
    	</li>
		<?php } ?>
	</ul>
    <div class="cls"></div>
</div>

<?php
//¼²²¡topbanner¹ã¸æ£¬by zhongzheng
include_once('_ads_topbanner.php');

?>
<div id="currentPath">
µ±Ç°Î»Öãº
    <a href="http://www.haodf.com" >ºÃ´ó·òÔÚÏß</a> > 
    <a href="/jibing/list.htm">¼²²¡</a> 
    > <a href="/jibing/<?=$disease->key?>.htm"><?=$disease->name?></a>
    <?php if (isset($lableId)) 
    {
 		echo " > ".LableDefine::getLableTitle($lableId);
    }
    ?>
</div>