private function formatHospitalFaculty($hospitalFacultyList)
    {/*{{{*/
        $hfArray = array();
        $b = 1;
        foreach($hospitalFacultyList as $hospitalFaculty)
        {
                $hfArray[$b]['hfInfo']['num'] = $b;
                $hfArray[$b]['hfInfo']['offcategory'] = $hospitalFaculty->faculty->parentName;
                $hfArray[$b]['hfInfo']['officename'] = $hospitalFaculty->name;
                $hfArray[$b]['hfInfo']['officesite'] = '';
                $hfArray[$b]['hfInfo']['officeintro'] =  empty($hospitalFaculty->intro) ? '' : trim(strip_tags(XString::truncate($hospitalFaculty->intro, 160)));
                $hfArray[$b]['hfInfo']['officetel'] = empty($hospitalFaculty->phone) ? '' : $hospitalFaculty->phone;
		        $openBookingCount = BookingClient::getInstance()->getOpenBookingDoctorCount($hospitalFaculty->hospital->id, $hospitalFaculty->faculty->name);
                if($openBookingCount > 0)
                {
                    $bookingUrl = "http://jiahao.haodf.com/".rawurlencode(Area::getProvKeyByName4PlussignChannel($hospitalFaculty->hospital->province))."/hospitalfaculty/".rawurlencode($hospitalFaculty->hospital->id)."/".rawurlencode($hospitalFaculty->faculty->id).".htm";
                }
                $hfArray[$b]['hfInfo']['officeorder'] = isset($bookingUrl) ? $bookingUrl : '';

                $offdiagscope = $this->getoffdiagscope($hospitalFaculty->id);
                $hfArray[$b]['hfInfo']['offdiagscope'] = $offdiagscope;
                $hfArray[$b]['hfInfo']['offdocnum'] = $hospitalFaculty->doctorCount;
                $hfArray[$b]['hfInfo']['offurl'] = $hospitalFaculty->getUrl();
                $b++;
                BeanFinder::get('LocalCache')->removeAll(); 
        }
        return $hfArray;
    }/*}}}*/
            <tr>
            <td ><?php if($isDead == false){?><span class="red"><?=$doctor->name?>大夫还没有开通个人网站和在线服务,您可以选择同专业其他专家进行咨询、预约门诊。</span><?php }?></td>
            </tr>
            <tr>
              <td valign="top" style="padding:0px; border-top:none;" >
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
             <?php if ($isDead){ ?>
                    <td valign="top"></td>            
                    <td valign="top">特殊说明:</td>  
                    <td>该医生已经过世</td>
             <?php }else{ ?>
                    <td align="right" style="border-top:none;"><a rel="nofollow" href="/keshi/<?=Codec::getInstance()->encodeId($doctor->hospitalfaculty->faculty->id)?>/zaixian.htm" target="_blank" class="xxzx_button">咨询好大夫</a></td>
                    <td width="110" align="right" style="border-top:none;"><a rel="nofollow" href="http://400.haodf.com/index/search?facultyname=<?=rawurlencode($doctor->hospitalfaculty->faculty->name)?>" title="选择<?=$doctor->hospitalfaculty->name ?>其他可通话专家预约电话咨询" target="_blank" class="xxzx_button" title="选择<?=$doctor->hospitalfaculty->name?>其他可通话专家预约通话咨询">电话咨询</a></td>
                    <td width="110" align="right" style="border-top:none;">
                    <a rel="nofollow" href="http://<?=URL_PREFIX?>jiahao.haodf.com/<?=Area::getProvKeyByName4PlussignChannel($doctor->hospitalfaculty->hospital->province)?>/hospitalfaculty/<?=$doctor->hospitalfaculty->faculty->id?>.htm" target="_blank" class="xxzx_button">申请加号</a>
                    </td>
                  <?php }?>
                  </tr>
                </table>
			</td>
            </tr>
<?php 
            if($isDead == false && $doctor->canOpenSpace())
            { 
?>
                <tr>
                    <td height="50" align="center" valign="middle" style="border-bottom:none;">
                      <form action="/passport/dspace_step1_account.php?doctor_id=<?=Codec::getInstance()->encodeId($doctor->primaryId)?>" method="post">
                        <input type="submit" value="我是<?=$doctor->name?>本人 ,我要开通大夫个人网站&gt;&gt;" style="width:80%; height:30px;" />
                      </form>	
Exemplo n.º 3
0
    }
}
?>
            </ul>
<?php 
if ($tmpnum == 0) {
    ?>
                <div align="center" style="padding-bottom:10px"><?php 
    echo $space->name;
    ?>
大夫的加号已约满/已停诊,好大夫在线只提供预约两周内的门诊加号,<br>请等待预约时间的更新或者
                <a href="http://<?php 
    echo URL_PREFIX;
    ?>
jiahao.haodf.com/<?php 
    echo Area::getProvKeyByName4PlussignChannel($space->host->hospitalfaculty->hospital->province);
    ?>
/hospitalfaculty/<?php 
    echo $space->host->hospitalfaculty->faculty->id;
    ?>
.htm">点击此处</a>预约其他专家</div>
<?php 
}
?>
            <div class="clinic_hint dn">
                <span class="clinic_hint_bg"></span>
                <p class="clinic_desc">请点击选择门诊时间后,点击下方"申请"按钮进行预约,如暂无门诊,或门诊已约满、已停诊,则当日门诊不可以再进行预约。</p>
            </div>
        </div>
        <!--选择门诊时间 end-->
