コード例 #1
0
	public function ajaxGetAttachmentData($request, $response)
	{/*{{{*/
		$attachment = DAL::get()->find('Attachment', $request->aid);
		$result['filename'] = $attachment->fileName;
		$result['atturl'] =  TuClient::getInstance()->getUrl($attachment->filePath);
        mb_convert_variables('utf8', 'gbk', $result); 
		echo json_encode($result);
		return parent::DIRECT_OUTPUT;
	}/*}}}*/
コード例 #2
0
 public function ajaxTopicImgPost($request, $response) 
 {
 	header('Content-Type: text/html; charset=GBK');
     if (isset($_FILES['topicimage']) && $_FILES['topicimage']['tmp_name'] != '') 
     {
         $imgId = TuClient::getInstance()->uploadImage($_FILES['topicimage']);
         $imgUrl = TuClient::getInstance()->getThumbnailUrl($imgId, 210, 150, TuClient::TYPE_ZOOM);
         echo "<script>parent.operate('$imgId', '$imgUrl');</script>";
         exit;
     }
     exit;
 }
コード例 #3
0
ファイル: showlist.php プロジェクト: sdgdsffdsfff/hdf-client
function showvalue($a, $b, $c = array())
{
    switch ($b) {
        case "fld_Sex":
        case 'fld_DoctorSex':
            switch ($a[$b]) {
                case 0:
                    $v = "女";
                    break;
                case 1:
                    $v = "男";
                    break;
                default:
                    $v = "未知";
                    break;
            }
            break;
        case "fld_Birthday":
            $v = date("Y-m-d", intval($a[$b]));
            break;
        case 'fld_DoctorBirthday':
            $v = date("Y-m-d", intval($a[$b]));
            break;
        case "photo":
            $v = empty($a[$b]) ? '' : '<img src="' . TuClient::getInstance()->getThumbnailUrl($a[$b], 110, 110, TuClient::TYPE_ZOOM) . '"/>';
            break;
        default:
            $v = $a[$b];
            break;
    }
    $v2 = $v;
    if (empty($c) == false) {
        $v2 = showvalue($c, $b);
    }
    $v = $v2 != $v ? '<span style="color:red">' . $v . "</span>" : $v;
    return $v;
}
コード例 #4
0
ファイル: image.php プロジェクト: sdgdsffdsfff/hdf-client
if ($request->filepath !== null)
{
	$maxWidth = 1024;
	$maxHeight = 1024;
    DAL::get()->setUp('image');
	$filePath = $request->getRequest('filepath', '');
    $realPath = TuClient::getInstance()->getUrl($filePath);
	$size = getimagesize($realPath);
	$realWidth = $size[0];
	if ($realWidth < $maxWidth) 
	{
		$img = $realPath;
	}
	else
	{
		$img = TuClient::getInstance()->getThumbnailUrl($filePath, $maxWidth, $maxHeight, TuClient::TYPE_ZOOM);	
	}
}
elseif ($request->img !== null )
{
	$img = $request->img;
}

if ($img)
{
?>
<div style="width: 100%; text-align: center; padding: 10px 0px;">
<img src="<?=$img?>" id="myimg" />
</div>
<div style="width: 100%; left: 20%; position: absolute; z-index: 999; top: 50px;">
<img src="http://i1.hdfimg.com/space/images/img_turn_left.jpg"	onclick="rotate('myimg','left')" style="cursor:pointer" /> 
コード例 #5
0
 /**
  * updateDoctorHeadImage 
  * 修改医生头像信息 
  * @param mixed $userId 
  * @access public
  * @return void
  */
 public function updateDoctorHeadImage($userId, $default='')
 {/*{{{*/
     $doctorOwner = DAL::get()->find_by_userid('DoctorOwner', $userId);
     if($doctorOwner->isNull())
     {
         $this->setErrorCode(819);
         return 0;
     }
     if(isset($default) && $default == 1)
     {
         $imgId = "g3/M00/43/FE/p4YBAFIwhECAAEfZAAAH4eTfEf0542.jpg"; 
     }
     else
     {
         if (isset($_FILES['content']) && $_FILES['content']['name'] == '') 
         {
             $this->setErrorCode(165);
             return 0;
         }
         $imgId = TuClient::getInstance()->uploadImage($_FILES['content'], array('original'=>true));
     }
     $user = $doctorOwner->source->user;
     $oldImgId = $user->headImage;
     if ($user->hasConfirmedSpace() && $user->space->isDoctor())
     {
         DoctorClient::getInstance()->modifyByDoctor($user->space->host->id, array('photo' => array('old' => $oldImgId, 'new' => $imgId)));
     }
     else
     {
         UserClient::getInstance()->updateHeadImage($userId, $imgId);
     }
     $this->content = array('userId'=>$userId);
 }/*}}}*/
コード例 #6
0
            <a href="<?php 
                    echo $orgImgUrl;
                    ?>
" target="_blank"><img src="<?php 
                    echo $imgUrl;
                    ?>
" />点击放大图片</a><br /><br />
                <?php 
                } else {
                    ?>
                    <img src="http://i1.hdfimg.com/space/images/icons/<?php 
                    echo strtolower($attach->type);
                    ?>
.gif" align="absmiddle" />
                        <a href="<?php 
                    echo TuClient::getInstance()->getUrl($attach->filePath);
                    ?>
" target="_blank">点击这里查看此文件档案</a></a>
                            <?php 
                }
                ?>
        <?php 
            }
            ?>
        <?php 
        }
    }
}
?>
        <!-- Baidu Button BEGIN -->
        <!--
