public function ajaxSendToMyDoctor($request, $response) { /*{{{*/ if ($this->user->isNull()) { $errorUrl = User::getLoginUrl(); $presentId = $request->presentid; if ($request->from && null != $presentId) { $errorUrl = Present::presentHelpUrl(); } $response->redirectUrl = $errorUrl; return; } if (false == $this->isAllowSendPresent($response)) { $response->errorMsg = "您不能给自己赠送心意礼物"; $response->canSend = false; return; } $specified = $request->getRequest('specified', true); $response->specified = $specified; $response->patientId = $request->getRequest('patientid', ''); if ('true' == $specified || 1 == $specified) { $this->sendWithSpace($request, $response); } else { $this->sendWhitoutSpace($request, $response); } }
?> <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(); ?> " alt="" /></p> <p class="f14 fb"><a href="<?php echo $space->getUrl(); ?> " target="_blank"><?php echo $space->name;
<!-- 礼物动态 --> <div class="center_r_bar mt10 mb10"> <div style="background: url('http://i1.hdfimg.com/homepage/images/present_dongtai.gif') no-repeat scroll 0 0 transparent; border-bottom: 2px solid #E4E4E4; height: 32px;"> <a href="<?=Present::presentHelpUrl()?>" target="_blank" class="gray2 unl fr f12 mt10">什么是“心意礼物”?</a> </div> <div class="clearfix" style="overflow: hidden; height: 165px; position: relative;"> <ul class="clearfix presentPersonList-box f12" style="position: relative;" id="latestBoughtPresents"> <!--start presentPersonList-box--> <?php foreach($presentOrders as $key => $presentOrder) { if($presentOrder->space->host->hospitalfaculty->hospital->isInnerTestHospital()) { continue; } ?> <li class="clearfix presentPersonList-box-item ml20 m10"> <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 } ?>
</font> </a> <?php if ($object instanceof DoctorPatientRef && $object->isPrivated()) { ?> <img src="http://i1.hdfimg.com/doctorzone/images/zixun_icon5.png" align="absmiddle" title="隐私"> <?php } ?> <?php //鲜花 if( in_array($object->patient->id, $patientIdsOfFlower) ) { ?> <a href="<?=Present::presentHelpUrl()?>" target="_blank"><img src="http://i1.hdfimg.com/doctorzone/images/zixun_icon9.png" align="absmiddle" title="礼物"></a> <?php } //收费图标 if ($object instanceof DoctorPatientRef && array_key_exists($object->id, $chargeList)) { ?> <img src="http://i1.hdfimg.com/doctorzone/images/zixun_icon2.png" align="absmiddle" title="付费咨询"> <?php } ?> <?php if(in_array($object->id, $telOrderFlowIds)){?> <img src="http://i1.hdfimg.com/doctorzone/images/zixun_icon4.png" align="absmiddle" title="电话咨询"> <?}?> </span>
<!-- 礼物动态 --> <div class="toptr" > <div class="lt"> <ul style="text-align:left;"> <li> <span style="color:#098BCE;font-weight:bold;" class="f16">心意礼物动态</span> <a href="<?=Present::presentHelpUrl()?>" target="_blank" style="position:relative;left:91px;" class="gray2 unl f12" rel="nofollow">什么是“心意礼物”?</a> </li> </ul> </div> </div> <div class="midtr"> <div class="lt"> <div class="clearfix" style="overflow: hidden; height: 165px; position: relative;"> <ul class="clearfix presentPersonList-box f12" style="position: relative;" id="latestBoughtPresents"> <!--start presentPersonList-box--> <?php foreach($presentOrders as $key => $presentOrder) { ?> <li class="clearfix presentPersonList-box-item ml20 m10"> <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="立即查看">