<div class="fl mt5">
                        <a class="heartvaluetip sendPresent" href="<?=$result->present->sendUrl($result->space->user->name)?>&src=doctorinfobar"><img src="<?=$result->present->getMiddleImage() ?>" width="60" height="60" class="avatar"/></a>
                    </div>
                    <div class="pr fr presentPersonList-box-item-r-shell">
                        <div class="presentPersonList-box-item-r">
                            <ul class="gray2 pl20 pt5">
                                <li>
                                <?php if(false == $result->patient->isNull()) {?>
                                <a target="_blank" class="reflink gray2" href="/api/present/ajaxpresentbanner?presentorderid=<?=$result->id?>&uname=<?=$result->space->user->name?>&src=doctorinfobar" title="立即查看">
                                <?php } ?>
                                <span class="fb"><?=$result->space->name?></span>大夫刚刚收到<span class="fb"><?=$result->user->privateName?></span><br/>精心挑选的<span class="fb"><?=$result->present->name?></span>
                                <?php if(false == $result->patient->isNull()) {?>
                                </a>
                                <?php } ?>
                                </li>
                                <li><a target="_blank" href="<?=SpaceHeartBillboard::weekRankUrl()?>" class="heartvalue gray2 fl">医生爱心值<span class="orange">+<?=$result->present->heartValue?></span></a>
                                    <a class="sendPresent blue fr pr10 unl" href="<?=$result->present->sendUrl($result->space->user->name)?>&src=doctorinfobar">我也要送</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </li>
<?php 
            }/*}}}*/
        }
    ?>
    </ul>