コード例 #7
0
    </div>
</div>
<?php } ?> 


<div class="case_main" style="padding-top:0">
    <div class="upload_box">
<?php if (false == empty($paList)) { ?> 
        <div class="upload_list">
            <ul class="clearfix">
            <?php foreach ($paList as $pa) 
            {
                if ($pa->attachment->isNull() == false && $pa->attachment->filePath)
                {
                    if (preg_match('/\.(?:jpg|png|gif)/i', $pa->attachment->fileName)) { 
                        $imgUrl = TuClient::getInstance()->getThumbnailUrl($pa->attachment->filePath, 110, 110);
                    ?>
                        <li>
                            <span>
                                <img src="<?=$imgUrl?>" alt="">
                            </span>
                            <b>
                                <a href="javascript:;" onclick="if (confirm('确认删除?')) deleteAttach('<?=$pa->id?>');">
                                <i></i>
                                </a>
                            </b>
                        </li>
                    <?php 
                    }
                } 
            }
コード例 #8
0
ファイル: inbox.php プロジェクト: sdgdsffdsfff/hdf-client
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="userspace_rightpanel">
        <tr>
        	<td class="top_tr bold font14"><img src="http://i1.hdfimg.com/userspace/images/folder_add.gif" width="16" height="16" align="absmiddle"/> 我的收件箱</td>
        </tr>
        </table>       
<div class="p5"> 
<?php if ($list) 
{  ?>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="userspace_rightpanel3" style="border:0px;">
	<?php foreach($list as $msg) { ?>
	<tr valign="top">
		<td width="10%" >
		<?php 
		if (isset($msg['sender']) && $msg['sender'] instanceof user && $msg['sender']->headImage)
		{
			$headImageUrl = TuClient::getInstance()->getThumbnailUrl($msg['sender']->headImage, 48, 48, TuClient::TYPE_ZOOM);	
		}
		else
		{
			$headImageUrl = "http://i1.hdfimg.com/zixun/images/user1.png";
		}
		?>
		<img src="<?=$headImageUrl?>" />
		</td>
		<td  width="15%">
			<div class="p_right">
			<p><?=$msg['sender']->name ?></p>
			<p class="gray">时间:<?=$msg['ctime'] ?></p>
			</div>
		</td>
		<td width="60%" >
コード例 #9
0
" target="_blank"><img src="<?php 
                echo $imgUrl;
                ?>
" alt="附件"/></a>
					<?php 
            } elseif ($pa->isDicom() && false == $pa->attachment->isNull()) {
                ?>
                    <a href="<?php 
                echo $pa->getBingLiUrl();
                ?>
" target="_blank">点击这里查看此医疗影像</a>
					<?php 
            } else {
                ?>
					<a href="<?php 
                echo TuClient::getInstance()->getUrl($pa->attachment->filePath);
                ?>
" target="_blank">点击这里查看此文件档案</a></a>
				    <?php 
            }
            ?>
				<?php 
        } else {
            echo $pa->content;
        }
        ?>
            	<div class="tl">
					<?php 
        echo nl2br($pa->title);
        ?>
				</div>
コード例 #10
0
            <dt><a href="<?=$orgImgUrl?>" target="_blank"><img src="<?=$imgUrl2?>" width="350" height="197" /></a></dt>

            <dd>检查项目:<?=$checkProgram?></dd>

            <dd>病历类型:<?=$typeDesc['name']?></dd>

            <dd><?=$attachmentOrNull->getTextForCheckTime()?>:<?=$checkTime?></dd>

            <dd>检查医院:<?=$hospitalName?> <?=$facultyName?></dd>

            <dd class="h_settime">创建时间:<?=$attachmentOrNull->ctime?></dd>

        </dl>
        <?php } elseif ($attachmentOrNull->isDicom() && false == $attachmentOrNull->attachment->isNull()) {?>
                    <a href="<?=$attachmentOrNull->getBingLiUrl()?>" target="_blank">
点击这里查看此医疗影像</a>
        <?php } else {?>
                    <a href="<?=TuClient::getInstance()->getUrl($attachmentOrNull->attachment->filePath)?>" target="_blank">
点击这里查看此文件档案</a>
        <?php } ?>
