private function getRealData(Hospital $hospital, $hospitalName = '')
    {/*{{{*/
        $res = array();
        $hospitalList = array();
        if ($hospitalName)
        {
            $hsName = $hospitalName;
        }
        else
        {
            $hsName = $hospital->name;
        }

        $res['key'] = $hsName;
        $res['url'] = $hospital->getUrl();
        $res['title'] = XString::truncate($hsName.'科室列表,门诊时间,专家推荐_好大夫在线', 59, '...');
        $res['showUrl'] = 'www.haodf.com';
        $res['pageSize'] = rand(60, 66).'K';
        $res['date'] = date('Y-m-d', time());
        $extContent = ($hospital->spaceCount > 0) ? ",以及".$hospital->spaceCount."位医生提供免费网上咨询":"";
        $res['content'] = "提供医院简介、地址、预约挂号电话、科室门诊时间,包括".$hsName.$hospital->facultyCount."个科室、".$hospital->doctorCount."位医生的相关介绍".$extContent;
        $hospitalList['item'] = $res;
        BeanFinder::get('LocalCache')->removeAll(); 
        return $hospitalList;
    }/*}}}*/
 protected function getData($nowPage, $pageSize)
 {/*{{{*/
     $dataList = $this->prepareData($nowPage, $pageSize);
     $res = array();
     foreach ($dataList as $data)
     {
         $tempData = array();
         $tempData['item']['key'] = $data['dname'].'医院';
         $tempData['item']['url'] = 'http://haoping.haodf.com/jibing/'.$data['dkey'].'/yiyuan.htm';
         $tempData['item']['showUrl'] = XString::truncate('haoping.haodf.com/jibing/'.$data['dkey'].'/yiyuan.htm', 38, '...');
         $tempData['item']['title'] = $data['dname']."推荐医院_好大夫在线";
         $tempData['item']['pageSize'] = rand(58, 62).'K';
         $tempData['item']['date'] = date('Y-m-d', time());
         $tempData['item']['content'] = "各地".$data['dname']."医院就医指南";
         foreach ($data['formdata'] as $key => $form)
         {
             $data['formdata'][$key]['form']['diseaseHospitalUrl'] = 'http://haoping.haodf.com/hospital/'.Codec::getInstance()->encodeId($form['form']['hid']).'/'.$data['dkey'].'.htm';
             unset($form);
         }
         $tempData['item'] = $tempData['item'] + $data['formdata'];
         $res[] = $tempData;
         unset($data);
    }
     return $res;
 }/*}}}*/