Exemplo n.º 4
0
				<?php $i=0; foreach($value1 as $faculty) { ?>
				<?php if($i!=0&&$i%2==0) { ?>
			  </tr>
			  <tr>
				<?php } ?>
				<td width="50%">
                <?php $threadtempurl = "/faculty/".$faculty->getEncodeId()."/daifu.htm"?>
                  <a href="<?=$faculty->getUrl()?>" target="_blank" class="blue"><?=$faculty->name?></a>
                  <span class="gray" title="共有<?=$faculty->doctorCount?>位大夫<?=$faculty->spaceCount? ',其中'.$faculty->spaceCount.'人在线':''?>">(<?=$faculty->doctorCount?>人<?=$faculty->spaceCount?'/<a class="gray_uline" target="_blank" href='.$threadtempurl.'>
                  可咨询'.$faculty->spaceCount.'人':''?></a><?php 
                  foreach ($facultyList as $key => $value){
                      if($faculty->faculty->isNull() == false) {
                          if(false == empty($value[$faculty->faculty->name]['count'])){
                              $plusStat = $value[$faculty->faculty->name];
                              $a = (false == empty($hospital->id))?rawurlencode($hospital->id).'/':'' ;
                              $jiahaotempurl = "http://".URL_PREFIX."jiahao.haodf.com/".rawurlencode(Area::getProvKeyByName4PlussignChannel($isPlus[0]))."/hospitalfaculty/".$a.rawurlencode($plusStat['id']).".htm";
                              echo'/<a class="gray_uline" target="_blank" href='.$jiahaotempurl.'>可预约'.$plusStat['count'].'人';
                          }
                      }
                  }
                ?></a>)</span>
				</td>
				<?php $i++; }?>
			  </tr>
			</table></td>
		</tr>
		<tr>
		  <td colspan="2" class="line"></td>
		</tr>
		<?php } ?>
	  </table>