<?php 
}else { 
    $pa = $attachmentOrNull;
?>
    <?php include '_attachment_report.php'?>
<?php
}
}
} 
?>
コード例 #11
0
                <span class="pl10 tb">检查时间: </span><span><?=$dto->checkTime?></span>
                <span class="pl10 tb">上传时间: </span><span><?=$pa->ctime?></span>
                <?php
                    if($pa->isDeleted())
                    {
                ?>
                <span class="pl10 tb">已删除</span>
                 <?php
                    }
                 ?>
                <span class="none"><?=$dto->patientAttachmentId?></span>
            </p>
            <p class="pl35">
            <? if ($pa->isImageAttachment()) { ?>
                <a href="<?=$pa->attachment->getImageUrl()?>" target="_blank">
                    <img src="<?=TuClient::getInstance()->getThumbnailUrl($pa->attachment->filePath, 100, 100)?>" alt='新窗口打开附件' />
                </a> 
            <? } else { ?>
                <a class="tb" href="<?=$pa->getBingLiUrl()?>" target="_blank">
                    <img src="http://i1.hdfimg.com/zixun/images/write_upload.jpg" alt="新窗口打开手写报告" />
                </a>
          <?php } ?>
            </p>
  <?php } ?>
   </div>
</div>
<script type="text/javascript">
$(function () {
    initFancyBox('#addPatientAttachmentBingLi');
});
</script>
コード例 #12
0
        public function ajaxLeadImgPost($request, $response) 
        {
            if (isset($_FILES['leadimage']) && $_FILES['leadimage']['tmp_name'] != '') 
            {
	            $imgId = TuClient::getInstance()->uploadImage($_FILES['leadimage']);
	            $imgUrl = TuClient::getInstance()->getThumbnailUrl($imgId, 386, 264, TuClient::TYPE_ZOOM);
	            echo "<script>parent.operate('$imgId','$imgUrl');</script>";
                exit;
	        }
	        exit;
        }
コード例 #13
0
 public function ajaxPhotoPost($request, $response)
 {
     /*{{{*/
     $userid = $request->userid;
     $user = DAL::get()->find('User', $userid);
     $oldImgId = $user->headImage;
     if (isset($_FILES['headimage']) && $_FILES['headimage']['tmp_name'] != '') {
         $imgId = TuClient::getInstance()->uploadImage($_FILES['headimage'], array('original' => true));
         if ($user->hasConfirmedSpace() && $user->space->isDoctor()) {
             DoctorClient::getInstance()->modifyByDoctor($user->space->host->id, array('photo' => array('old' => $oldImgId, 'new' => $imgId)));
         }
         if ($request->richsite != '' && null != $request->richsite) {
             $this->message('上传成功!为保证您的数据安全,新头像将通过审核方能生效,审核时间为1个工作日', $response, array('url' => $response->router->urlfor('adminpayment/showrichsite')));
         } else {
             $this->message('上传成功!为保证您的数据安全,新头像将通过审核方能生效,审核时间为1个工作日', $response, array('url' => $response->router->urlfor('index/index')));
         }
     } else {
         $this->message('没有上传头像数据', $response, array('url' => $response->router->urlfor('index/index')));
     }
 }
コード例 #14
0
	public function postHospitalLogo($request, $response)
	{
		$hospitalId = $request->getRequest('hospitalId');
		$hospitalName = $request->getRequest('hospitalName');
		$operate = $request->getRequest('operate');
		if($hospitalId > 0 && $operate == 'post')
		{
		 	if (isset($_FILES['hospitalLogo']) && $_FILES['hospitalLogo']['tmp_name'] != '')
		 	 {
                $imgId = TuClient::getInstance()->uploadImage($_FILES['hospitalLogo']);
	            HospitalClient::getInstance()->updateHospitalLogo($hospitalId, $imgId);
	            $msg = 't';
	        }else{
	        	$msg = 'f';
	        }
			$response->msg = $msg ;
		}
 		$hospital = DAL::get()->find('Hospital',$hospitalId);
		if($hospital != null && $hospital->isNull() == false && $hospital->logo!=null)
		{
			$logoUrl = TuClient::getInstance()->getThumbnailUrl($hospital->logo, 96, 96, TuClient::TYPE_ZOOM);
			$response->logo = $logoUrl;
			$hospitalName = $hospital->commonName;
		}
		$response->hospitalId = $hospitalId;
		$response->hospitalName = $hospitalName;
	}
