当前位置: 首页>>代码示例>>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;未经允许,请勿转载。