$Offset = $Params['Offset']; if (!is_numeric($Offset)) { $Offset = 0; } $searchPageLimit = 2; $tpl = eZTemplate::factory(); $ini = eZINI::instance(); $useSearchCode = $ini->variable('SearchSettings', 'SearchViewHandling') == 'default'; $logSearchStats = $ini->variable('SearchSettings', 'LogSearchStats') == 'enabled'; if ($http->hasVariable('BrowsePageLimit')) { $pageLimit = $http->variable('BrowsePageLimit'); } else { if ($http->hasVariable('SearchPageLimit')) { $searchPageLimit = $http->variable('SearchPageLimit'); } $pageLimit = pageLimit($searchPageLimit); } $maximumSearchLimit = $ini->variable('SearchSettings', 'MaximumSearchLimit'); if ($pageLimit > $maximumSearchLimit) { $pageLimit = $maximumSearchLimit; } $searchText = ''; if ($http->hasVariable("SearchText")) { $searchText = $http->variable("SearchText"); } $searchSectionID = -1; if ($http->hasVariable("SectionID")) { $searchSectionID = $http->variable("SectionID"); } $searchTimestamp = false; if ($http->hasVariable('SearchTimestamp') and $http->variable('SearchTimestamp')) {
<script type="text/javascript" src="/js/click.js"></script> <script type="text/javascript"> $(function(){ $(".splb_type_search li").each(function() { var h = $(this).height(); $(this).attr('rel',$(this).height()); if(h > 15){ $(this).css('height','20px'); } }) }); </script> </head> <body> <?php $symbol = empty($_GET) ? '?' : '&'; $num = 10; $limit = pageLimit($page, $num); $cd = isset($_GET['cd']) ? intval(get('cd')) : ''; $brand = isset($_GET['brand']) ? intval(get('brand')) : ''; $m = isset($_GET['m']) ? intval(get('m')) : ''; $x = isset($_GET['x']) ? intval(get('x')) : ''; $order = isset($_GET['order']) ? intval(get('order')) : ''; $addsql = "typetid='{$oncid}'"; if ($oncid == '') { $addsql = "typetid !=''"; } if (isset($_GET['keyword'])) { $keyword = preg_replace('/\\s+/', " ", get('keyword')); $keywordArr = explode(' ', $keyword); $addsql = ' ( '; for ($i = 0, $n = count($keywordArr); $i < $n; $i++) { $addsql .= " title like '%" . $keywordArr[$i] . "%' or";