本文整理匯總了PHP中GlobalTemplete::getSearchBar方法的典型用法代碼示例。如果您正苦於以下問題:PHP GlobalTemplete::getSearchBar方法的具體用法?PHP GlobalTemplete::getSearchBar怎麽用?PHP GlobalTemplete::getSearchBar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類GlobalTemplete
的用法示例。
在下文中一共展示了GlobalTemplete::getSearchBar方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<div class="cls"></div>
</div>
</div>
</div>
</div>
<div class="bxbt">
<div class="lf"></div>
<div class="rt"></div>
</div>
</div>
</div>
<div id="el_result_content" class="m_right_682">
<div class="m_box_green">
<?php
$option['search_target'] = "hospital.php";
GlobalTemplete::getSearchBar($option);
?>
<div class="bxhd2">
<div class="lf"></div>
<div class="rt"></div>
<div class="center">
<?php
if (empty($city))
{
if ($distinct)
{
$cityEnglishName = Area::retrieveCityEnglishName('', $prov, $distinct);
if( !empty($cityEnglishName) )
{
$url = 'http://www.'.URL_PREFIX.'haodf.com/yiyuan/'.$prov.'/'.$cityEnglishName.'/sanjia.htm';
} else {
示例2: if
<div id="el_result_content" class="m_right_682">
<div class="m_box_green">
<?php GlobalTemplete::getSearchBar(); ?>
<div class="ct">
<?php if(isset($diseaseList1[$currentFaculty->parentId][$currentFaculty->name]) && count($diseaseList1[$currentFaculty->parentId][$currentFaculty->name]) > 0) {?>
<div class="m_title_green" id="<?php echo $currentFaculty->name;?>"><?php echo $currentFaculty->name.'常見疾病'?></div>
<div class="m_ctt_green"> <ul>
<?php $i = 1; foreach ($diseaseList1[$currentFaculty->parentId][$currentFaculty->name] as $row) {
if ($row["fld_DiseaseFacultyListOrder"] == 1 && $i <= 4) {$i++;?>
<li class="topli"><a href="/disease/<?=$row['fld_DiseaseKey']?>.htm" target="_self" ><?php echo $row["fld_DiseaseName"]?></a><?php if($row["DiseaseDoctor"] >0 && $row["SpaceDoctorCount"] >0 ){ echo '('.$row["DiseaseDoctor"].'位推薦大夫,'.$row["SpaceDoctorCount"].'位提供在線谘詢)';}?></li>
<?php if ($i == 5){ echo "<li class='lineli'></li></ul><ul>"; }?>
<?php } elseif ($row["fld_DiseaseFacultyListOrder"] == 1 && $i > 4){ ?>
<li><a href="/disease/<?=$row['fld_DiseaseKey']?>.htm" target="_self" title="<?php if($row["DiseaseDoctor"] >0 && $row["SpaceDoctorCount"] >0 ){ echo '('.$row["DiseaseDoctor"].'位推薦大夫,'.$row["SpaceDoctorCount"].'位提供在線谘詢)';}?>"><?=$row["fld_DiseaseName"]?></a></li>
<?php } }?>
</ul><div class="cls"></div></div>
<?php } if (isset($diseaseList2[$currentFaculty->parentId][$currentFaculty->name]) && count($diseaseList2[$currentFaculty->parentId][$currentFaculty->name]) > 0) {?>
<div class="m_title_green" id="<?=$currentFaculty->name?>"><?=$currentFaculty->name.'其他疾病'?></div>
<div class="m_ctt_green"><ul>
<?php foreach ($diseaseList2[$currentFaculty->parentId][$currentFaculty->name] as $row ) {?>
<li><a href="/disease/<?=$row['fld_DiseaseKey']?>.htm" target="_self" title="<?php if($row["DiseaseDoctor"] >0 && $row["SpaceDoctorCount"] >0 ){ echo '('.$row["DiseaseDoctor"].'位推薦大夫,'.$row["SpaceDoctorCount"].'位提供在線谘詢)';}?>"><?=$row["fld_DiseaseName"]?></a></li>
<?php }?></ul>
<div class="cls"></div></div>
<?php } if (isset($diseaseList3[$currentFaculty->parentId][$currentFaculty->name]) && count($diseaseList3[$currentFaculty->parentId][$currentFaculty->name]) > 0) {?>
<div class="m_title_green" id="<?=$currentFaculty->name?>"><?=$currentFaculty->name.'檢查及手術'?></div>
<div class="m_ctt_green"><ul>
<?php foreach ($diseaseList3[$currentFaculty->parentId][$currentFaculty->name] as $row ) {?>
<li><a href="/disease/<?=$row['fld_DiseaseKey']?>.htm" target="_self" title="<?php if($row["DiseaseDoctor"] >0 && $row["SpaceDoctorCount"] >0 ){ echo '('.$row["DiseaseDoctor"].'位推薦大夫,'.$row["SpaceDoctorCount"].'位提供在線谘詢)';}?>"><?=$row["fld_DiseaseName"]?></a></li>
<?php }?> </ul> <div class="cls"></div> </div>
<?php }?>
</div>
</div>