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


PHP ResultContext::getSearchExpression方法代碼示例

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


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

示例1: ResultContext

 *
 * This source code is free and modifiable under the terms of 
 * GNU General Public License. (http://www.gnu.org/copyleft/gpl.html). See
 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$vo_result = $this->getVar('result');
$vo_result_context = $this->getVar('result_context');
?>
 	<div id="resultBox">
<?php 
if ($vo_result) {
    $o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search');
    $vs_search = ResultContext::getLastFind($this->request, 'ca_objects') == 'basic_browse' ? '' : $o_result_context->getSearchExpression();
    ?>
		
		<div id="resultsSearchForm"><form name="artwork_Search" action="<?php 
    print caNavUrl($this->request, '', 'Search', 'Index');
    ?>
" method="get">
			<input type="text" name="search" value="<?php 
    print $vs_search ? $vs_search : '';
    ?>
" autocomplete="off"/> <a href="#" name="searchButtonSubmit" onclick="document.forms.artwork_Search.submit(); return false;">Search</a>
			<input type="hidden" name="target"  value="ca_objects" />
			<input type="hidden" name="view"  value="full" />
		</form></div><!-- end resultsSearchForm -->
		<div id="pageHeadingResultsPage"><img src='<?php 
    print $this->request->getThemeUrlPath();
開發者ID:guaykuru,項目名稱:pawtucket,代碼行數:31,代碼來源:ca_objects_search_basic_html.php

示例2: caNavLink

    print "</form>\n";
}
?>
		
		</div><!-- end topbar -->
		<div id="pageArea">
			<div id="header">
<?php 
print caNavLink($this->request, "<img src='" . $this->request->getThemeUrlPath() . "/graphics/" . $this->request->config->get('header_img') . "' border='0'>", "", "", "", "");
?>
				
			
<?php 
// get last search ('basic_search' is the find type used by the SearchController)
$o_result_context = new ResultContext($this->request, 'ca_objects', 'basic_search');
$vs_search = $o_result_context->getSearchExpression();
?>
			<div id="nav">
				

			<div id="MFinto">
<?php 
print $this->render('Splash/MF_text_html.php');
?>
 
</div>
			<div id="search"><form name="header_search" action="<?php 
print caNavUrl($this->request, '', 'Search', 'Index');
?>
" method="get">
						<a href="#" name="searchButtonSubmit" onclick="document.forms.header_search.submit(); return false;"><?php 
開發者ID:guaykuru,項目名稱:pawtucket,代碼行數:31,代碼來源:pageHeader.php

示例3: array

 * the "license.txt" file for details, or visit the CollectiveAccess web site at
 * http://www.CollectiveAccess.org
 *
 * ----------------------------------------------------------------------
 */
$va_facets = $this->getVar('available_facets');
$va_facets_with_content = $this->getVar('facets_with_content');
$va_facet_info = $this->getVar('facet_info');
$va_criteria = is_array($this->getVar('criteria')) ? $this->getVar('criteria') : array();
$va_results = $this->getVar('result');
$o_result_context = $this->getVar('result_context');
$vs_browse_target = $this->getVar('target');
$vs_browse_type_code = $o_result_context->getTypeRestriction($vn_has_changed);
if (!$this->request->isAjax()) {
    $o_result_context = new ResultContext($this->request, $vs_browse_target, 'basic_browse');
    $vs_search = ResultContext::getLastFind($this->request, $vs_browse_target) == 'basic_browse' ? '' : $o_result_context->getSearchExpression();
    ?>
		<div id="resultsSearchForm"><form name="browseSearch" action="<?php 
    print caNavUrl($this->request, '', 'Search', 'Index');
    ?>
" method="get">
				<input type="text" name="search" value="<?php 
    print $vs_search ? $vs_search : '';
    ?>
" autocomplete="off"/> <a href="#" name="searchButtonSubmit" onclick="document.forms.browseSearch.submit(); return false;">Search</a>
				<input type="hidden" name="target"  value="<?php 
    print $vs_browse_target;
    ?>
" />
				<input type="hidden" name="view"  value="full" />
		</form></div><!-- end resultsSearchForm -->
開發者ID:guaykuru,項目名稱:pawtucket,代碼行數:31,代碼來源:browse_controls_html.php


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