?> <div class="col-xs-12"> <div class="panel panel-info"> <div class="panel-heading"><?php echo tep_get_infopages_title($homepage['infopages_id']); ?> </div> <div class="panel-body"> <?php echo tep_get_infopages_description($homepage['infopages_id']); ?> </div> </div> </div> <?php loadBox('specials'); ?> <?php loadBox('home_products'); } else { if (isset($_GET['products_is'])) { loadProduct($_GET['products_is']); } if (isset($_GET['cPath'])) { loadCategory($_GET['cPath']); } if (isset($_GET['page'])) { loadPage($_GET['page']); } }
} else { $kod = $_SESSION['kod']; echo '<h3>Przetwarzanie</h3>'; loadProduct($kod); //Załadowanie produktu do bazy if (!isset($_SESSION['pgs'])) { //Obliczenia stron i offsetu ostatniej z nich $opinie = countReviews($kod); $offset = 0; $strony = ceil($opinie / 10); $_SESSION['pgs'] = $strony; $_SESSION['pgsCount'] = 0; echo ' <div class="alert alert-warning" role="alert"> <strong>Praca w toku!</strong> Dodawanie produktu do bazy. </div>'; loadProduct($kod); header('refresh: 1;'); } elseif ($_SESSION['pgsCount'] < $_SESSION['pgs']) { echo ' <div class="alert alert-warning" role="alert"> <strong>Praca w toku!</strong> Dodawanie opinii do bazy.<br>'; $opinie = countReviews($kod); $offset = substr($opinie, -1, 1); print_r("Strona " . $_SESSION['pgsCount'] . " z " . $_SESSION['pgs'] . "</div>"); loadOpinions($kod, $_SESSION['pgsCount'], $offset); header('refresh: 0.2;'); $_SESSION['pgsCount']++; } else { print_r("Strona " . $_SESSION['pgsCount'] . " z " . $_SESSION['pgs'] . "<br>"); $opinie = countReviews($kod); $offset = substr($opinie, -1, 1); loadOpinions($kod, $_SESSION['pgsCount'], $offset - 1);
$_SESSION["currentpage"] = "Primarygeolayertype"; $arrScriptFiles = array("script", "Primarygeolayertype.js", "manage_Primarygeolayertype.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js"); $arrStyleFiles = array("style", "styles.css", "Primarygeolayertype.css"); array_push($arrFilesForLoad, $arrStyleFiles); array_push($arrFilesForLoad, $arrScriptFiles); loadHeader($arrFilesForLoad); loadPrimarygeolayertype($_GET); break; case "Product": $_SESSION["currentpage"] = "Product"; $arrScriptFiles = array("script", "Product.js", "manage_Product.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js"); $arrStyleFiles = array("style", "styles.css", "Product.css"); array_push($arrFilesForLoad, $arrStyleFiles); array_push($arrFilesForLoad, $arrScriptFiles); loadHeader($arrFilesForLoad); loadProduct($_GET); break; case "Service": $_SESSION["currentpage"] = "Service"; $arrScriptFiles = array("script", "Service.js", "manage_Service.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js"); $arrStyleFiles = array("style", "styles.css", "Service.css"); array_push($arrFilesForLoad, $arrStyleFiles); array_push($arrFilesForLoad, $arrScriptFiles); loadHeader($arrFilesForLoad); loadService($_GET); break; case "Socierytype": $_SESSION["currentpage"] = "Socierytype"; $arrScriptFiles = array("script", "Socierytype.js", "manage_Socierytype.js", "AutoComplete.js", "baseConnection.js", "msgPopup.js", "formPopup.js", "manage_Cookie.js"); $arrStyleFiles = array("style", "styles.css", "Socierytype.css"); array_push($arrFilesForLoad, $arrStyleFiles);