示例#3
0
    private function buildData($datas)
    {/*{{{*/
        $res = array();
        if (false == $datas)
        {
            return $res;
        }

        foreach($datas as $hospital)
        {
            $intro = (empty($hospital->conclusion))?$hospital->intro:$hospital->conclusion;
            $intro = XString::truncate(strip_tags($intro),500);
            $hospitalFacultyInfo = $this->getHospitalFacultyForm($hospital->id);
            $res[$hospital->id]['item'] = array(
                'key' => $hospital->name,
                'title' => $hospital->name,
                'synonym' => $hospital->synonyms,
                'url' => $hospital->getUrl(),
                'grade' => $hospital->getGradeStr(),
                'address' => $hospital->address,
                'phone' => $hospital->phone,
                'way' => XString::cntrim(strip_tags($hospital->addressInfo)),
                'intro' => XString::cntrim(strip_tags($intro)),
                'zixunInfo' => ($hospital->spaceCount)?"咨询".$hospital->spaceCount."位大夫":"",
                'zixunInfoUrl' => ($hospital->spaceCount)?$hospital->getDoctorUrl():"",
                'hospitalInfo' => "科室".$hospital->facultyCount."个, 大夫".$hospital->doctorCount."人",
                'hospitalFacultyCnt' => $hospital->facultyCount,
                'hospitalInfoUrl' => $hospital->getScheduleUrl(),
                'hospitalFacultyInfo' => $hospitalFacultyInfo,
            );
            unset($hospital);
        }
        return $res;
    }/*}}}*/
    public function detail($request, $response)
    {/*{{{*/
		$articleId = intval($request->getRequest('article_id', 0));
		$article = DAL::get()->find('article', $articleId);
        if($article->isNull())
        {
            $this->_exit404();
        }
        DBC::requireFalse($article->isDelete(), "文章已经被删除了!");
        DBC::requireFalse($article->isShield(), "文章正在审核中!");
        if ($article->isAuditing())
        {
            $result = $this->filterArticle($article);
            if (false == empty($result['title']) || false == empty($result['content']))
            {
                DBC::requireFalse(true, "文章正在审核中!");
            }
        }
        $isShare = $request->getRequest('isShare', '');
        //分享文章阅读量统计
        if(false == empty($isShare))
        {
            HitClient::getInstance()->increaseArticleHitsForShare($article->id);
        }
        $response->article = $article;
        $response->topTitle = XString::truncate($article->title, 18);
        $response->title = $article->title."_好大夫在线";

        $articleAttachmentRef = new NullEntity();
        if ($article->hasDocAttachment())
        {
            $articleAttachmentRef = ArticleClient::getInstance()->getValidAttachmentRef($article->id);
        }
        $response->articleAttachmentRef = $articleAttachmentRef;
    }/*}}}*/
    private function getRealData(Disease $disease, $diseaseName = '')
    {/*{{{*/
        $diseaseList = array();
        $res = array();
        if ($diseaseName)
        {
            $dName = $diseaseName;
        }
        else
        {
            $dName = $disease->name;
        }
        //为了Grave'S疾病"'"转义问题
        $dName = preg_replace('/'/', "'", $dName);

        $res['key'] = $dName;
        $res['url'] = $disease->getUrl();
        $res['title'] = XString::truncate($dName."症状_治疗_".$dName."好评专家_咨询_预约_好大夫在线", 56, '...');
        $res['showUrl'] = 'www.haodf.com';
        $res['pageSize'] = rand(58, 62).'K';
        $res['date'] = date('Y-m-d', time());
        $res['content'] = XString::truncate($dName.'好评专家'.$disease->goodVoteCount.'位,可咨询'.$dName.'问题,预约专家门诊,权威专家亲自介绍'.$dName.'病因,症状,治疗,如何护理'.$dName.'患者等.', 156, '...'); 
        $diseaseList['item'] = $res;
        return $diseaseList;
    }/*}}}*/
	public function updateBaseInfo($request, $response)
	{
		$vars = $request->var;
		if ($request->is_ajax) {
			$vars = XString::toGbkDeep($vars);
		}
		if (!empty($vars['birthday']))
			$vars['birthday'] = XDateTime::valueOf($vars['birthday']);
		DoctorClient::getInstance()->modifyByDoctor($this->_newSpace->host->id, $vars);
		
		//调用同步新浪微博接口(更新医生个人信息和修改医生资料)
		//MessageQueueClient::getInstance()->regEvent(new UpdateDoctorInformationSinaWeiboEvent($this->_newSpace->user->id));
		if ($request->is_ajax)
		{
			$results = array(
				'grade' => XString::convertToUnicode($this->_newSpace->host->grade),
				'educate_grade' => XString::convertToUnicode($this->_newSpace->host->educateGrade),
				'specialize' => XString::convertToUnicode($this->_newSpace->host->specialize),
				'intro' => XString::convertToUnicode(XString::truncate($this->_newSpace->host->intro, 100)),
				'status' => 0,
			);
			echo json_encode($results);
			exit;
		}
        $this->message('您的医生资料提交成功!将在1个工作日内审核后生效!', $response, array(
            'buttons' => array(
                array('text' => '继续修改', 'url' => $this->_newSpace->getUrl()."admindoctor/showbaseinfo"),
                array('text' => '进入个人网站', 'url' => $this->_newSpace->getUrl())
            ),
        ));
	
	}
  private function filterContent($content)
 {/*{{{*/
     $content = trim(strip_tags($content)); 
     $content = str_replace(' ', '', $content);
     $content = str_replace(' ', '', $content);
     return XString::truncate($content, 500, '...');
 }/*}}}*/
 protected function getData($nowPage, $pageSize)
 {/*{{{*/
     $hospitalList = DAL::get()->find_all_AllHospital4Sc('hospital', $nowPage, $pageSize); 
     $doctorDescription = array();
     foreach($hospitalList as $hospital)
     {
         $doctorList = DAL::get()->find_all_by_hospitalid('doctor', $hospital->id);
         foreach($doctorList as $doctor)
         {
             $tempIntroArray = array();
             $tempIntroArray['key'] = $hospital->commonName.$doctor->name;
             $tempIntroArray['city'] = $hospital->city;
             $tempIntroArray['doctor_name'] = $doctor->name;
             $tempIntroArray['doctor_pic'] = '';
             $tempIntroArray['doctor_link'] = $doctor->getTouchUrl();
             $tempIntroArray['hospital'] = $hospital->name;
             $tempIntroArray['department'] = $doctor->getHospitalFacultyName();
             $tempIntroArray['doctor_title'] = $doctor->grade." ".$doctor->educateGrade;
             $tempIntroArray['good_at'] = trim(XString::truncate($doctor->specialize, 200));
             $doctorIntro = trim(XString::truncate(strip_tags($doctor->intro), 200));
             $tempIntroArray['personal_details'] = $doctorIntro;
             $tempIntroArray['personal_details_link'] = $doctor->getTouchIntroUrl();
             $tempIntroArray['site_name'] = '好大夫在线';
             $doctorDescription[] = array('item' => $tempIntroArray);
             unset($doctor);
         }
         unset($doctorList);
         unset($hospital);
         BeanFinder::get('LocalCache')->removeAll();
     }
     unset($hospitalList);
     BeanFinder::get('LocalCache')->removeAll();
     return $doctorDescription;
 }/*}}}*/
    private function getRealData(Hospital $hospital, $hospitalName = '', $isPlus)
    {/*{{{*/
        $res = array();
        if ($hospitalName)
        {
            $hsName = $hospitalName;
        }
        else
        {
            $hsName = $hospital->name;
        }

        $res['key'] = $hsName;
        $res['url'] = $hospital->getUrl();
        $res['title'] = XString::truncate($hsName.'科室列表_门诊时间表_专家推荐_好大夫在线', 58, '...');
        $res['type'] = isset(self::$hospitalLevelList[$hospital->grade])?self::$hospitalLevelList[$hospital->grade]:'';
        $res['address'] = XString::truncate($hospital->address, 65, '');
        $res['mapUrl'] = $hospital->getReMapUrl();
        $res['tel'] = XString::truncate($this->getPhoneStr($hospital->phone), 66, '...');
        $res['zixunUrl'] = $hospital->getDoctorUrl();
        $res['jiahaoUrl'] = $hospital->getJiaHaoUrl();
        $res['doctorUrl'] = $hospital->getDiseaseUrl();
        $res['keshiUrl'] = $hospital->getScheduleUrl();
        $res['showUrl'] = 'www.haodf.com';
        $res['infoUrl'] = $hospital->getInfoUrl();
        $res['date'] = date('Y-m-d', time());
        return $res;
    }/*}}}*/
    private function getRealData(Hospital $hospital, $hospitalName = '')
    {/*{{{*/
        $res = array();
        if ($hospitalName)
        {
            $hsName = $hospitalName;
        }
        else
        {
            $hsName = $hospital->name;
        }

        $hospitals['item']['key'] = $hsName;
        $hospitals['item']['title'] = XString::truncate($hospital->commonName.'科室列表_门诊时间表_专家推荐_好大夫在线',59,'');
        $hospitals['item']['level'] = $hospital->getGradeStr();//
        $hospitals['item']['url'] = $hospital->getUrl();
        $hospitals['item']['address'] = strip_tags($hospital->address);
        $hospitals['item']['address_url'] = $hospital->getReMapUrl();
        $hospitals['item']['description'] = strip_tags($hospital->intro);
        $hospitals['item']['description_url'] = $hospital->getInfoUrl();
        $hospitals['item']['luxian'] = $hospital->addressinfo;
        $hospitals['item']['telephone'] = $hospital->phone;
        $hospitals['item']['online_doctors'] = $hospital->spaceCount;
        $hospitals['item']['online_doctors_url'] = $hospital->getDoctorUrl();
        $hospitals['item']['tel_doctors'] = HospitalClient::getInstance()->getHospitalDirectCallCount($hospital->id);
        $hospitals['item']['tel_doctors_url'] = $hospital->getTelDoctorUrl();
        $hospitals['item']['showurl'] = 'www.haodf.com/';

        $res[] = $hospitals;
        BeanFinder::get('LocalCache')->removeAll(); 
        return $res;

    }/*}}}*/
    /**
        * @brief 获取医生的文章列表 
        * @author 
        * @exampleUrl http://dev.mobile-api.haodf.com/patientapi/article_getDoctorArticleList?userId=581662815&pageId=1&pageSize=10
        *
        * @Param $doctorId 用户id
        * @Param $pageSize 每页显示数
        * @Param $nowPage 当前页码
        *
        * @Returns array('id', 'sn', 'price', 'statusDesc', 'flowId', 'spaceId', 'doctorName', 'hospitalName', 'hospitalFacultyName', 'alertMsg', 'needPay', 'caseType', 'doctorAssistant', 'doctorAssistantTel');
     */
    public function getDoctorArticleList($userId, $doctorId, $pageSize = 10, $pageId = 1)
    {/*{{{*/
        $doctor = DAL::get()->find('doctor', $doctorId);
        $user = DAL::get()->find('user', $userId);
        if($userId != $this->currentUserId)
        {
            $this->setErrorCode(309);
            return 0;
        }
		if ($user->isNull() || $user->id == 0)
		{
            $this->setErrorCode(107);
            return 0;
        }
        if($doctor->isNull())
        {
            $this->setErrorCode(132);
            return 0;
        }
    	if ($doctor->space->isNull())
        {
            $this->setErrorCode(144);
            return 0;
        }
		$res = ArticleClient::getInstance()->getList($doctor->space->id, '', $pageId, $pageSize, array('articleLevel' => Article::LEVEL_2, 'orderby' => 'topLevel desc, fld_ArticleCreateTime desc'));
        $myDoctor = DAL::get()->find_by_userIdAndDoctorId('userdoctor', $userId, $doctor->id);
        $results = array();
        $articleIds = array();
        foreach($res['articleList'] as $article)
        {
            $result = array();
            $result['id'] = $article->id;
            $result['title'] = $article->title;
            $result['doctorName'] = $article->space->host->name." ".$article->space->host->hospitalfaculty->hospital->commonName;
            $result['content'] = XString::truncate(str_replace(array("\n", "\t", "\r", " "), "", strip_tags(htmlspecialchars_decode($article->content))), 50); 
            $result['ctime'] = $article->ctime;
            $result['hits'] =  HitClient::getInstance()->getArticleHitsForMobile($article->id) + $article->hits;
            $result['url'] = '';
            $result['type'] = "article";
            $result['isSelfOwner'] = 0;
            $result['subscriptionId'] = $myDoctor->id;
            $result['subscriptionType'] = 'userdoctor';
            $articleIds[] = $article->id;
            $results[$article->id] = $result;
        }
        $readStatus = SubscriptionClient::getInstance()->getUserSubscriptionReadStatus($userId, $articleIds);
        foreach($readStatus as $contentId => $status)
        {
            $results[$contentId]['readStatus'] = $status;
        }
        $this->content = array_values($results); 
        $pageInfo['pages'] = $res['pageInfo']['pages'];
        $pageInfo['pagesize'] = $pageSize;
        $pageInfo['nowpage'] = $pageId;
        $pageInfo['total'] = $res['pageInfo']['total'];
        $this->pageInfo = $pageInfo;
    }/*}}}*/
 public function ajaxPostDoctorInfo($request, $response)
 {
     /*{{{*/
     $vars = $request->getRequest('var', array());
     if (count($vars) > 0) {
         $vars = XString::toGbkDeep($vars);
         if ($vars['birthday']) {
             $vars['birthday'] = XDateTime::valueOf($vars['birthday']);
         }
         DoctorClient::getInstance()->modifyByDoctor($this->space->host->id, $vars);
         $results = array('res' => 'success', 'specialize' => XString::convertToUnicode($vars['specialize']), 'intro' => XString::convertToUnicode(XString::truncate($vars['intro'], 100)));
         echo json_encode($results);
     } else {
         echo '{"res":"failure", "msg":"请填写完整您的个人信息"}';
     }
     return self::DIRECT_OUTPUT;
 }
 private function getDoctorComment($doctor)
 {/*{{{*/
     $cureExp = DAL::get()->find_all_Doctor2Comments('cureexp', $doctor->id); 
     foreach($cureExp as $key => $cure)
     {
         if($cure->isNull())
         {
             unset($cureExp[$key]);
         }
     }
     $thankLetter = array();
     if(count($cureExp) < 2)
     {
         $thankLetter = DAL::get()->find_all_Doctor2Comments('curethankletter', $doctor->id);
         foreach($thankLetter as $key => $letter)
         {
             if($letter->isNull())
             {
                 unset($thankLetter[$key]);
             }
         }
     }
     $sum = count($cureExp) + count($thankLetter);
     $res = array();
     if($sum == 0)
     {
         return false;
     }
     else
     {
         foreach ($cureExp as $key => $comment)
         {
             $content = trim(XString::truncate(strip_tags($comment->content), 200));
             $res[$key]['comment']['content'] = mb_substr($content, 5 , 200,'gbk');
             $res[$key]['comment']['diseaseName'] = $comment->disease->name?$comment->disease->name:'';
         }
         foreach($thankLetter as $key => $comment)
         {
             $content = trim(XString::truncate(strip_tags($comment->content), 200));
             $res[$key]['comment']['content'] = $content;
             $res[$key]['comment']['diseaseName'] = $comment->disease->name?$comment->disease->name:'';
         }
     }
     return $res;
 }/*}}}*/
 private function getRealData($thankLetter)
 {/*{{{*/
     $res = array();
     $res['id'] = $thankLetter->id;
     $res['doctorId'] = Codec::getInstance()->encodeId($thankLetter->doctorId);
     if (false == $thankLetter->doctor->isNull())
     {
         $res['doctorName'] = $thankLetter->doctor->name;
     }
     if (false == $thankLetter->doctor->isNull() && false == $thankLetter->doctor->hospitalfaculty->isNull())
     {
         $res['hospitalFacultyId'] = $thankLetter->doctor->hospitalfaculty->getEncodeId();
     }
     $res['content'] = strip_tags($thankLetter->content);
     $res['patient'] = $thankLetter->user->isNull()?$thankLetter->ipLocation : XString::truncate($thankLetter->user->name, 1, "***");
     $res['ctime'] = $thankLetter->ctime;
     return $res;
 }/*}}}*/
    private function makeDescString(Doctor $doctor)
    {/*{{{*/
        $extInfo = '';
		if ($doctor->space->isCaseOpen()) 
		{
			$extInfo .= "在线咨询".$doctor->name.",";
		}
		if ($doctor->space->phoneOpened)
		{
			$extInfo .= "电话咨询".$doctor->name.","; 
		}
		if ($doctor->space->isBookingOpened())
		{
			$extInfo .= "预约".$doctor->name."门诊,";
		}
        return ($doctor->hospitalfaculty->isNull()) ? $doctor->name.$doctor->grade
            ."简介、门诊时间,".$response->extInfo."患者找".$doctor->name."看病的".$doctor->commentCount."篇经验。".$doctor->name."擅长".XString::truncate($doctor->specialize, 120)
            : $doctor->hospitalfaculty->hospital->commonName.$doctor->hospitalfaculty->name.$doctor->name.$doctor->grade
			."简介、门诊时间,".$extInfo."患者找".$doctor->name."看病的".$doctor->commentCount."篇经验。".$doctor->name."擅长".XString::truncate($doctor->specialize, 120);
    }/*}}}*/
 private function buildData($hospitalFacultys, $diseases, $doctors)
 {/*{{{*/
     foreach($hospitalFacultys as $hospitalFaculty)
     {
         $intro = XString::truncate(strip_tags($hospitalFaculty->intro),500);
         $res[$hospitalFaculty->id]['item'] = array(
             'key' => $hospitalFaculty->hospital->commonName.$hospitalFaculty->name,
             'title' => $hospitalFaculty->hospital->commonName.$hospitalFaculty->name,
             'url' => $hospitalFaculty->getUrl(),
             'hospitalGrade' => $hospitalFaculty->hospital->getGradeStr(),
             'intro' => $intro,
             'zixunInfo' => ($hospitalFaculty->spaceCount > 0)?"вия╞".$hospitalFaculty->spaceCount."н╩╢С╥Р":"",
             'zixunInfoUrl' => ($hospitalFaculty->spaceCount > 0)?$hospitalFaculty->getDoctorUrl():"",
             'doctorCnt' => $hospitalFaculty->doctorCount,
             'doctorCntUrl' => $hospitalFaculty->getScheduleUrl(),
             'diseaseList' => $diseases[$hospitalFaculty->id],
             'doctorList' => $doctors[$hospitalFaculty->id],
             );
         unset($hospitalFaculty);
     }
     return $res;
 }/*}}}*/
 protected function getData($nowPage, $pageSize)
 {/*{{{*/
     $hospitalList = DAL::get()->find_all_AllHospital4Sc('hospital', $nowPage, $pageSize); 
     $hospitalIntro = array();
     foreach($hospitalList as $hospital)
     {
         $tempIntroArray = array();
         $tempIntroArray['key'] = $hospital->commonName;
         $tempIntroArray['city'] = $hospital->city;
         $tempIntroArray['title'] = $hospital->name;
         $tempIntroArray['url'] = $hospital->getTouchInfoUrl();
         $tempIntroArray['site_name'] = '好大夫在线';
         $tempIntroArray['level'] = $hospital->getGradeStr();
         $tempIntroArray['type'] = empty($hospital->featuredFaculties) ? '综合医院' : $hospital->featuredFaculties."医院";
         $tempIntroArray['intro'] = trim(XString::truncate(strip_tags($hospital->intro), 200));
         $hospitalIntro[] = array('item' => $tempIntroArray);
         unset($hospital);
     }
     unset($hospitalList);
     BeanFinder::get('LocalCache')->removeAll();
     return $hospitalIntro;
 }/*}}}*/
    private function getRealData(Faculty $faculty, $formData, $facultyName = '')
    {/*{{{*/
        if($facultyName)
        {
            $hfName = $facultyName;
        }
        else
        {
            $hfName = $faculty->name;
        }

        $res = array(
                    'key' =>$hfName,
                    'title'=>XString::truncate($hfName.'_推荐医院_常见疾病_好大夫在线', 60, '...'),
                    'url'=>$faculty->getUrl(),
                    'showurl'=>'http://www.haodf.com',
                    'pagesize'=>rand(58, 62).'K',
                    'date'=>date('Y-m-d', time()),
                    'content'=>"根据".$formData['allVoteCount']."位".$hfName."病患者投票得出的科室排行",
                    'link'=>$faculty->getFacultyUrl(),
                    );
        return array('item' => $res + $formData['form']);
    }/*}}}*/
示例#19
0
        echo $healthKnowledge->id;
        ?>
</td>
        <td> <a href="/healthknowledge/one?knowledgeid=<?php 
        echo $healthKnowledge->id;
        ?>
" target="_blank" >  <?php 
        echo $healthKnowledge->title;
        ?>
  </a> </td >
		<td><?php 
        echo HealthKnowledge::$categoryDef[$healthKnowledge->category];
        ?>
</td>
		<td> <span class="contentspan"> <?php 
        echo XString::truncate($healthKnowledge->content, 50);
        ?>
 </span>  </td>
        <td> 
            <?
                $lessons = DAL::get()->find_all_by_healthKnowledgeId_and_followupCustomerId("HealthKnowledgeLesson", $healthKnowledge->id, $followupCustomer->id);
                //echo count($lessons) . "<br/>";
                foreach ($lessons as $l)
                {
                    echo "<span>" . $l->ctime->toShortString() ."  " . $l->createUser->name."  </span> <br />";
                }
                if (empty($lessons))
                {
                    echo "无 ";
                }
            ?>
    <?php 
        }
        else
        { ?>
            <a href="<?=$doctorPatientRef->getTouchUrl($touchDomain)?>" class="doc_list2_box">
    <?php 
        } 
