Exemplo n.º 1
0
      	   <a href="http://<?= $hospitalFaculty->space->user->name ?>.haodf.com/" ><img src="http://i1.hdfimg.com/images/common/04.gif" border="0" /></a>
          </div>
      <?php } ?>
   <div class="clear">
   <?php if(!empty($latestCommentList)){?>
          	<div class="top_bg">患者最新就医经验</div>
            <table width="95%" border="0" cellspacing="0" cellpadding="0" align="center" class="listyy">
			<?php foreach($latestCommentList as $comment){?>
            <tr>
                <td width="7%"><img src="http://i1.hdfimg.com/hz/images/sohu/icon_doctor.gif" width="12" height="14" /></td>
                <td width="51%"><a class="blue bold" href="<?=$router->urlfor('doctor/showdetail', array('id'=>$comment->doctor->getEncodeId())) ?>"><?=$comment->doctor->name ?></a> - <a class="blue bold" href="<?=$router->urlfor('hospital/showdetail', array('id'=>$hospitalFaculty->hospital->getEncodeId())) ?>"><?=$hospitalFaculty->hospital->commonName ?></a></td>
                <td width="42%" align="right">
               <?php if(($comment->disease->name)!=''){
	            if($isDiseaseOpen){
               		if($isSohu)
						$url = PartnerUrl::getDiseaseLink($comment->disease->key); 	
			        elseif($isPicc)
				        $url = $router->urlfor('disease/showdetail', array('key'=>$comment->disease->key));
					else
						$url = $router->urlfor('disease/index', array('key'=>$comment->disease->key));
               	}else{ $url = "http://www.haodf.com/jibing/".$comment->disease->key.".htm"; }
                ?>
              		[<a href="<?=$url ?>" class="orange" ><?=$comment->disease->name ?></a>]
              	<?php }?>		
              	</td>
              </tr>
              <tr style="padding-bottom:6px;">
                <td width="7%">&nbsp;</td>
              <td colspan="2">
                 <?php if(($comment->content)!=''&&strlen($comment->content)>30){?>
					<?=mb_substr(strip_tags($comment->content),0,50,'gbk') ?>...
Exemplo n.º 2
0
		<td>&nbsp;</td>
		<td width="40%"><a
			href="<?=$router->urlfor('doctor/showdetail',array('id'=>$sameDoctor->doctor->getEncodeId())) ?>">
			<?=$sameDoctor->doctor->name?></a>(<?= $sameDoctor->goodVoteCount?>票)</td>
		<td><a
			href="<?=$router->urlfor('hospital/showdetail',array('id'=>$sameDoctor->doctor->hospitalfaculty->hospital->getEncodeId())) ?>"
			title="<?=$sameDoctor->doctor->hospitalfaculty->hospital->commonName?>">
			<?=$sameDoctor->doctor->hospitalfaculty->hospital->commonName?></a></td>
	</tr>
	<?php } ?>
    <?php 
	    if($isDiseaseOpen)
		{
			if($isSohu)
            {
                $url = PartnerUrl::getDiseaseLink($diseaseIds[$key]['key']);
            }
            elseif($isPicc)
            {
                $url = "/jibing/".$diseaseIds[$key]['key'].".htm";
            }
            else
            {
                $url = "/disease/".$diseaseIds[$key]['key'].".htm";
            }
		}
		else
		{
			$url = "http://www.haodf.com/jibing/".$diseaseIds[$key]['key'].".htm";
        }?>
	<tr align="right">