<?php

/**
 * @package     Dolphin Core
 * @copyright   Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * @license     CC-BY - http://creativecommons.org/licenses/by/3.0/
 */
require_once './inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . "design.inc.php";
bx_import('BxDolLanguages');
bx_import('BxDolSearch');
$o = new BxDolSearch(bx_get('section'));
$o->setLiveSearch(bx_get('live_search') ? 1 : 0);
$s = $o->response();
if (!$s) {
    $s = $o->getEmptyResult();
}
header('Content-type: text/html; charset=utf-8');
echo $s;
示例#2
0
		 		$.post('searchKeywordContent.php', sQuery, function(data) {
		 				$('#searchArea').html(data);
		 				bx_loading('searchForm', false);
					}
				);
	  	  return false;
		  }
		 );
	  }
	);
</script>
<?php 
$sCode = '';
$_page['extra_js'] = ob_get_clean();
$_ni = $_page['name_index'];
$oZ = new BxDolSearch();
if (bx_get('keyword')) {
    $sCode = $oZ->response();
    if (mb_strlen($sCode) == 0) {
        $sCode = $oZ->getEmptyResult();
    }
}
$sForm = getSearchForm();
$sSearchArea = '<div id="searchArea">' . $sCode . '</div>';
$_page_cont[$_ni]['page_main_code'] = $sForm . $sSearchArea;
$aVars = array();
$GLOBALS['oTopMenu']->setCustomSubActions($aVars, '');
PageCode();
function getSearchForm()
{
    $aList = $GLOBALS['MySQL']->fromCache('sys_objects_search', 'getAllWithKey', 'SELECT `ID` as `id`,
示例#3
0
 public function __construct($aChoice, $oTemplate)
 {
     parent::__construct($aChoice);
     $this->_oTemplate = $oTemplate ? $oTemplate : BxDolTemplate::getInstance();
 }
示例#4
0
<?php

/**
 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * CC-BY License - http://creativecommons.org/licenses/by/3.0/
 *
 * @defgroup    TridentCore Trident Core
 * @{
 */
require_once './inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . "design.inc.php";
bx_import('BxDolLanguages');
$o = new BxDolSearch(bx_get('section'));
$o->setLiveSearch(bx_get('live_search') ? 1 : 0);
$o->setMetaType(bx_process_input(bx_get('type')));
$o->setCategoryObject(bx_process_input(bx_get('cat')));
$s = $o->response();
if (!$s) {
    $s = $o->getEmptyResult();
}
header('Content-type: text/html; charset=utf-8');
echo $s;
/** @} */