当前位置: 首页>>代码示例>>PHP>>正文


PHP GlobalTemplete::getSearchBar方法代码示例

本文整理汇总了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 {
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:hospitallist.php

示例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>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:diseaselist_faculty.php


注:本文中的GlobalTemplete::getSearchBar方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。