</aside> <section id="right_side" class="floatright shop-search-result" style="border-left:none;"> <div class="shop-item-list"> <div class="breadcrumb"> <a href="/shop/search.php">All Categories</a> <?php if ($view['param']['cat'] != '') { echo sprintf(' > <a href="%s">%s</a>', buckys_shop_search_url('', $view['param']['cat'], '', $view['param']['sort'], $view['param']['user']), $view['param']['cat']); } ?> <?php if ($view['param']['loc'] != '') { echo sprintf(' > <a href="%s">%s</a>', buckys_shop_search_url('', $view['param']['cat'], $view['param']['loc'], $view['param']['sort'], $view['param']['user']), $view['param']['loc']); } ?> <?php if ($view['param']['q'] != '') { echo sprintf(' > %s', $view['param']['q']); } ?> </div> <div class="sort-box"> <div class="l"> <div class="total-record-p"><?php
$TNB_GLOBALS['headerType'] = 'shop'; $paramCurrentPage = buckys_escape_query_string($_REQUEST['page']); $paramQueryStr = buckys_escape_query_string($_REQUEST['q'], true); $paramCategory = buckys_escape_query_string($_REQUEST['cat'], true); $paramLocation = buckys_escape_query_string($_REQUEST['loc'], true); $paramSort = buckys_escape_query_string($_REQUEST['sort']); $paramUserID = buckys_escape_query_string($_REQUEST['user']); $view = []; //Get available products $shopProductIns = new BuckysShopProduct(); $countryIns = new BuckysCountry(); $productResultList = $shopProductIns->search($paramQueryStr, $paramCategory, $paramLocation, $paramUserID); $productResultList = $shopProductIns->sortProducts($productResultList, $paramSort); $view['categoryList'] = $shopProductIns->countProductInCategory($productResultList); //Create Base URL for pagination of search page $paginationUrlBase = buckys_shop_search_url($paramQueryStr, $paramCategory, $paramLocation, $paramSort, $paramUserID); //Display $view['products'] = fn_buckys_pagination($productResultList, $paginationUrlBase, $paramCurrentPage, COMMON_ROWS_PER_PAGE); $view['param']['q'] = $paramQueryStr; $view['param']['cat'] = $paramCategory; $view['param']['loc'] = $paramLocation; $view['param']['sort'] = $paramSort; $view['param']['user'] = $paramUserID; $TNB_GLOBALS['shopSearchParam'] = $view['param']; $view['countryList'] = $countryIns->getCountryList(); if ($paramQueryStr != '') { $TNB_GLOBALS['title'] = $paramQueryStr . ' - BuckysRoomShop Search'; } else { if ($paramCategory != '') { $TNB_GLOBALS['title'] = $paramCategory . ' - BuckysRoomShop Search'; } else {