當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。