當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Area::getProvKeyByName4PlussignChannel方法代碼示例

本文整理匯總了PHP中Area::getProvKeyByName4PlussignChannel方法的典型用法代碼示例。如果您正苦於以下問題:PHP Area::getProvKeyByName4PlussignChannel方法的具體用法?PHP Area::getProvKeyByName4PlussignChannel怎麽用?PHP Area::getProvKeyByName4PlussignChannel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Area的用法示例。


在下文中一共展示了Area::getProvKeyByName4PlussignChannel方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: formatHospitalFaculty

    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;
    }/*}}}*/
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:28,代碼來源:hospitalfacultydoctorinfo.php

示例2: if

            <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>	
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:31,代碼來源:content_bp_doctor_about.php

示例3:

    }
}
?>
            </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-->
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:30,代碼來源:_select_time.php

示例4: foreach

				<?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>
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:31,代碼來源:_faculty.php

示例5: if

	            <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) { ?>
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:31,代碼來源:_left_info.php

示例6: alpha

</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>
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:30,代碼來源:search.php

示例7: foreach

            <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) {?>          
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:31,代碼來源:xinzang.php

示例8: foreach

 </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 
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:31,代碼來源:sitemap.php

示例9: implode

                 $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>
開發者ID:sdgdsffdsfff,項目名稱:hdf-client,代碼行數:31,代碼來源:_info.php


注:本文中的Area::getProvKeyByName4PlussignChannel方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。