if(false == $adDoctorArr['doctor']->isNull()) { $adDoctor = $adDoctorArr['doctor']; $space = $adDoctor->hasSpace() ? $spaceList[$adDoctor->space->id] : new NullEntity(); $hfname = $adDoctor->hospitalfaculty->hospital->commonName . $adDoctor->hospitalfaculty->name; $dtitle = (string)$adDoctor->grade? $adDoctor->grade: ''; $dgrade = (string)$adDoctor->educateGrade? $adDoctor->educateGrade: ' '; $dtitle = (string)$adDoctor->grade? $adDoctor->grade : ''; $dgrade = (string)$adDoctor->educateGrade? $adDoctor->educateGrade : ''; if(false == empty($dtitle) && false == empty($dgrade)) { $dtitle .= "/"; } $dspecialilze = (string)($space->isNull() == false && $space->commonCaseNote) ? $space->commonCaseNote : $adDoctor->specialize; $dspecialilze = XString::truncate($dspecialilze, 84); $dranktype = DiseaseDoctor::getRealRankType($adDoctorArr['rankType']); if($space->isNull() == false) { $postCount = isset($spacePostCntInfos[$space->user->id]) ? $spacePostCntInfos[$space->user->id] : 0; } ?> <tr class="gray active"> <td> <div class="pr zoom"> <table> <tr> <td class="doctorAvatar1"><a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/doctor/<?=$adDoctor->getEncodeId()?>.htm"><img width="58px" height="58px" src="<?=$adDoctor->getMediumHeadImage()?>"></a></td> </tr> </table> <img class="pa d-introExpert-table-introIcon" src="http://i1.hdfimg.com/www/images/disease16.png" /> </div>
} $hfname = $doctor2->hospitalfaculty->hospital->commonName . $doctor2->hospitalfaculty->name; $hospitalFacultyUrl = $doctor2->hospitalfaculty->getUrl(); $dtitle = (string)$doctor2->grade ? '<br />' . $doctor2->grade : ''; $dgrade = (string)$doctor2->educateGrade ? '<br/>' . $doctor2->educateGrade : ''; $dspecialilze = (string)($space->isNull() == false && $space->commonCaseNote) ? $space->commonCaseNote : $doctor2->specialize; $dspecialilze = XString::truncate($dspecialilze, 84); }else{ $space = ($doctor2->doctor->hasSpace() && empty($spaceList) == false ) && isset($spaceList[$doctor2->doctor->space->id]) ? $spaceList[$doctor2->doctor->space->id] : new NullEntity(); $hfname = $doctor2->doctor->hospitalfaculty->hospital->commonName . $doctor2->doctor->hospitalfaculty->name; $hospitalFacultyUrl = $doctor2->doctor->hospitalfaculty->getUrl(); $dtitle = (string)$doctor2->doctor->grade ? '<br />' . $doctor2->doctor->grade : ''; $dgrade = (string)$doctor2->doctor->educateGrade ? '<br/>' . $doctor2->doctor->educateGrade : ''; $dspecialilze = (string)($space->isNull() == false && $space->commonCaseNote) ? $space->commonCaseNote : $doctor2->doctor->specialize; $dspecialilze = XString::truncate($dspecialilze, 84); $dranktype =DiseaseDoctor::getRealRankType($doctor2->rankType); } ?> <tr> <td> <?php if(!($doctor2 instanceof Doctor)){?> <li> <a href="<?=$hpUrl?>/doctor/<?=$doctor2->doctor->getEncodeId() ?>.htm" target="_blank" title="<?=$doctor2->doctor->name?>"><?=$doctor2->doctor->name?></a> <?php if (!$space->isNull() ) { ?> <a class="blue" target="_blank" href="<?=$space->getUrl() ?>" title="<?=$doctor2->doctor->name?>大夫的个人网站"> <img height="16" align="absmiddle" width="16" alt="<?=$doctor2->doctor->name ?>" src="http://i1.hdfimg.com/images/common/iconhome16.gif"></a> <?php }?> <?=$dtitle?><?=$dgrade?> </li> <?php if ($doctor2->doctor->isGoodDoctor())