コード例 #15
0
			<?php if ($spaceIsLogin) { ?><span style="float: right; font-size: 12px;"><a href="<?= $router->urlfor('adminsetup/headlinepost', array('act'=>'delete')) ?>" onclick="return confirm('确定要删除吗?')">取消头条</a></span><?php } ?></td>
			<td class="panel_top_right"></td>
		</tr>
		<tr>
			<td class="panel_middle_left"></td>
			<td class="panel_middle_middle"></td>
			<td class="panel_middle_right"></td>
		</tr>
		<tr>
			<td class="panel_body_left"></td>
			<td class="panel_body_middle">
			<table width="100%" cellpadding="0" cellspacing="0">
				<?php if (!$image->isNull()) { ?>
				<tr>
					<td>
					<img width="600" src="<?= TuClient::getInstance()->getUrl($image->filePath) ?>" align="left" style="margin: 0px 10px 10px 0px" />
					</td>
				</tr>
				<?php } ?>
				<tr>
					<td>
						<style type="text/css">
						.w_pic{
							width:100%;
						}
						.w_pic img{
							width:600px;
						margin:auto;
						}
						</style>
						<div class="w_pic">
コード例 #16
0
 public function serviceList($request, $response)
 {
     /*{{{*/
     DBC::requireFalse($this->spaceIsLogin, '不允许自己提交给自己订单!');
     //对没有开通电话咨询医生的链接跳转,没有owner也会跳走.
     if (!$this->space->isPhoneOpenedForFront($this->user->id)) {
         $response->setRedirect('http://' . URL_PREFIX . '400.haodf.com/index/prompt?doctorName=' . rawurlencode($this->space->host->name) . '&doctorFaculty=' . rawurlencode($this->space->host->hospitalfaculty->faculty->name));
         return;
     }
     //医生近期通话记录
     $callingLogs = array();
     $fromDoctorDetail = $request->fromDoctorDetail;
     $response->fromDoctorDetail = $fromDoctorDetail;
     if (0 == $fromDoctorDetail) {
         $callingLogs = PaymentClient::getInstance()->getDoctorRecentPhoneRecords($this->space);
     }
     $response->callingLogs = $callingLogs;
     //医生部分的信息--beg--
     $owner = DAL::get()->find_by_relatedObject('telowner', $this->space->user);
     $response->owner = $owner;
     //新近开通
     $latestOpenCallServiceTitle = doctorOutline::getLatestOpenCallServiceTitle($owner->spaceExt->starttime4tel->toString());
     $response->latestOpenCallServiceTitle = $latestOpenCallServiceTitle;
     //取头像
     $response->headImageUrl = TuClient::getInstance()->getThumbnailUrl($this->space->user->headImage, 96, 96, TuClient::TYPE_ZOOM);
     if (empty($this->space->user->headImage)) {
         $response->headImageUrl = "http://i1.hdfimg.com/my/img/doctor_default_96.gif";
     }
     //满意度和评价
     $doctorSatisfactionList = PaymentClient::getInstance()->getDoctorSatisfactionList($this->space->host->id);
     $doctorSatisfaction = null;
     if (false == empty($doctorSatisfactionList)) {
         $doctorSatisfaction = $doctorSatisfactionList[$this->space->host->id];
     }
     $response->doctorSatisfaction = $doctorSatisfaction;
     $response->productList = ProductClient::getInstance()->getProducts($this->space, array(serviceDef::TYPE_TELORDER));
     //固定接听时间
     $doctorPhoneSchedules = TelOwnerClient::getInstance()->getDoctorPhoneScheduleByOwnerId($owner->id);
     $response->doctorPhoneSchedules = $doctorPhoneSchedules;
     //未完成且已付费的订单数量,在固定接听时间那
     $OrderIdsOfUnfinishedAndPayed = TelOwnerClient::getInstance()->getOrderOfUnfinishedAndPayed('telorder', $owner->id);
     $OrderCntOfUnfinishedAndPayed = count($OrderIdsOfUnfinishedAndPayed);
     $response->OrderCntOfUnfinishedAndPayed = $OrderCntOfUnfinishedAndPayed;
     //医生部分--end--
     //患者部分的信息--beg--
     $curUser = $this->user;
     //患者的有效订单数
     $myOwner = null;
     $patientIdOfSelected = null;
     $validOrderCnt = 0;
     //已登录状态
     $myOwner = new NullEntity();
     if (false == $curUser->isNull()) {
         $myOwner = DAL::get()->find_by_relatedObject('telowner', $curUser);
         if ($myOwner->isNull() == false) {
             $validOrderCnt = TelOrderClient::getInstance()->getValidOrderCnt($myOwner->id);
         }
         //wk
         //默认选择患者,TODO by wk
         $patientIdOfLatestFlow = FlowClient::getInstance()->getPatientIdOfLatestFlow($this->user->id, $this->space->id);
         $patientIdOfSelected = $patientIdOfLatestFlow;
         if (empty($patientIdOfLatestFlow)) {
             $patientIdOfSelected = PaymentClient::getInstance()->getLatestPatientIdOfOrders($myOwner->id);
         }
         //优惠 wk
     }
     //dodo::yyp从咨询完成页自动带入咨询id
     $threadid = $request->threadid;
     if (isset($threadid)) {
         $thread = DAL::get()->find('thread', $threadid);
         $response->thread = $thread;
     }
     $response->curUser = $curUser;
     $response->patientIdOfSelected = $patientIdOfSelected;
     $response->validOrderCnt = $validOrderCnt;
     $response->spaceModule = 'PhoneCase';
     $response->returnVisitList = array();
     $response->ScoreDesc = TelVisit::$scoreDesc;
     $response->myOwner = $myOwner;
     //患者信息--end--
     //从电话咨询医生详情页过来的显示精简模板
     if (1 == $request->fromDoctorDetail) {
         $response->callingLogs = array();
         $response->fromDoctorDetail = $request->fromDoctorDetail;
         return "compactMode";
     } else {
         $response->callingLogs = PaymentClient::getInstance()->getDoctorRecentPhoneRecords($this->space);
         return "default";
     }
 }
