示例#1
0
                ?>
			    得票(<span class="orange"><?=$goodVoteCount[$doctor2->id]?>票</span>)<br />
            <?php 
            }
			if($space->isNull() == false) {
				$postCount = isset($spacePostCntInfos[$space->id]) ? $spacePostCntInfos[$space->id] : 0;
				if($postCount > 0) {
			?>
			两周回复(<span class="orange"><?=$postCount ?></span>)
			<?php }
			}
			?>
			</td>
			<td>
                <?php if ($space->isNull() == false) { ?>
                <li style="width:100px;background:none; padding:0"><a class="blue" target="_blank" href="<?=$space->getUrl() ?>" title="<?=$space->host->name?>大夫的个人网站">访问个人网站>></a></li>	
				<?php if (true == $space->isCaseAndNewCaseOpen() && false == $space->isRefusedNewCase() && $space->user->allowAnswer() && 0 != $space->modulecase->allowNewMaxNumber){ 
						if (1 == $isaskedfull[$space->user->id]){?>
				<li style="width:80px; background:url(http://i1.hdfimg.com/v2/images/h_hf/user1_message.gif) 0 3px no-repeat">             
                <a style="color:red;text-decoration:none;">
                                                咨询已满
                </a>
                </li>
                <?php } else { ?>
                <li  style="width:80px; background:url(http://i1.hdfimg.com/v2/images/h_hf/user1_message.gif) 0 3px no-repeat">             
                <a href="http://<?=URL_PREFIX?>zixun.haodf.com/ask.php?host_user_id=<?=$space->user->id?>" target="_blank" style="color:green;">
                                                可咨询
                </a>
                </li>
                <?php } ?>
				<?php } ?>
示例#2
0
	</td>
    <td><p class="tl pl15"><?=$dspecialilze?></p></td>
    <td>
        <div class="tl pl40">
        <?php if($dvotes > 0){ ?>
        <p class="mt5 d-introExpert-table-star">得票(<span class="orange fb"><?=$dvotes?>票</span>)</p>
        <?php } ?>
        <?php if(isset($postCount) && $postCount > 0){ ?>
            <p class="mt5 d-introExpert-table-return">两周回复(<span class="orange fb"><?=$postCount?></span>)</p>
        <?php } ?>
        </div>
    </td>
    <td>
        <?php if(false == $space->isNull()){ ?>
            <ul class="tl pl30">
                <li class="d-introExpert-table-home"><a target="_blank" href="<?=$space->getUrl()?>" class="green">医生个人网站</a></li>
                <?php if(true == $space->isCaseAndNewCaseOpen() && false == $space->isRefusedNewCase() && $space->user->allowAnswer() && 0 != $space->modulecase->allowNewMaxNumber){ ?>
                <?php if(1 == $isaskedfull[$space->user->id]){ ?>  
                    <li class="mt5 d-introExpert-table-zixun"><span class="red">咨询已满</span></li>
                <?php }else{ ?>
                    <li class="mt5 d-introExpert-table-zixun"><a target="_blank" href="<?=$space->getAskUrl()?>" class="green">可咨询</a></li>
                <?php } } ?>
                <?php if ($space->isNull() == false && $space->isPhoneOpenedForFront($curUser->id)) { ?>
                    <li class="mt5 d-introExpert-table-canTel"><a target="_blank" href="<?=$space->getMakePhoneOrderUrl()?>" class="green">可通电话</a></li>
                <?php } ?>
                <?php if ($space->isNull() == false && in_array($space->user->id, (array)$bookingList)) { ?>
                    <li class="mt5 d-introExpert-table-jiahao"><a target="_blank" href="http://<?=URL_PREFIX?>jiahao.haodf.com/doctor/<?=$space->userName?>/index.htm" class="green">可加号</a></li>
                <?php } ?>
            </ul>
        <?php } 
		?>
    }
    else
    {
        $space = new NullEntity();
    }	            
    $dtitle = (string)$doctor2->grade? $doctor2->grade : '';
	$dgrade = (string)$doctor2->educateGrade? $doctor2->educateGrade : '';
	if(false == empty($dtitle) && false == empty($dgrade))
	{
		$dtitle .= "/";
	}
    $dspecialilze = (string)($space->isNull() == false && $space->commonCaseNote) ? $space->commonCaseNote : $doctor2->specialize;
    $dspecialilze = XString::truncate($dspecialilze, 84);
    if($space->isNull() == false)
    {
        $spaceUrl = $space->getUrl();
        $postCount = isset($spacePostCntInfos[$space->id]) ? $spacePostCntInfos[$space->id] : 0;
    }
    else
    {
        $spaceUrl = $doctor2->getUrl();
    }
    $diseaseDoctor = DAL::get()->find_by_fld_diseaseid_and_fld_doctorid('DiseaseDoctor', $disease->id,
            $doctor2->id);
?>
					<li>
						<div class="clearfix pb10 pr">
                        <p class="fl doc_head2"><a target="_blank" href="<?=$spaceUrl?>"><img src="<?=$doctor2->getSmallHeadImage()?>" /></a></p>
							<div class="oh zoom pl15 lh180">
                            <p class="doc_name"><a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/doctor/<?=$doctor2->getEncodeId()?>.htm"><?=$doctor2->name?></a><span class="gray2 ml5"><?=$dtitle?><?=$dgrade?></span></p>
                            <p><a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/tuijian/<?=$doctor2->hospitalfaculty->hospital->getEncodeId()?>/<?=$disease->key?>.htm" class="gray2"><?=$doctor2->hospitalfaculty->hospital->commonName?></a></p>