<?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;
		 				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`,
                   `Title` as `title`,
                   `ClassName` as `class`,