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


PHP XString::setSearchText方法代码示例

本文整理汇总了PHP中XString::setSearchText方法的典型用法代码示例。如果您正苦于以下问题:PHP XString::setSearchText方法的具体用法?PHP XString::setSearchText怎么用?PHP XString::setSearchText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XString的用法示例。


在下文中一共展示了XString::setSearchText方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

			<div class="phone-item-inner pt20 clearfix pb20">
				<!--start phone-list-box-->
				<div class="phone-list-box fl mr30">
					<div class="fl subLogo subLogo-position1 mr20"></div>
					<div class="oh">
						<h3 class="fn f36 phone-blue f-yahei">查询</h3>
						<p class="f16 phone-gray">站在挂号处前不再迷茫,<span class="phone-blue fb">好评医生</span>一查便知</p>
					</div>
				</div>
				<!--end phone-list-box-->
				<!--start phone-list-box-->
				<div class="phone-list-box fl mr30">
					<div class="fl subLogo subLogo-position2 mr20"></div>
					<div class="oh">
						<h3 class="fn f36 phone-blue f-yahei">咨询</h3>
                        <p class="f16 phone-gray">免费咨询<span class="phone-blue fb"><?=XString::setSearchText()?>万位</span>正规医院专家</p>
					</div>
				</div>
				<!--end phone-list-box-->
				<!--start phone-list-box-->
				<div class="phone-list-box fl">
					<div class="fl subLogo subLogo-position3 mr20"></div>
					<div class="oh">
						<h3 class="fn f36 phone-blue f-yahei">专家回复</h3>
						<p class="f16 phone-gray"><span class="phone-blue fb">及时查看</span>专家本人的回复</p>
					</div>
				</div>
				<!--end phone-list-box-->
				<!--start phone-list-box-->
				<div class="phone-list-box fl mr30 mt20">
					<div class="fl subLogo subLogo-position4 mr20"></div>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:hdf_mobile.php

示例2: if

    </div>
    <?php include_once '_left_zhuanjiaguandian.php';?>
    <div class="cls2"></div>
    <?php if($diseaseContent['fld_diseasecontent']){?>
      <div class="jbnew_l_t_l_bar">
        <div class="jbnew_l_t_l_tit">什么是<?=$disease->name?>?</div>
        <div class="jbnew_l_t_l_con">  <?=mb_ereg_replace(' ','',strip_tags($diseaseIntro))."。";?>
            <a href="http://www.<?=URL_PREFIX?>haodf.com/jibing/<?=$disease->key?>/jieshao.htm" class="green_jb">看详情>></a>
        </div>
      </div>
      <?php }?> 
    <div id="onLineDoctor" style="display:none;"></div> 
  </div>
<script type="text/javascript">
var element = document.getElementById('searchtxt')
element.value = "在此咨询,<?=XString::setSearchText()?>万名正规医院大夫给您网络就医指导...";
var isTxtEmpty = 0;
function clearInput()
{
	if (isTxtEmpty < 1)
	{
		element.value = '';
	}
	isTxtEmpty = 1;
	
}
function toAskPage(url)
{
	if (element.value.length < 5 || isTxtEmpty<1) { alert("您的标题过于简单,请在标题中概述您的问题"); return false; }
	window.location.href=url+element.value;
}
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_left_introduce_zixun.php

示例3: index

	/** вия╞йврЁ */
	public function index($request, $response)
	{/*{{{*/
		$response->case_type_id = $request->case_type_id;
		$this->_setPublicVars($request, $response);
		/** ╣╠г╟я║тЯ╣дcaseTypeId */
		$categoryId = $caseTypeId = $request->getRequest('case_type_id', 'all');
		$response->caseTypeId = $caseTypeId;
        $response->statistics = SpaceClient::getInstance()->getStatistics();
        $this->getZixunInfoWithoutCategoryId($request, $response);
        if ($response->category->isNull() || 0 == $response->category->id)
        {
            //index
            $response->SEOTitle = 'мЬиовия╞тзоъв╗╪р_вия╞р╫т╨тзоър╫иЗ_╨ц╢С╥Ртзоъ';
            $response->keywords = 'вия╞р╫иЗё╛вия╞тзоъв╗╪р';
            $response->description = '╨ц╢С╥Ртзоъсп'.XString::setSearchText().'мР╤Юр╫иЗ╦Ы╬щдЦ╣д╡║гИ╦Ьп╘оЮс╕╣джнаф╫╗рИё╛мЬиовия╞тзоър╫иЗё╛вия╞р╫т╨тзоъв╗╪рё╛╪╡╡║╡Ия╞ё╛мЬиовия╞╪╡╡║ё╛вия╞р╫иЗв╗╪р╬мх╔╨ц╢С╥Ртзоъ║ё';
        }
        else
        {
            //category
            $response->SEOTitle = $response->category->name.'вия╞р╫иЗ_'.$response->category->name.'тзоъвия╞в╗╪р_╨ц╢С╥Ртзоъ'; 
            $response->keywords = $response->category->name.'вия╞р╫иЗё╛'.$response->category->name.'вия╞в╗╪р';
            $response->description = '╨ц╢С╥Ртзоъ'.$response->category->name.'вия╞╩Аспх╗мЧв╗╪р╦Ы╬щдЦ╣д╡║гИлА╧╘╨оюМ╣д╣джнаф╫╗рИё╛'.$response->category->name.'тзоъвия╞р╫иЗё╛'.$response->category->name.'тзоъвия╞в╗╪рё╛'.$response->category->name.'мЬиовия╞р╫т╨р╫иЗ╬мх╔╨ц╢С╥Ртзоъ║ё';
        }
	}/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:25,代码来源:indexcontroller.php

示例4: toAsk

 <form method="post" action="" id="zixun_ask_form_bottom" name="zixun_ask_form_bottom">
<input type="hidden" name="srcflag" value="15" />
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
<!--    "if(this.value=='在此咨询,5万名正规医院大夫给您网络就医指导...'){this.value='';}"-->
      <td width="325" valign="top"><textarea onclick="stopInterval();"  rows="" cols="" id="searchtxt" name="searchtxt"></textarea></td>
      <td width="120" valign="top"><input type="image" onclick="toAsk();" width="113" height="62" src="http://i1.hdfimg.com/homepage/images/index_cen_72.gif" /></td>
      <td valign="top" style="font-family:'微软雅黑','黑体'; font-size:16px; font-weight:bold; line-height:30px;">
    
      可咨询全国专家 <span class="orange2"><?=$statistics['spaces'] ?></span>位<br />
      已回复患者问题 <span class="orange2"><?=$statistics['spacereplythreads']?> </span>个</td>
     
    </tr>
  </table>
  </form>
</div>
<script type="text/javascript">
var text = '在此咨询,<?=XString::setSearchText()?>万名正规医院大夫给您网络就医指导...';
function toAsk(){
    var formObj = document.getElementById('zixun_ask_form_bottom');
    threadtitle = document.getElementById('searchtxt').value;
    if("在"==threadtitle.substr(threadtitle,1)){
    	threadtitle="";
        }
    formObj.action = "http://<?=URL_PREFIX?>zixun.haodf.com/ask.php?srcflag&from=zixunhaodf&case_title="+threadtitle;
    //formObj.target = '_blank';
    formObj.submit();
}
</script>
<script src="http://i1.hdfimg.com/homepage/js/function.js?20140711" type="text/javascript"></script>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:30,代码来源:search.php


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