?>
        <div class="doc_list2">
            <ul>
                <li><div class="left">患  者:</div><div class="right"><?=$telOrder->patient->privateName?></div></li>
                <li><div class="left">地  区:</div><div class="right"><?=$telOrder->patient->province?> <?=$telOrder->patient->city?></div></li>
                <?php if ($diseaseName != '') { ?>
                <li><div class="left">疾  病:</div><div class="right"><?=$diseaseName?></div></li>
                <?php } ?>
                <li><div class="left">病情描述:</div><div class="right"><?=XString::truncate($telOrder->diseaseDesc, 28)?></div></li>
                <li class="last"><div class="left">通话时间:</div><div class="right"><?=substr($telOrder->getTelTime(),0,16)?>至<?=substr($telOrder->getTelTime(),18,18)?></div></li>
                <li class="position"><img width="26" height="26" src="http://i1.hdfimg.com/touch/images/go_r.png"></li>
            </ul>
        </div>
    </a>
<?php 
    } 
}
else
{
?>
<div class="tc mt30 mb20 f17">暂无电话订单</div>
<?php
} 
?>
                            <li>
                            <span class="fb"> <?=$result->getDisplayName()?> </span>
                                发表了一<?=$result->isCureThankLetter() ?"封":"篇"?>
                          <?php if ($result->isCureThankLetter())
                                {
                                    echo "感谢信";
                                }else if ($result->isCureExp())
                                {
                                    echo "看病经验";
                                }else
                                {
                                    echo "点评";
                                }?>
                            </li>
                            <li>
                               <div class="fl comment-li" ><?=XString::truncate($result->content, 38, '...')?></div>
                               <div class="clearfix fr mt20 pr5"><a class="blue unl" href="<?=$result->getUrl()?>#from_present" target="_blank">详情</a></div>
                            </li>
                        </ul>
                    </div>
                </div>
            </li>