</div>
<script type="text/javascript">
$(document).ready(function() {
   initFancyBox("a.sendPresent"); 
               <div class="word_desc">
                   <?php 
echo $wish ? $wish : $present->wish;
?>
               </div>
               <?php 
if ($present->canSendSMS()) {
    ?>
                      <p class="gift_icon1">医生在线查看礼物时,您会收到短信通知,方便与医生及时在线交流。</p>
               <?php 
}
?>
           </div>
           <div class="clearfix bb_dad pt10">
               <p class="fl f14"><a href="<?php 
echo SpaceHeartBillboard::weekRankUrl();
?>
" class="blue_a1" target="_blank">爱心值“<span class="orange1 f20">+<?php 
echo $present->heartValue;
?>
</span>”</a></p>
               <a href="<?php 
echo Present::presentHelpUrl();
?>
" target="_blank" class="fr pt5">什么是心意礼物?</a></p>
           </div>
       </div>

       <div class="doc_of_gift fl pt20 tc fs">
            <p><img src="<?php 
echo $space->host->getLargeHeadImage();
示例#3
0
     <div class="clearfix p10 mt5 pl40">
         <a class="fl mr10 heartvaluetip sendPresent" id="applyRecommendationImg" href="/api/present/ajaxbuypresent?patientid=<?=$doctorPatientRef->isNull()?'0':$doctorPatientRef->patientid?>&presentid=<?=$recommendPresent->id?>&uname=<?=$doctor->space->user->name?>"><img src="<?=$recommendPresent->getLargeImage()?>"/></a>
         <ul class="ov lh120 ">
             <li><span class="fb "><?=$recommendPresent->name?></span></li>
             <li><span class="f14 orange fb"><?=$recommendPresent->price?></span> 积分 
             <?php 
             if ($recommendPresent->stock>0)
             {
             ?>
                 <span class="f12 red">仅剩<?=$recommendPresent->stock?></span>
             <?php 
             }
             ?>
             </li>
             <li class="f12">
                 <a target="_blank" href="<?=SpaceHeartBillboard::weekRankUrl()?>" class="heartvalue gray2">医生爱心值+<?=$recommendPresent->heartValue?></a>
             </li>
             <li class="mt5">
             <?php if($isDead == false){?>
                 <a class="sendPresent heartvaluetip phonePop-btn fb" id="applyRecommendation" href="/api/present/ajaxbuypresent?patientid=<?=$doctorPatientRef->isNull()?'0':$doctorPatientRef->patientid?>&presentid=<?=$recommendPresent->id?>&uname=<?=$doctor->space->user->name?>"><span class="phonePop-btn-l"><span class="phonePop-btn-r phonePop-blue">立即赠送</span></span></a>
             <?php }?>
             </li>
         </ul>
         <?php if ($recommendPresent->adminComment) { ?>                                             
             <div class="todayPush-tip mt10">
                 <span >推荐理由:</span>
                 <span style="word-wrap:break-word;overflow:hidden;"><?=$recommendPresent->adminComment?></span>
             </div> 
         <?php } ?>                                                                                
     </div>
 </td>
    <div class="telaccount-orderInfo">
        <div class="flowerToDoctor clearfix">
            <div class="fl flowerToDoctor-lcWrap">
                <div class="flowerToDoctor-l fl tc mr20">
                    <div class="fl p5" ><img src="<?=$present->getLargeImage();?>"></div>
                    <div class="w fl tc pt5"><?=$present->name?></div>
                </div>
                <div class="flowerToDoctor-c fl">
                    <p class="presentWords"><span class="orange">赠送语:</span><?=$presentOrder->wish? $presentOrder->wish: $present->wish?></p>
                    <?php if($present->canSendSMS()){ ?>
                    <p class="mt10 red f12"><img src="http://i1.hdfimg.com/space/images/present/present_sms.gif" class="mr5" />医生在线查看礼物时,您会收到短信通知,方便与医生及时在线交流。</p>
                    <?php } ?>
                </div>
            </div>
            <div class="flowerToDoctor-r fr">
                <table cellspacing="0" cellpadding="0" border="0" class="fr"><tbody><tr><td valign="middle" align="center" style="padding: 0px; border: 1px solid #DFDFDF; height: 106px; vertical-align: middle; width: 106px;"><img src="<?=$presentOrder->space->host->getLargeHeadImage();?>"></td></tr></tbody></table>
                <div class="tc">
                    <p><a href="<?=$presentOrder->space->getUrl();?>" target="_blank"><?=$presentOrder->space->name?></a></p>
                    <p class="f12">爱心值:<a href="http://<?=URL_PREFIX?>passport.haodf.com/doctorreg/aixinzhi" title="爱心值:<?=$featAmount?>分" target="_blank"><?=$heartImgHtml ?></a>
                    </p>
                </div>
            </div>
        </div>
        <div class="clearfix mt0 tc">
            <a href="<?=SpaceHeartBillboard::weekRankUrl()?>" class="unl" target="_blank">爱心值<span class="red">+<?=$present->heartValue?></span></a>
        </div>
    </div>
</div>
<!--end order-info-->

<script>
$(document).ready(function() {
    initFancyBox("a.viewValue");
});
</script>
</head>
<body>
    <div class="caringValue">
        <div class="caringValue-head pr">
            <h2>爱心值排行榜</h2>
            <ul class="caringValue-tabs clearfix">
            <li class="<?=(empty($type) || 'week'==$type)? 'caringValue-tabs-active': ''?>">
                    <a href="<?=SpaceHeartBillboard::weekRankUrl()?>"> 一周TOP50 </a>
                </li>
                <li class="<?=(isset($type) && 'whole'==$type)? 'caringValue-tabs-active': ''?>"> 
                    <a href="<?=SpaceHeartBillboard::wholeRankUrl()?>">总榜TOP50</a>
                </li> </ul> <a href="http://<?=URL_PREFIX?>passport.haodf.com/doctorreg/aixinzhi" class="pa knowCaringValue" target="_blank">什么是爱心值?</a>
        </div>
        <div class="caringValue-content">
            <div style="border-top: solid 1px #ddd; font-size: 13px; line-height: 30px; color: #294e85; cursor: pointer;" onclick="window.location.href='/api/present/promotion';">
                <?php if('whole' == $type){?>开通网站以来<?php } else {?>最近7天累计<?php } ?>爱心值最高的前50名大夫,实时更新。每一份心意礼物,都会使大夫的爱心值立即获得一定数量的提升,<a href="http://www.<?=URL_PREFIX?>haodf.com/api/present/promotion?isButtonClick=true" class="orange">点击这里</a>立即让您心中的好大夫榜上有名。
            </div>
            <table class="rankTable f14">
                <tr style='text-align:center;'>
                    <th class="rankTable-item1"><span>排名</span></th>
                    <th class="rankTable-item2"><span>爱心值</span></th>
                    <th class="rankTable-item3"><span>大夫</span></th>
                    <th class="rankTable-item4"><span>科室</span></th>
                    <th class="rankTable-item5"><span>上榜理由</span></th>
                    <th class="rankTable-item6 last"><span>服务</span></th>
                </tr>
                <div class="fl mr5 ">
                    <a class="heartvaluetip showDoctorPatientRef" href="http://www.<?=URL_PREFIX?>haodf.com/api/present/promotion?from=right" target="_blank"><img src="<?=$presentOrder->present->getMiddleImage() ?>" width="60" height="60" class="avatar"/></a>
                </div>
                <div class="pr fr presentPersonList-box-item-r-shell">
                <div class="presentPersonList-box-item-r">
                    <ul class="gray2 pl20 pt5">
                        <li>
                        <?php if(false == $presentOrder->patient->isNull()) {?>
                        <a target="_blank" class="reflink gray2" href="/api/present/ajaxpresentbanner?presentorderid=<?=$presentOrder->id?>&uname=<?=$presentOrder->space->user->name?>" title="立即查看">
                        <?php } ?>
                        <span class="fb"><?=$presentOrder->space->name?></span>大夫收到了<span class="fb"><?=$presentOrder->user->privateName?></span><br>精心挑选的礼物<span class="fb"><?=$presentOrder->present->name?></span>
                        <?php if(false == $presentOrder->patient->isNull()) {?>
                        </a>
                        <?php } ?>
                        </li>
                        <li><a target="_blank" href="<?=SpaceHeartBillboard::weekRankUrl()?>" class="heartvalue gray2 fl">医生爱心值+<?=$presentOrder->present->heartValue?></a>
                        <a class="list_sendtomydoctor heartvaluetip showDoctorPatientRef unl blue mr10 fr" href="<?=($presentOrder->space->getUrl().'?boxPresentId='.$presentOrder->present->id).'&ajaxReferrer='.Present::BIGPAGE_DOCTOR_INDEX?>" target="_blank" rel="nofollow">我也要送</a>
                    </li>
                    </ul>
                </div>
                </div>
            </li>
<?php
        }
    ?>
        </ul>
       </div>
       <div class="p10">共有<span class="orange ml5 mr5 fb"><?=number_format($statistics['cntofpatient'])?></span>位患者送出<span class="orange ml5 mr5 fb"><?=number_format($statistics['cntofpresent'])?></span>件礼物,下一个是你么? 
	<a class="showDoctorPatientRef unl blue mr10" href="http://www.<?=URL_PREFIX?>haodf.com/api/present/promotion" target="_blank" rel="nofollow">我也要送</a></div>
     </div>