Exemplo n.º 5
0
	            <td class="tdl">科室电话:</td>
	            <td class="tdr_b"><?=$hospitalFaculty->phone?></td>
	        </tr>
        <?php }
        
		if($openBookingCount>0){
			//主要是用这个Hospital页的方法拿到地址district
			$isPlus = PlussignChannelClient::getInstance()->isHospitalBookDoctor($hospitalFaculty->hospital->commonName);
		?>
		<tr>
            <td class="tdl">转诊预约:</td>
            <td>

		<div class="clearfix">
					<span class="fl">本科室开通转诊服务的大夫<span class="orange" style="margin-bottom:5px;"><?=$openBookingCount?></span>名</span>
					<a href="http://<?=URL_PREFIX?>jiahao.haodf.com/<?=rawurlencode(Area::getProvKeyByName4PlussignChannel($hospitalFaculty->hospital->province))?>/hospitalfaculty/<?=rawurlencode($hospitalFaculty->hospital->id)?>/<?=rawurlencode($hospitalFaculty->faculty->id)?>.htm" class="fl jiahao_btn ml10" target="_blank">
						<span class="jiahao_btn_l">
							<span class="jiahao_btn_r">
							<span class="jiahao_icon_refer">本科室开通转诊服务的大夫</span>
							</span>
						</span>
					</a>
				</div>
				<p>
					<span>已成功转诊患者<span class="orange" style="margin-bottom:5px;"><?php if(empty($successBookingCount)) echo '0'; else echo $successBookingCount?></span>人次</span>
				</p> 

             </td>	
        </tr>
        <?php }?>
        <?php if ((int)$phoneAnswerCount > 0) { ?>
Exemplo n.º 6
0
</div>
<!--显示医院其他-->
<div id="hp" style="display: none; filter: alpha(opacity=100); opacity: 1;" align="left" onmouseover="this.style.display=''" onmouseout="this.style.display='none'">
<table>
    <tr>
        <td width="100%"></td>
    </tr>
</table>
<table width="100%">
<?php
$n = 0;
$ln = 0;
array_multisort( $districtList[$urlDistrict]['hospital'],SORT_NUMERIC, SORT_DESC);
foreach($districtList[$urlDistrict]['hospital'] as $hospitalName=>$totalInfo){
   $ln++;
   if($n % 3== 0){?>
      <tr>
    <?php }?>
<td width="30%" ><a href="/<?=rawurlencode(Area::getProvKeyByName4PlussignChannel($urlDistrict))?>/hospital/<?=rawurlencode($totalInfo['id'])?>.htm" class="blue"><?=$hospitalName ?>(<?=$totalInfo['count'] ?>)</a></td>
<?php
if($ln == 3){?>
   </tr>
<?php $ln =0;} $n++;}?>
</table>
</div>
</body>
</html>
<div style="display:none"> 
<script src=" http://s6.cnzz.com/stat.php?id=2005759&web_id=2005759" language="JavaScript"></script>
</div>
Exemplo n.º 7
0
            <td width="23%" align="lift" valign="top" class="bold"><?=$hospitalname?></td>
            <td width="77%">
             <?php foreach($hospitalFacultyIds as $hospitalFacultyId){?>	
	             <?php if(isset($openBookingCount[$hospitalFacultyId])){?>
	             	<span class="jh_xxg_l_list">
	            	<a href="/<?=rawurlencode(Area::getProvKeyByName4PlussignChannel($openBookingCount[$hospitalFacultyId]['province']))?>/hospitalfaculty/<?=rawurlencode($allHospitalFaculty[$hospitalFacultyId]->hospital->id)?>/<?=rawurlencode($allHospitalFaculty[$hospitalFacultyId]->faculty->id)?>.htm" target="_blank">
	            		<?=$allHospitalFaculty[$hospitalFacultyId]->name?>
	            	</a>(<span class="orange2"><?=$openBookingCount[$hospitalFacultyId]['cnt']?></span>位)&nbsp;
	            	</span>
	             <?php }?>	
             <?php }?>	
            </td>
          </tr>
        </table>
        <?php }?>
        <div style="text-align:right; padding:5px 20px 0px 0px"><a href="/<?=rawurlencode(Area::getProvKeyByName4PlussignChannel($district))?>/hospitalfaculty/<?=rawurlencode('2006000')?>.htm" target="_blank" class="blue">更多<?=$district?>可网上预约加号心血管专家>></a></div>
      </div>
      <div class="bottom_bg"></div>
    </div>
    <?php }?>  
    </div>
    <div class="jia_hao_right">
      <div class="jia_hao_sidebar">
        <ul class="j_h_title2">
        <li class="s_l"></li>
        <li>热门心血管专家</li>
        <li class="s_r"></li>
        </ul>
        <div class="j_h_con_bg" style="padding-top:0px">
          <ul class="j_h_lb">
          <?php foreach($spaces as $space) {?>          
Exemplo n.º 8
0
 </div>
 
  <div class="hdf_case_nav">
   <h2 class="jia">预约加号</h2>
   <?php 
    $m = 0;
   	foreach ($jiahaoHospitalListGroupByProv as $prov => $jiahaoHospitalList)
	{
	?>
    <ul <?=($m%2==0)?"class='change_color'":""?>>
	<li class="title_nav" style="width:80px;"><?=$prov?>地区:</li>
	     <?php 
	     foreach ($jiahaoHospitalList as $jiahaoHospital)
     	 {
	     ?>
	     	<li><a href="http://<?=URL_PREFIX?>jiahao.haodf.com/<?=Area::getProvKeyByName4PlussignChannel($prov)?>/hospital/<?=$jiahaoHospital['hospitalid']?>.htm"><?=$jiahaoHospital['hospitalname']?></a></li>
	     <?php 
         }
	     ?>
    </ul>
	<?php 
		$m++;
	}
	?>
   <div class="clear"></div>
 </div>
 

<div class="hdf_case_nav">
<h3>科室列表</h3>
   <?php 
Exemplo n.º 9
0
                 $api_d = implode(",", $api_tmp);
             }
             $api_tmp = "";
             ?>
             </ul>
         </div>
         <script type="text/javascript" src="http://www.haodf.com/api/get_activetime.php?d=<?=$api_d?>"></script>
         <div class="cls"></div>
     </td>
 </tr>
 <?php } ?>
 <?php if($isPlus){?>
     <tr>
         <td style="vertical-align:middle;"><img src="http://i1.hdfimg.com/space/booking/images/jiahao_03.gif"/></td>
         <td colspan="2" style="vertical-align:middle;">转诊预约:本院开通转诊服务的大夫<span class="orange"><?=$openBookingCount?></span>名&nbsp;&nbsp;
         <a href="http://<?=URL_PREFIX?>jiahao.haodf.com/<?=rawurlencode(Area::getProvKeyByName4PlussignChannel($isPlus[0]))?>/hospital/<?=rawurlencode($hospital->id)?>.htm" target="_blank"><img src="http://i1.hdfimg.com/space/booking/images/hospitaljiahao_button0810.gif" /></a>
         </td>
     </tr>
     <?php if($successBookingCount >= 10){?>
     <tr>
         <td></td>
         <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         已成功转诊患者<span class="orange"><?=$successBookingCount?></span>人次
         </td>
     </tr>
     <?php }?>
 <?php }?>
 <?php $num = $callServiceDoctorsCnt;
 if($num > 0){?>
 <tr>
     <td style="vertical-align:middle;"><img src="http://i1.hdfimg.com/v2/images/h_hf/telephone.gif"/></td>