<?php
            }/*}}}*/
            //礼物
            else if ($result instanceof PresentOrder)
            {/*{{{*/
?>
                <li id="list_self" class="clearfix presentPersonList-box-item m5 ml10">
                    <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>
					        <?php if ($isDead == false && $doctor->hasSpace() == false && $doctor->canOpenSpace()) { ?>
					                <a href="http://www.haodf.com/passport/dspace_step1_account.php?doctor_id=<?=Codec::getInstance()->encodeId($doctor->primaryId)?>" target="_blank" class="blue"><span class="red">我是<?=$doctor->name?>本人</span>,我要修改简介</a>
					        <?php } ?>
					    <?php } else { ?>
					    
					    <div id="full" style="display:none; word-wrap:break-word;word-break:break-all;  overflow:hidden !important;">
					    <?php 
					    $doctorIntro = $doctor->intro;
						if(mb_strlen($doctorIntro, 'GBK') < 200) {
							$doctorIntro = nl2br($doctor->intro);											
						}
					    ?>
					        <?=nl2br($doctorIntro)?><span><a href="#" class="blue cp J_display_intro">&lt;&lt; 收起</a></span>
					    </div>
					    <div id="truncate" style="word-wrap:break-word;word-break:break-all;">                                                        
					        <?=strip_tags(XString::truncate($doctor->intro, 130))?>
					        <?php if (mb_strlen($doctor->intro, 'GBK') > 65) { ?>
					                <span><a href="#" class="blue cp J_display_intro">完整介绍&gt;&gt;</a></span>
					        <?php } ?>
					    </div>
					    <?php if ($isDead == false && $doctor->hasSpace() == false && $doctor->canOpenSpace()) { ?>
					    <div style="word-wrap:break-word;word-break:break-all;"><a href="http://www.haodf.com/passport/dspace_step1_account.php?doctor_id=<?=Codec::getInstance()->encodeId($doctor->primaryId)?>" target="_blank" class="blue"><span class="red">我是<?=$doctor->name?>本人</span>,我要修改简介</a></div>
					    <?php } ?>
					                        
					    <?php } ?>
					    
					<?php } else	//if ($doctor->intro)
					{ ?>
						<?php if ($doctor->hasSpace() == false && $doctor->canOpenSpace()) { ?>
					    
                            暂无 (<a href="http://www.haodf.com/passport/dspace_step1_account.php?doctor_id=<?=Codec::getInstance()->encodeId($doctor->primaryId)?>">
            ?>
</td>
<?php 
        }
        if (false) {
            ?>
		<td><?php 
            echo $bloodSugarStep->s_management == "" ? "" : $bloodSugarStep->getS_ManagementDesc();
            ?>
</td>
		<td><?php 
            echo XString::truncate($bloodSugarStep->s_plan, 50);
            ?>
</td>
		<td><?php 
            echo XString::truncate($bloodSugarStep->s_remark, 50);
            ?>
</td>
<?php 
        }
        ?>
        <td>
        <a href="/bloodsugarstep/modify?bloodSugarStepId=<?php 
        echo $bloodSugarStep->id;
        ?>
" target="_blank">修改</a>|
        <a href="/bloodsugarstep/one?bloodSugarStepId=<?php 
        echo $bloodSugarStep->id;
        ?>
" target="_blank">详情</a>
        <?php 
	<td><a href="<?php 
        echo $doctorPatientRef->space->url;
        ?>
" target="_blank"><?php 
        echo $doctorPatientRef->space->user->name;
        ?>
</a>(<?php 
        echo $doctorPatientRef->space->name;
        ?>
)</td>
	<td><?php 
        echo $doctorPatientRef->user->name;
        ?>
</td>
    <td><?php 
        echo XString::truncate($doctorPatientPost->content, 30);
        ?>
</td>
	<td><span>
    <a href="notalk?refId=<?php 
        echo $doctorPatientRef->id;
        ?>
" target="content_frm">查看</a>
	</span></td>
	</tr>
<?php 
    }
}
?>
<tr>
<td colspan="4"><?php 
            if ($otherFlow->isNull() || $otherFlow->space->isDoctor() == false) {
                continue;
            }
            ?>
                    <li> 
                        咨询 <a href="<?php 
            echo $otherFlow->space->getUrl();
            ?>
