{ if (false == empty($diseaseLableObjList)) { ?> <li> <h2 class="jbnew_l_t_bar_tit"><a style="text-decoration:none;" href="/lablelist/<?=$disease->id?>/<?=$lableId?>.htm" target="_blank"><span class="green_jb"><?=$disease->name?></span><?=LableDefine::getLableTitle($lableId)?></a></h2> <div class="jbnew_l_t_bar_list_con" style="height:150px;padding: 0px 15px 5px;"> <div class="jbnew_l_t_bar_list_con2" style="height:125px;"> <?php foreach ($diseaseLableObjList as $x => $obj) { ?> <?php if ($obj instanceof Article && $obj instanceof space){?> <?php if($obj->user->hasSpace()){?> ¡¤<a href="<?=$obj->getUrl()?>" target="_blank"><?=Xstring::truncate($obj->title, 45)?></a><br /> <?php }?> <?php }else{?> ¡¤<a href="<?=$obj->getUrl()?>" target="_blank"><?=Xstring::truncate($obj->title, 45)?></a><br /> <?php }?> <?php } ?> </div> <div class="jbnew_more"><a href="/lablelist/<?=$disease->id?>/<?=$lableId?>.htm" class="green_jb" target="_blank">²é¿´¸ü¶à>></a></div> </div> </li> <?php } } ?> </ul> <div class="cls2"></div> </div> <?php } ?>
<div class="clearfix mt10"> <div class="w80 fl orange">就诊提示:</div> <div class="w375 fl">突发原因有可能导致门诊时间改变,请以医院当日公布为准。就诊时请说明,您是通过好大夫网站找到我的。</div> </div> <?php if (trim($space->note1)) { ?> <div class="clearfix mt5"> <div class="w80 fl orange">停诊提示:</div> <div class="w375 fl"><?=Xstring::truncate(strip_tags(nl2br($space->note1)), 60)?></div> </div> <?php } ?> <?php if (trim($space->note2)) { ?> <div class="clearfix mt5"> <div class="w80 fl orange">出诊提示:</div> <div class="w375 fl"><?=Xstring::truncate(strip_tags(nl2br($space->note2)), 60)?></div> </div> <?php } ?> <?php if ($space->isNull() == false && $space->host->id > 0 && ($space->note2 || ($space->note1))) { ?> <div class="clearfix mt5"> <div class="w80 fl orange"> </div> <div class="w375 fl"> <p class="f12 gray2">(由<?=$doctor->name?>大夫本人发表于<?=$doctor->userUpdateTime->toStringByFormat('Y-m-d H:i')?>)</p> </div> </div> <?php } ?> <div> <a class="view-btn dil brown" target="_blank" href="<?=$doctor->getUrl()?>"><span class="view-btn-l dil"><span class="view-btn-r dil cp">查看<?=$doctor->name?>大夫全部出诊信息</span></span></a> </div> </div> </div>
foreach ($intentions as $intention) { if(isset($titleAndDisease[$intention->id])) { $dto = $titleAndDisease[$intention->id]; $title = $dto->title; $disease = $dto->disease; } else { $sets = $intention->getBingLiSet(); $disease = (isset($sets->disease) && false == empty($sets->disease)) ? array_shift($sets->disease)->diseaseName : ''; $title = (isset($sets->title) && false == empty($sets->title)) ? array_shift($sets->title)->title : $intention->getDefaultTitle(); } $title = Xstring::truncate($title, 14); $disease =Xstring::truncate($disease, 14); $msgStr = $disease." ".$title; if($title=='' && $disease=='') { $msgStr = "医疗请求"; } ?> <a href="<?=$touchUrl?>/intention/intentiondetail?intentionId=<?=$intention->id?>" class="doc_list2_box"> <div class="doc_list2"> <ul> <li><div class="left">医疗请求:</div><div class="right"><?=$msgStr?></div></li> <li> <div class="left">请求医生:</div> <div class="right"><?=$intention->hasSpace()? (implode(' ', ($intention->space->host->getAllNameList()))): '无指定医生'?></div> </li> <li><div class="left">提交时间:</div><div class="right"><?=XDateTime::printTime4TouchFixed($intention->ctime)?></div></li>
if( '' == $tel ) { MsgHtml::msg('请填写科室电话', '', array('button'=>'back')); } if( '' == $mobtel ) { MsgHtml::msg('请填写您的手机,以便与您联系。', '', array('button'=>'back')); } if( '' == $email ) { MsgHtml::msg('请填写您的邮箱,以便与您联系。', '', array('button'=>'back')); } elseif (!Xstring::isEmail($email)) { MsgHtml::msg('邮件格式错误,请正确填写您的邮箱。', '', array('button'=>'back')); } $verifyOk = Captcha::verify($request->door, XIpLocation::getIp(), 'dcapply', $user->id, $request->token); if($verifyOk != 1) { MsgHtml::msg('验证码输入错误', '', array('button'=>'back')); } $recipients = "*****@*****.**"; $title = "医生基本信息 (".date("y-m-d H:i").")"; $content = ""; $content .= "来自 ".$_SERVER['REMOTE_ADDR']." 的用户发送了一条医生信息, 内容如下:\n"; if ($from == 'search') $content .= "从搜索来的\n"; $content .= "所提交的医院科室: <a href='".$hospitalFaculty->getUrl()."' target=\"_blank\">".$hospitalFaculty->hospital->name.$hospitalFaculty->name."</a>\n"; $content .= "----------------------------------------------------------------------------\n";
" value="<?php echo $conversation->customerPhoneNumber; ?> " class="iframeSendSms cp" src="http://i1.hdfimg.com/callcenter/images/buttonMessage01-01.png"> <?php } ?> </span> </td> <td nowrap class="w150"><span title="<?php echo $conversation->remark; ?> "><?php echo Xstring::truncate($conversation->remark, 30); ?> </span></td> <td nowrap> <?php if ($conversation->recordUrl) { ?> <a href='<?php echo $conversation->recordUrl; ?> ' target="_blank" class="blue">录音</a> <?php } else { echo "暂无"; if ($curOperator->isOperatorAdmin()) { echo "<a href='javascript:void(0)' ><span class ='correctConversationStatus' rel ='" . $conversation->id . "'>.</span></a>";
<div class="sn-partContent p15"> <div class="clearfix pl10"> <?php foreach ($facultyDataList as $facultyData) { ?> <!--start sn-introBox--> <div class="sn-introBox fl <?php if ($i%4 != 0) { echo 'ml25';}?>"> <div class="sn-introBox-title sn-blue f14 fb"><a href="<?=$facultyData['faculty']->getUrl()?>" class="sn-blue"><?=$facultyData['faculty']->name?></a></div> <div class="sn-introBox-content mt5"> <table cellspacing="0" cellpadding="0" border="0" class="fl mr10"> <tr> <td valign="middle" align="center" style="padding: 0px; border: 2px solid #DFDFDF; height: 106px; vertical-align: middle; width: 142px;"> <img src="<?=TuClient::getInstance()->getThumbnailUrl($facultyData['zhuanti']->leadimg, 142, 106, TuClient::TYPE_ZOOM)?>" alt="出国看病、海外就诊、出国就医"> </td> </tr> </table> <div> <p class="t2 mt5"><?=Xstring::truncate(strip_tags($facultyData['zhuanti']->leadin), 150)?></p> <p class="mt5 tr"><a href="<?=$facultyData['faculty']->getUrl()?>" class="sn-blue">详细 >></a></p> </div> </div> </div> <!--end sn-introBox--> <?php $i++;} ?> </div> </div> </div> <?php } ?> <!--end sn-case-part--> <!--start sn-case-part--> <?php if(false == empty($zhuantiList)) { $i = 1; ?> <div class="sn-case-part mt10">
<?php foreach($intentions as $intention) { if($intention->product->isNull()) { $serviceDesc = "网络咨询"; } else { $serviceDesc = $intention->product->service->text; } $space = $intention->space; $msgStr = '医疗请求'; foreach($titleAndDisease as $dto){ if($dto->id == $intention->id) { $title = Xstring::truncate($dto->title, 18); $disease =Xstring::truncate($dto->disease, 18); $msgStr = $disease." ".$title; if($title=='' && $disease=='') { $msgStr = "医疗请求"; } } } ?> <tr class="h30"> <td> <?=isset($msgStr)? $msgStr: ''?> </td> <?php if(false == $space->isNull()){?> <td nowrap> <?=$space->host->getHospitalName()?> <?=$space->host->getHospitalFacultyName()?> <?=$space->getRealName()?>
<div class="intro-case-content pl20 pt20"><?=$diseaseIntro?> <a href="/disease/<?=$disease->key?>/jieshao.htm" class="green">看详情>></a> </div> </div> <?php if (false == empty($diseaseLableList)) {?> <div class="case-details clearfix hdf-qq-green-b mt10"> <?php foreach ($diseaseLableList as $lableId => $diseaseLableObjList) { if (false == empty($diseaseLableObjList)) { ?> <div class="case-details-box has-right-b fl"> <div class="case-details-box-t f16"> <span class="green"><?=$disease->name?></span><?=LableDefine::getLableTitle($lableId)?></div> <div class="case-details-box-c p20 pr"> <ul> <?php foreach ($diseaseLableObjList as $x => $obj) { ?> <?php if ($obj instanceof Article){?> <li class="pb5"><a href="/doctor/articledetail/<?=$obj->id?>.htm"><?=Xstring::truncate($obj->title, 42)?></a></li> <?php }}?> </ul> <p class="tr pa" style="right:8px; bottom:10px;"> <a href="/disease/<?=$disease->key?>/article/<?=$lableId?>.htm" class="green">查看更多>></a> </p> </div> </div> <?php }} ?> </div> <?}?> <?php if(false == empty($doctorList)){?> <div class="intro-doctor hdf-qq-green-b mt10"> <div class="intro-doctor-t clearfix"> <div class="fl pl15 f18"><?$disease->name?>推荐专家</div> </div>
<?php if(true || false == empty($randomFlows)){ ?> <!--start add elment 20120411--> <div class="tabs"> <ul class="tabMenu clearfix"> <li class="tabMenu-active">¾µäÎÊ´ð</li> </ul> <div class="contents"> <dl style="display:block;"> <?php foreach ($randomFlows as $flow) { ?> <dd class="pt5">¡¤ <a target="_blank"href="<?=$flow->getUrl()?>"><?=Xstring::truncate($flow->title, 50)?></a></dd> <?php } ?> </dl> </div> </div> <script> $(function(){ var tabMenuNodes = $('.tabMenu > li'); var overseasBoxNodes = $('.contents > dl'); tabMenuNodes.mouseenter(function(){ var index = $(this).index(); overseasBoxNodes.eq(index).show().siblings().hide(); $(this).addClass('tabMenu-active').siblings().removeClass('tabMenu-active'); }) }) </script> <!--end add elment 20120411--> <?php }?>
<option value="<?=$key?>" selected='selected'><?=$value?></option> <?php } else { ?> <option value="<?=$key?>"><?=$value?></option> <?php } } ?> </select> </div> </div> <div class="app-content app-content-np"> <div class="app-content-inner pr" style="overflow:hidden;"> <?php if(!empty($doctorList)) { foreach ($doctorList as $doctor) { $space = isset($doctor->space) ? $doctor->space : new NullEntity(); $hfname = $doctor->hospitalfaculty->hospital->commonName.$doctor->hospitalfaculty->name; $hfname = Xstring::truncate($hfname,30); $dtitle = (string)$doctor->grade ? $doctor->grade : ''; $dgrade = (string)$doctor->educateGrade ? $doctor->educateGrade : ''; $dspecialilze = (string)($space->isNull() == false && $space->commonCaseNote) ? $space->commonCaseNote : $doctor->specialize; $dspecialilze = XString::truncate($dspecialilze, 65); if (empty($dspecialilze)) { $dspecialilze = '暂无'; } $vote = isset($goodVoteCount[$doctor->id]) ? $goodVoteCount[$doctor->id] : 0; $postCount = ($space->isNull() == false && isset($spacePostCntInfos[$space->id])) ? $spacePostCntInfos[$space->id] : 0; ?> <!--start one list--> <div class="active-list pr"> <div class="clearfix border-bottom-d pb10 pt10 f12">
private function getIntentionTitle($intention, $titleAndDisease) {/*{{{*/ $intentionTitle = '医疗请求'; if (isset($titleAndDisease[$intention->id])) { $dto = $titleAndDisease[$intention->id]; $title = Xstring::truncate($this->decodeStr($dto->title), 18); $disease =Xstring::truncate($this->decodeStr($dto->disease), 18); if ($title || $disease) { $intentionTitle = $disease." ".$title; } } return $intentionTitle; }/*}}}*/
private function getDiseaseIntro($content) {/*{{{*/ $diseaseIntro = ''; if (false == empty($content)) { $diseaseIntro = strip_tags(nl2br($content)); $diseaseIntro = Xstring::fixHtmlText($diseaseIntro); $i = mb_strpos($diseaseIntro, "。", 0, "gbk"); if ($i == false) { $i = 50; } $diseaseIntro = mb_substr($diseaseIntro, 0, $i, "gbk"); } return $diseaseIntro; }/*}}}*/
<div class="img2"> <a href="http://www.<?=URL_PREFIX?>haodf.com/faculty/<?=$article->space->host->hospitalFaculty->getEncodeId() ?>/daifu.htm" target="_blank"><img src="http://i1.hdfimg.com/zhuanti/img/ico.gif"></a> </div> </li> </ul> <?php }?> </td> </tr> </tbody></table> <div style="height: 16px; background: url("http://i1.hdfimg.com/zhuanti/img/zt_25.jpg") no-repeat scroll right top transparent;"></div> </div> <a href="/doctor/articledetail/<?=$article->id?>.htm" class="font14 bold green_jb" target="_self"><?=Xstring::truncate($article->title, 50)?></a><br /> <? $artContent = htmlspecialchars_decode($article->content); $artContent = strip_tags($artContent); echo Xstring::truncate($artContent, 380); ?> <a href="/doctor/articledetail/<?=$article->id?>.htm" target="_self" class="green_jb">看详情>></a></div> <div class="cls2"></div> </div> <?}}}?> </div> </div> <div class="cls"></div> </div> <div id="global_footer" style="margin:0 auto;"> <?php include (dirname(__FILE__)."/../__qq_footer.php");?> <div style="display:none;"> </div>
private function getDiseaseIntro() {/*{{{*/ $diseaseContent = DiseaseClient::getInstance()->getDiseaseContentByKey($this->key); $diseaseInfo = $diseaseContent['fld_diseasecontent']; if(false == empty($diseaseInfo)) { $diseaseIntro = strip_tags(nl2br($diseaseInfo)); $diseaseIntro = Xstring::fixHtmlText($diseaseIntro); return XString::truncate($diseaseIntro, 140); } return '暂无疾病简介'; }/*}}}*/
<div class="img2"> <a href="http://<?=URL_PREFIX?>zixun.haodf.com/ask.php?host_user_id=<?=$article->user->id?>" target="_blank"><img src="http://i1.hdfimg.com/zhuanti/img/ico.gif"></a> </div> </li> <li style="margin: 0px; padding: 0px; line-height: 12px;"> <div class="img3"> <a href="http://<?=URL_PREFIX?><?=$article->user->name?>.haodf.com/payment/servicelist" target="_blank"><img src="http://i1.hdfimg.com/zhuanti/img/ico.gif"></a> </div> </li> </ul> </td> </tr> </tbody></table> <div style="height: 16px; background: url("http://i1.hdfimg.com/zhuanti/img/zt_25.jpg") no-repeat scroll right top transparent;"></div> </div> <a href="<?=$article->getUrl()?>" class="font14 bold green_jb" target="_blank"><?=Xstring::truncate($article->title, 50).Article::$sourceDesc[$article->source]?></a><br /> <?=Xstring::truncate($article->content, 380)?> <a href="<?=$article->getUrl()?>" target="_blank" class="green_jb">¿´ÏêÇé>></a></div> <div class="cls2"></div> </div> <!-- Ò»´ÎÑ»· end--> <?php } } ?> </div> </div> <div class="cls"></div> </div> <div id="global_footer" style="margin:0 auto;"> <?php include_once 'global.footer.tpl.php';?> </div>
<div class="department-list mt10"> <div class="department-list-title f-yahei f16 fb">科室列表</div> <div class="department-content"> <?php if (false == empty($facultyArray)) { foreach ($facultyArray as $key => $value){ if (false == empty($value)) { ?> <!--start department-content-box--> <div class="department-content-box"> <h3 class="f14 f-yahei"><?=$key?></h3> <ul class="clearfix mt5"> <?php foreach ($value as $faculty ) { ?> <li><a <?php if ($hospitalFacultyName == $faculty->name) { ?> class="red" <?php } ?> href="/hzhospitalthread/index/<?=Codec::getInstance()->encodeId($faculty->id)?>.htm" <?php if (strlen($faculty->name)>17) { ?> title="<?=$faculty->name?>" <?php } ?>><?=Xstring::truncate($faculty->name,17)?></a></li> <?php } ?> </ul> </div> <!--end department-content-box--> <?php }}} ?> <div class="tc mt5"><a href="http://www.haodf.com"><img src="http://i1.hdfimg.com/partner/images/hos05.png" alt="" /></a> <div style="text-align:left;line-height:15px;"> 好大夫在线负责<?=$hospital->commonName?>网站咨询平台的技术及运营支持。任何关于疾病的建议都不能替代执业医师的面对面诊断,网友、医生在咨询平台发布的言论仅代表其个人观点,请谨慎参阅。<?=$hospital->commonName?>及好大夫在线均不承担由此引起的法律责任。</div> </div> </div> </div>
height: 28px; line-height: 28px; text-align: center; text-decoration: none; width: 100px; margin-left:30px; } </style> <?php if (false == $space->isNull() && $space->isAsk() && $isThreadOpen) { ?> <tr> <td colspan="2"> <div class="sohu-zixun clearfix"> <div class="sohu-zixun-l fl"><p>网上咨询:</p></div> <div class="sohu-zixun-c fl"> <p><?=Xstring::truncate($commonCaseNote, 120)?></p> <p>(患者提问:<span class="orange"><?=$spaceAskedCount?></span>问 <?=$doctor->name?>本人已回复:<span class="orange"><?=$spaceRepliedCount?></span>问)</p> </div> <div class="sohu-zixun-r fr"> <a class="xxzx_button" href="/thread/ask.htm?host_id=<?= $space->user->id;?>">咨询<?=$doctor->name?></a> </div> </div> </td> </tr> <?php } ?> <?php if(false == $space->isNull() && $space->isBookingOpened()) { ?> <tr> <td colspan="2"> <div class="sohu-zixun clearfix"> <div class="sohu-jiahao-l fl"><p>预约加号:</p></div>
<p class="tc fb"></p> <!--start guanggao--> <!--end telDoc-sideBox--> <!--start telDoc-sideBox--> <div class="telDoc-sideBox mt10 mt10"> <div class="telDoc-sideBox-title"> <h3>最新动态</h3> </div> <div class="p10"> <?php $counter = 0; $entireOrderNum = count($lastestProposals); foreach ($lastestProposals as $key => $lastestProposal) { $counter++; $patientName = Xstring::truncate($lastestProposal->patient->user->name, 2, $postfix = '***'); $updatedTime = $lastestProposal->utime->toStringByFormat("m-d H:i"); //utime ?> <ul class="<?php echo $counter == $entireOrderNum ? 'telDoc-sideBox-noBorder' : ''; ?> "> <li class="clearfix"> <span class="fl"><em class="green"><?php echo $patientName; ?> </em>与 <a href="<?php echo $lastestProposal->space->getPhoneServiceUrl4Order();
/** * @brief 医生提出导出数据请求 * @author meihao * @exampleUrl http://dev.mobile-api.haodf.com/doctorapi/patientclub_postExportRequest?userId=1&email=11&xdoc=1 * * @Param $userId 用户id * @Param $email 邮箱地址 * * @Returns */ public function postExportRequest($userId, $email) {/*{{{*/ if(empty($email)) { $this->setErrorCode(817); return 0; } if(!Xstring::isEmail($email)) { $this->setErrorCode(818); return 0; } $user = DAL::get()->find('user', $userId); if($user->isNull()) { $this->setErrorCode(107); return 0; } $source = "客户端数据导出"; $content = "用户名:".$user->name."\n邮箱:".$email."\n"; $id = UserClient::getInstance()->addUserAdvice($source, $content, $user->id); if(empty($id)) { $this->setErrorCode(816); return 0; } $this->content = $id; }/*}}}*/
private function doDetail4LableList() {/*{{{*/ if(!($this->disease instanceof Disease)){ exit('访问的页面不存在'); } //获取diseaseLableList $diseaseLableList = DiseaseClient::getInstance() ->getDiseaseLableByDiseaseAndLable($this->disease, '', array('type'=>DiseaseLable::LABLE_ARTICLE)); //按lableId 分组数据 $diseaseLableListGroupByLable = array(); foreach ($diseaseLableList as $item) { $diseaseLableListGroupByLable[$item['lableId']][] = $item['data']; } $cntList = array(); foreach ($diseaseLableListGroupByLable as $key => $objList) { $cntList[] = array('id' => $key, 'cnt' => count($objList)); } Xstring::sortArray($cntList, 'cnt'); foreach ($cntList as $n => $cnt) { if ($cnt['id'] == self::LABLE_TYPE_GAISHU) { unset($cntList[$n]); } } $cntList = array_slice($cntList, 0, 6); $lableListSortByCnt = array(); foreach ($cntList as $data) { $arr = $diseaseLableListGroupByLable[$data['id']]; Xstring::sortArray($arr, 'id'); $lableListSortByCnt[$data['id']] = array_slice($arr, 0, 5); } return $lableListSortByCnt; }/*}}}*/
{ $articleDoctorUrl = $articleDoctor->space->getUrl(); $addr = $articleDoctor->hospitalfaculty->hospital->commonName . $articleDoctor->hospitalfaculty->name; $spaceName = $article->space->name; } } else if(strtolower($diseaseLable['type']) == DiseaseLable::LABLE_ARTICLE) { $article = $diseaseLable['data']; if (false == ($article->space instanceof space)) { continue; } $articleUrl = $article->getUrl(); $articleTime = $article->ctime; $articleTitle = Xstring::truncate($article->title, 30); $articleDoctorUrl = $article->space->getUrl(); if ($article->space->isDoctor()) { $addr = $article->space->host->hospitalfaculty->hospital->commonName . $article->space->host->hospitalfaculty->name; $spaceName = $article->space->name; } else { $addr = $article->space->name; $spaceName = ""; $addr = XString::truncate($addr, 24); } } else {
</tr> </table> <?php }?> <div style="height: 16px; background: url("http://i1.hdfimg.com/zhuanti/img/zt_25.jpg") no-repeat scroll right top transparent;"></div> </div> <a href="<?=$article->getUrl()?>" style="text-decoration: none"> <?=Xstring::truncate(strip_tags(nl2br(html_entity_decode($article->content))), 155);?> </a> <a class="green_jb" target="_blank" href="<?=$article->getUrl()?>">看详情>></a> </div> <?php }?> <div class="jbnew_l_t_b"> <div class="jbnew_l_t_b_tit"><span><?=$disease->name?>最新文章</span></div> <div class="jbnew_r_list"> <ul> <?php if(false == empty($diseaseArticleList)) { foreach($diseaseArticleList as $article) {?> <li> <a target="_blank" href="<?=$article->getUrl()?>"><?=Xstring::truncate($article->title, 62).Article::$sourceDesc[$article->source]?><a> </li> <?php } } ?> </ul> </div> </div> </div>