コード例 #17
0
 public static function getAttachmentListImp($attachments, $start=0, $end=5) 
 {/*{{{*/
     $infos = $datas = array();
     $cnt = 0 ;
     foreach($attachments as $attachment)
     {/*{{{*/
         $info = array();
         $time = date('Y-m-d',strtotime($attachment->ctime->toString()));
         $info['attachmentId'] = $attachment->id;
         $info['name'] = $attachment->attachment->name;
         if($attachment->attachmentId == 0)
         {
             $html = '';
             $info['reportType'] = PatientAttachment::$typeList[$attachment->type]['name'];
             $html = "<p>病历类型:".$info['reportType']."</p>";
             $html .= "<p>检查时间:".$attachment->checkTime."</p>";
             $html .= preg_replace("'([\r\n])[\s]+'", "", $attachment->content);
             $html .= "<p>".$attachment->title."</p>";
             $info['innerHtml'] = $html;
             $info['canClick'] = '1';
             $datas[$time]['report'][] = $info;
         }
         else if($attachment->attachment->filePath)
         {
             if (preg_match('/\.(?:jpg|png|gif)/i', $attachment->attachment->filePath))
             {
                 $info['canClick'] = '1';
                 $info['thumbnailUrl'] = TuClient::getInstance()->getThumbnailUrl($attachment->attachment->filePath, 300, 200);
                 $url = MainDataBucket::getPictureUrl($attachment->attachment);
                 $info['url'] = $url;
                 $datas[$time]['pic'][] = $info;
             }
             else
             {
                 $info['canClick'] = '0';
                 $info['thumbnailUrl'] = 'http://i1.hdfimg.com/wap/images/dangan.png';
                 $datas[$time]['other'][] = $info;
             }
         }
     }/*}}}*/
     krsort($datas);
     foreach($datas as $time=>$data)
     {
         if($cnt >= $start && $cnt <= $end)
         {
             $inf = array();
             if(array_key_exists('pic',$data))
             {
                 $inf['image'] = $data['pic'];
             }
             if(array_key_exists('report',$data))
             {
                 $inf['handWriter'] = $data['report'];
             }
             if(array_key_exists('other',$data))
             {
                 $inf['annex'] = $data['other'];
             }
             $infos = $inf;
         }
         else if($cnt > $end)
         {
             break;
         }
         $cnt ++;
     }
     return array($infos, $datas);
 }/*}}}*/
コード例 #18
0
ファイル: update.php プロジェクト: sdgdsffdsfff/hdf-client
		<td class="panel_top_left"></td>
		<td class="panel_top_middle panel_top_img panel_top_title"><?=$attachment->fileName?></td>
		<td class="panel_top_right"></td>
	</tr>
	<tr>
		<td class="panel_middle_left"></td>
		<td class="panel_middle_middle"></td>
		<td class="panel_middle_right"></td>
	</tr>
	<tr>
		<td class="panel_body_left"></td>
		<td class="panel_body_middle">
		<form method="post" action="<?=$router->urlfor('adminphoto/updatepost') ?>">
		<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td><img src="<?=TuClient::getInstance()->getThumbnailUrl($attachment->filePath, 800, 800)?>" onload="ImgZoom(this)" /></td>
			</tr>
			<tr>
				<td><input type="text" name="attach_desc" value="<?=$attachment->description?>" /></td>
			</tr>
			<tr>
				<td><select name="album_id">
					<?php foreach ($photoAlbumList as $photoAlbum) { ?>
					<option value="<?=$photoAlbum->id?>"
					<?php if ($photoAlbum->id == $attachment->hostId) {?>selected="selected"<?php } ?>><?=$photoAlbum->name?></option>
					<?php } ?>
				</select></td>
			</tr>
			<tr>
				<td><input type="submit" value=" �ב ½» " />
				<input type="hidden" name="attach_id" value="<?=$attachment->id?>" /></td>