" target="_blank"><?php 
            echo $otherFlow->space->name;
            ?>
大夫</a> <a href="<?php 
            echo $otherFlow->getUrl();
            ?>
" target="_blank"><?php 
            echo XString::truncate($otherFlow->title, 20, "...");
            ?>
</a>
                    </li>
<?php 
        }
        ?>
            </ul>
        </div>
<?php 
    }
    ?>

<script type="text/javascript">
$(document).ready(function(){
    initFancyBox("a.popupwindow");
示例#26
0
                <?php }?>
                <!--end xianxinSideBox-->
                
                <!--start xianxinSideBox-->
              <?php if(empty($curlcaseList) == false) 
                      {
                ?>
                <div class="xianxinSideBox mb10">
                    <h4 class="xianxinSideBox_h4">相关回复</h4>
                    <ul class="p10 xianxinSideBox_ul">
                    <?php
                        foreach ($curlcaseList as $curlcase) 
                        {
                    ?>
                        <li>
                            <a style="font-size: 14px;" target="_blank" href="<?=$curlcase->getUrl()?>"><?= XString::truncate($curlcase->title, 30)?></a>
                        </li>
                  <?php }?>
                  </ul>
                </div>  
                <?php }?>
                <!--end   xianxinSideBox-->
            </div>
        </div>
    </div>
<script>
function copyLink(){
    try {
        var cText =  document.location.toString();
        if (window.clipboardData) {
            window.clipboardData.setData("Text", cText);
<!--采访报道 start-->
<?php $shengyinList = $diseasePage->getShengyinThesisList();
if (0 < count($shengyinList))
{
?>
        <div class="cate_box2 mb30">
            <div class="clearfix cate_title2 mb10">
                <p class="module2"><a href="http://www.<?=URL_PREFIX?>haodf.com/thesis/showlist?category=<?=CmsObjCategory::SHENGYIN?><?='&diseaseId='.$disease->id?>" target="_blank">采访报道</a></p>
                <p class="fr pt5">
                    <a target="_blank" href="http://www.<?=URL_PREFIX?>haodf.com/thesis/showlist?category=<?=CmsObjCategory::SHENGYIN?><?='&diseaseId='.$disease->id?>" class="fs">更多<span class="f8">>></span></a>
                </p>
                <i class="b_arrow3"></i>
            </div>
            <ul class="dis_lore fs">
            <?php
                foreach($shengyinList as $thesis)
                {
            ?>
                <li><a target="_blank" href="<?=$thesis->getUrl()?>"><?=XString::truncate($thesis->title, 36)?></a></li>
            <?php
                }
            ?>
            </ul>

        </div>
<?php
}
?>

        <!--采访报道 end-->
示例#28
0
                        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
                {
                    continue;
                }
                $articleTime = XDateTime::valueOf($articleTime)->toShortString();
                ?>
                <li class="clearfix">
					<span class="fl">
                        <a href="<?=$articleUrl?>" target="_blank" class="f14"><?=$articleTitle.Article::$sourceDesc[$article->source]?></a>
                        <span class="gray2 ml10"><?=$articleTime?></span>
                    </span>
                    <?php if(isset($addr) && isset($articleDoctorUrl)){ ?>
                        <span class="fr">
示例#29
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?>">
示例#30
0
        <a title="更多平台" class="bshare-more bshare-more-icon more-style-addthis"></a>
        </div>
                            <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script>
                    <script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>
                    <script type="text/javascript" charset="utf-8">
                    bShare.addEntry({
                        title: "<?php 
echo $article->title;
?>
",
                            url: "<?php 
echo $article->getUrl();
?>
",
                            summary: "<?php 
echo XString::truncate(strip_tags(htmlspecialchars_decode($article->content)), 250);
?>
"
                    });

                    </script>


        <!-- Baidu Button END -->
        <p class="gray3 tr fs" style="float:right">发表于:<?php 
echo $article->ctime->toStringByFormat('Y-m-d H:i');
?>
</p>
        <div style="clear:both"></div>
        <?php 
if (false == $spaceIsLogin) {