} $curPage = $curPage > 0 ? $curPage : 1; $curItem = ($curPage - 1) * $maxItems; ?> <?php include_once 'header.php'; ?> <?php require_once "../../controller//ProductController.php"; $type = $_GET['type']; $subtype = 0; if (!$_GET['subtype'] == '0') { $subtype = $_GET['subtype']; } $productList = null; $productList = ProductController::getProductsOnPage($type, $subtype, null, $curItem, $maxItems); $totalItems = ProductController::getProductsOnPageCount($type, $subtype, null); echo ' <script type="text/javascript"> var array = $("ul#nav > li"); for ( var int = 0; int < array.length; int++) { var array_element = array[int]; if ($(array_element).attr("id") == "selected") { $(array_element).attr("id", ""); } } </script>'; if ($type == '1') { echo ' <script type="text/javascript"> var array = $("ul#nav > li"); for ( var int = 0; int < array.length; int++) { $(array[2]).attr("id", "selected");