コード例 #19
0
<a class="attach_img" href="<?php 
echo $pa->attachment->getImageUrl();
?>
" target="_blank">
    <img id="img_<?php 
echo $pa->id;
?>
" src="<?php 
echo TuClient::getInstance()->getThumbnailUrl($pa->attachment->filePath, 200, 200);
?>
" alt="²¡Àý" />
</a> 
コード例 #20
0
ファイル: thread.php プロジェクト: sdgdsffdsfff/hdf-client
        echo $router->urlfor('patient/replyform');
        ?>
" enctype="multipart/form-data"  onsubmit="return checkCnt()">
                <input type="hidden" name="topicId" value="<?php 
        echo $topic->id;
        ?>
"/>
                        <div class="publish_talk1 pt10 pb10">
                                <table width="100%" class="publictab">
                                        <tr class="rows_two">
                                                <td width="150px;">
                                                        <div class="pb10 w150">
                                                                <p class="pb5 tc">
                                                                    <?php 
        if ($user->id != 0 && $user->headImage) {
            $userHeadImageUrl = TuClient::getInstance()->getThumbnailUrl($user->headImage, 96, 96, TuClient::TYPE_ZOOM);
            ?>
                                                                    <img src="<?php 
            echo $userHeadImageUrl;
            ?>
" class="b_n"/>
                                                                    <?php 
        } else {
            ?>
                                                                    <img src="http://i1.hdfimg.com/doctorzone/images/patient_head.png" class="b_n"/>
                                                                    <?php 
        }
        ?>
                                                                </p>
                                                                <p class="tc f14"><?php 
        echo $user->name;
コード例 #21
0
	public function detail($request, $response)
	{
		header('Content-Type: text/html; charset=gb2312');
		$id = $request->id;
		$pa = DAL::get()->find('PatientAttachment', $id);
		$imgUrl = '';
		$orgImgUrl = '';
		if(PatientAttachment::TYPE_PIC == $pa->type) {
			$imgUrl = TuClient::getInstance()->getThumbnailUrl($pa->attachment->filePath, 600, 400);
			$orgImgUrl = TuClient::getInstance()->getUrl($pa->attachment->filePath);
		}
		$typeDesc = PatientAttachment::$typeList[$pa->type];

		$response->pa = $pa;
		$response->typeDesc = $typeDesc;
		$response->imgUrl = $imgUrl;
		$response->orgImgUrl = $orgImgUrl;
	}
