Example #1
0
													<?php if (!$space->isNull()) { ?><a href="<?=$space->getUrl()?>"><img align="absmiddle" height="16" src="http://i1.hdfimg.com/images/common/iconhome16.gif" width="16" /></a><?php } ?>
													</td>
												</tr>
												<tr>
													<td>&nbsp;</td>
													<td><?=$diseaseDoctor->doctor->grade?></td>
												</tr>
												<tr>
													<td>&nbsp;</td>
													<td><?=$diseaseDoctor->doctor->educateGrade?></td>
												</tr>
											</table></td>
											<td align="left" valign="top">
											<a href="<?=$diseaseDoctor->doctor->hospitalfaculty->getUrl()?>" target="_blank">
											<?=$diseaseDoctor->doctor->hospitalfaculty->hospital->name?><br /><?=$diseaseDoctor->doctor->hospitalfaculty->name?></a></td>
											<td align="left" valign="top"><?=$chaos->getChaosItem(XString::truncate(nl2br($diseaseDoctor->doctor->specialize), 60), $chaos->iwords_specialize, 3)?>&nbsp;</td>
											<td align="center" valign="middle" class="blue"><?=$diseaseDoctor->goodVoteCount?> 票</td>
                                            <td>
                                              <ul class="yy_jb_df">
                                              <?php if ($space->isNull() == false) { ?>
                                                <li style=" background: none repeat scroll 0% 0% transparent; padding: 0pt;"><a href="<?=$space->getUrl() ?>" target="_blank" class="blue">访问个人网站&gt;&gt;</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=" background: url(&quot;http://i1.hdfimg.com/v2/images/h_hf/user1_message.gif&quot;) no-repeat scroll 0pt 3px transparent;">
                                                <a style="color: red;">
                                                                                                                                  咨询已满
                                                </a>
                                                </li>
                                                <?php } else {?>
                                                <li style=" background: url(&quot;http://i1.hdfimg.com/v2/images/h_hf/user1_message.gif&quot;) no-repeat scroll 0pt 3px transparent;">
                                                <a style="color: green;" target="_blank" href="http://zixun.haodf.com/ask.php?host_user_id=<?=$space->user->id?>">
if (false == empty($doctorCommentList))
{
    $chaos = new Chaos();
    echo $chaos->getCssLink(); 

    foreach($doctorCommentList as $doctorComment)
    {
        $commonContent = strip_tags(nl2br($doctorComment->content));
        $shortContent = XString::truncate(strip_tags(nl2br($doctorComment->content)), 128);
?>
    <div class="dis_article_2 bt_e ovh clearfix" shortcontent='<?=XString::htmlspecialchars_encode($shortContent)?>' commoncontent='<?=XString::htmlspecialchars_encode($commonContent)?>' <?php if (strlen($commonContent) > 128) { ?>onclick="closeure(this);" <?php } ?>>            
            <div class="pb5 pl40 <?=$doctorComment->isCureThankLetter() ? 'hos_dis_tha' : 'hos_dis'?>">
                <p class="gray3">»¼Õß:&nbsp;&nbsp; <?=$doctorComment->displayNameByMask()?> </p>
                <p class="gray3">¼²²¡:&nbsp;&nbsp;
                    <?php if ($doctorComment->disease->isNull() == false) {
                        print $chaos->getChaosItem('<a href="' . $router->urlfor('disease/diseaseknowledge',array('key' => $doctorComment->disease->key)) . '" style="display:inline; color:#333;">' . $doctorComment->tag . '</a>', $chaos->iwords_disease, 3, '<a href="/touch/jibing/~1~.htm" style="display:inline; color:#333;">~2~</a>');
                    } else {
                        print $chaos->getChaosItem($doctorComment->tag, $chaos->iwords_disease, 3, '<a href="/touch/jibing/~1~.htm" style="display:inline; color:#333;">~2~</a>');
                    }
                    ?>
                </p>
            </div>
            <?php if (Doctor::getCommentRateStr($doctorComment->attitude) && Doctor::getCommentRateStr($doctorComment->attitude, "Service")) { ?>
            <p class="gray6 pb10 pl40">
                <?=str_replace('maroon', 'green_2', Doctor::getCommentRateStr($doctorComment->skill))?>¡¡ 
                <?=str_replace('maroon', 'green_2', Doctor::getCommentRateStr($doctorComment->attitude, "Service"))?>
            </p>
            <?php } ?>
            <p class="gray6 f15 lh140 pt5 pb5 feedback">
                <?php if (strlen($commonContent) > 128) { ?><a href="javascript:;" class="gray3"><?php } ?>
                <span class="gray3"><?=$shortContent?></span>