コード例 #22
0
        else
        {
?>
            <ul class="clearfix upload_img sel_attach fs f12">
<?php
                foreach($myBingLiList as $bingLi)
                {
                    $typeDesc = PatientAttachment::$typeList[$bingLi->type];
?>
                    <li id='tr_old_<?=$bingLi->id?>' class="pr" title="<?=$bingLi->title?>">
                        <div class="fl thumbnail">
<?php
                            $isImage = TuClient::getInstance()->isImage($bingLi->attachment->filePath);
                            if ($isImage) 
                            {
                                $thumbnailUrl = TuClient::getInstance()->getThumbnailUrl($bingLi->attachment->filePath, 70, 50);
?>
                                <img src="<?=$thumbnailUrl?>" alt="">
<?php
                            }
                            else
                            {
?>
                                <img src="http://i1.hdfimg.com/doctorzone/images/upload_attach2.png" alt="">
<?php
                            }
?>
                        </div>
                        <div class="oh zoom pl10 wb upload_img_desc lh180">
                            <p>
<?php 
コード例 #23
0
 private function _getCaseUserInfo($case)
 {/*{{{*/
     $info = array();
     $info['patientId'] = $case->patient->id;
     $info['patientSex'] = $case->patient->sex == 0 ? "女" : "男";
     $info['patientName'] = $case->patient->name;
     $info['logoUrl'] = '';
     if(false == $case->patient->user->isNull() && false == empty($case->patient->user->headImage) && false == in_array($case->patient->user->headImage, self::$defaultHeadImg))
     {
         $info['logoUrl'] = TuClient::getInstance()->getThumbnailUrl($case->patient->user->headImage, self::IMG_SMALL_HEADIMAGE_WIDTH, self::IMG_SMALL_HEADIMAGE_HEIGTH, TuClient::TYPE_ZOOM);
     }
     $info['doctorLogoUrl'] = $case->space->host->getHeadImageForMobile();
     $info['userName'] = $case->patient->userName;
     $info['patientAge'] = $this->getPatientAge($case->patient);
     $info['patientProvince'] = $case->patient->province;
     $info['patientCity'] = $case->patient->city;
     $info['doctorId'] = $case->space->host->id;
     $info['doctorName'] = $case->space->name;
     $info['hospitalName'] = $case->space->host->hospitalfaculty->hospital->commonName;
     $info['hospitalFacultyName'] = $case->space->host->hospitalfaculty->name;
     $info['grade'] = $case->space->host->grade;
     $info['educateGrade'] = '';
     $info['mobile'] = $case->patient->mobile;
     $info['email'] = $case->patient->user->email;
     return $info;
 }/*}}}*/
コード例 #24
0
ファイル: newmodel.php プロジェクト: sdgdsffdsfff/hdf-client
 <div class="xianxinMainBox mb10 f14">
     <h3 class="xianxinMainBox_h3"><?=$type->title ?></h3>
     <?php 
           if($i % 2 != 0) 
               $imgClass = "fr xianxin_topic_img ml10";
           else 
               $imgClass = "fl xianxin_topic_img mr10";
           foreach($topicList as $topic)
           {
           	if($topic->isNull()) continue;
     ?>
     <div class="p10 clearfix">
     <?php   $topicImg = $topic->img;
             if(empty($topicImg) == false)
             {
             	$topicImgUrl = TuClient::getInstance()->getThumbnailUrl($topicImg, 203, 139, TuClient::TYPE_ZOOM);
             ?>
         <img src="<?=$topicImgUrl ?>" alt="" class="<?=$imgClass ?>" width="203" height="139"/>
        <?php }?>
         <div>
             <p class="lh180"><?=nl2br($topic->content) ?></P>
        <?php if ($topic->url){ ?> 
        <p>             
           <a href='<?=$topic->url ?>' target="_blank" class="blue">[ÏêÇé]</a>
        </p>
         <?php }?>
         </div>
     </div>
     <?php }?>
 </div>
 <!--end xianxinMainBox-->
コード例 #25
0
 public function ajaxPhotoPost($request, $response)
 {
     /*{{{*/
     $imgId = '';
     $presentId = $request->presentid;
     if (isset($_FILES['iconimage']) && $_FILES['iconimage']['tmp_name'] != '') {
         $imgId = TuClient::getInstance()->uploadImage($_FILES['iconimage'], array('original' => true));
     }
     $response->imgId = $imgId;
     $response->presentId = $presentId;
 }
コード例 #26
0
 <div class="sn-partContent p15">
     <div class="clearfix">
     <?php foreach($zhuantiList as $zhuanti)
         { ?>
     <!--start sn-caseObj-->
     <div class="sn-caseObj <?php echo $i%2>0 ? 'fl':'fr';?> w345">
         <div class="sn-caseObj-title clearfix">
             <div class="sn-caseObj-title-l f14 sn-blue fl" title="<?=$zhuanti->title?>">
                 <span class="pl5 fb"><a href="<?=$router->urlfor('oversea/zhuantidetail',array( 'id' => $zhuanti->encodeId($zhuanti->id)))?>" class="sn-blue"><?=substr($zhuanti->title, 0, 40)?></a></span>
             </div>
         </div>
         <div class="p10 clearfix">
         <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($zhuanti->leadimg, 142, 106, TuClient::TYPE_ZOOM)?>" alt="出国看病、海外就诊、出国就医">
             </td>
         </tr>
         </table>
             <div class="ov">
                 <p class="t2"><?=XString::truncate(strip_tags($zhuanti->leadin), 100)?></p>
                 <p class="tr mt5"><a href="<?=$router->urlfor('oversea/zhuantidetail',array( 'id' => $zhuanti->encodeId($zhuanti->id)))?>" class="sn-blue">详细>></a></p>
             </div>
         </div>
     </div>
     <!--end sn-caseObj-->
     <?php 
             echo $i%2 == 0 ? '</div><div class="clearfix mt10">':'';
             $i++;
         } ?>
     </div>
コード例 #27
0
           echo '<span class="db pl10 displayAll" >检查日期:'.$checkupAnswerSheet->ctime.'</span>';
           foreach ($questions as $question)
           {
               if($question instanceOf Question)
               {
                   echo "<span class='f14 w dil'>".$question->showDisplayInfo($checkupAnswerSheet->answerSheet->questionSheet, $options)."</span>";
               }
           }
           echo "</ul>"; 
           echo '<p class="auditorNotice gray2 ml30 none">管理员帮您结构化的报告不可以修改</p>';
           echo '<p class="tc pt20">';
           echo '<input type="submit" value="保存" class="saveBtn dil reveiwNotice-fs">';

           if ($patientAttachment instanceOf PatientAttachment && preg_match('/[jpg|png|gif]/i', $patientAttachment->attachment->fileName))
           {
               $orgImgUrl = TuClient::getInstance()->getUrl($patientAttachment->attachment->filePath);
               echo '<a class="displayAll gray2 ml10 unl dil" href="'.$orgImgUrl.'" target="_blank">查看原件</a>';
           }
           echo '</p>';
       }
       $number++;
?>
   </div>
<?
       }
   } /*}}}*/
}
?>
</form>
<script>
$(function(){
コード例 #28
0
    <input type="checkbox" name="attachmentIds[]" value="<?=$pa->id?>" <?=in_array($pa->id, $destIdsArray)?"checked":""?>>
			病历类型:<?=$allTypes[$pa->type]['name']; ?>&nbsp;&nbsp;
			检查时间:<?=$pa->checkTime ?>&nbsp;&nbsp;
			上传时间:<?=$pa->ctime->toString() ?>&nbsp;&nbsp;
		</div>
		<div class="ct" style="float:right">
			<?php if ($pa->attachment->isNull() == false && $pa->attachment->filePath) {
				 if (preg_match('/\.(?:jpg|png|gif)/i', $pa->attachment->fileName)) {
						$imgUrl = $imgUrl = TuClient::getInstance()->getThumbnailUrl($pa->attachment->filePath, 200, 200);
						$orgImgUrl = TuClient::getInstance()->getUrl($pa->attachment->filePath);
			?>
				<a href="<?=$orgImgUrl?>" target="_blank"><img src="<?=$imgUrl?>" /></a>
					<?php } elseif ($pa->isDicom() && false == $pa->attachment->isNull()) { ?>
                    <a href="<?=$pa->getBingLiUrl()?>" target="_blank">点击这里查看此医疗影像</a>
				<?php } else { ?>
					<a href="<?=TuClient::getInstance()->getUrl($pa->attachment->filePath)?>" target="_blank">点击这里查看此文件档案</a>
				<?php } ?>
			<?php } else { echo $pa->content; } ?>
			<div class="tl">
				<?= nl2br($pa->title) ?>
			</div>
		</div>
        <div style="clear:both"></div>
	</div>
<?php }?>
<?php }?>
<?php }?>
<input type="hidden" name="orderId" value="<?=$order->id?>"/>
</form>
</div>
コード例 #29
0
              <h1> <a href="<?=$doctor->getUrl()?>"><?=$doctor->name?></a>大夫简介</h1>
            </div>
            <div class="navrt"></div>
            <div class="cls"></div>
          </div>
          <div class="rt"></div>
          <div class="cls"></div>
        </div>
        <div class="middletr">
          <div class="lt">
          
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
	          <?php
	          if ($doctor->hasSpace() && $doctor->space->user->headImage)
	          {
                  $headImageUrl = TuClient::getInstance()->getThumbnailUrl( $doctor->space->user->headImage, 96, 96, TuClient::TYPE_ZOOM);
                  $imgTitle = $doctor->hospitalfaculty->hospital->commonName.$doctor->hospitalfaculty->name.$doctor->name;
			  ?>
	          <tr>
                <td width="120" rowspan="10" valign="top">
                <div class="ys_tx">
                <table border="0" cellspacing="0" cellpadding="0" style="border:2px solid #e1e1e1; width:96px; height:96px;background-color:#FFFFFF;">
	                <tr>
	                	<td align="center" valign="middle"><img src="<?=$headImageUrl?>" title="<?php echo $imgTitle;?>" /></td>
	                </tr>
        		</table>
                </div>
                <?php 
                	list($featAmount, $heartImgHtml) = ScoreClient::getInstance()->showFlagsforPage($doctor->space->id);
                	if($featAmount > 0)
                	{
コード例 #30
0
 public function upload($request, $response)
 {
     /*{{{*/
     $file = $_FILES['file'];
     $user = $this->curOperatorUser;
     if ($file['error'] == 0) {
         //modify by wzl,CMS-908
         //$attach = Uploader::imageFile2attach($user, $file, Attachment::TYPE_JPG, $user->id, Attachment::HOSTTYPE_HDFADMIN);
         $type = TuClient::getInstance()->getSuffix($file['name']);
         $attach = Uploader::file2attach($user, $file, $type, $user->id, Attachment::HOSTTYPE_HDFADMIN);
         //end modify by wzl,CMS-908
         if ($attach instanceof Attachment) {
             echo Attachment::getJson(array($attach), Attachment::THUMBNAIL_WIDTH_HDFADMIN, Attachment::THUMBNAIL_HIGHT_HDFADMIN);
         }
         exit;
     }
     exit;
 }