hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
easy3158
/
domains
/
ekwiatki.pl
/
public_html
/
Upload FileeE
HOME
<?php include("inc/head.php"); //----------------------------- $idCat = trim(addslashes(strip_tags($_GET['id']))); $qCat = mysqli_query($connect,"SELECT * FROM `okazje` WHERE `id` = $idCat"); $nCat = mysqli_num_rows($qCat); if($nCat > 0){ $sCat = mysqli_fetch_array($qCat); $tytulCat = $sCat['tytul']; } else {header("Location: index");exit;} ?> <body> <!-- header start --> <?php include("inc/top.php"); ?> <!--====================================================--> <div class="breadcrumb-area gray-bg"> <div class="container"> <div class="breadcrumb-content"> <ul> <li><a href="index">ekwiatki.pl</a></li> <li><a href="javascript:;">Okazje</a></li> <li class="active"><?=$tytulCat;?></li> </ul> </div> </div> </div> <!-- my account start --> <div class="shop-page-area pt-75 pb-75"> <div class="container"> <div class="row flex-row-reverse"> <div class="col-lg-9"> <div class="grid-list-product-wrapper"> <div class="product-grid product-view pb-20"> <div class="row"> <?php $q = mysqli_query($connect,"SELECT * FROM `products` WHERE `okazje` LIKE '%#$tytulCat%' AND `hidden` != '1'"); $n = mysqli_num_rows($q); if($n > 0){ while($s = mysqli_fetch_array($q)){ $tytul = $s['tytul']; $cena_sredni = $s['cena_maly_'.strtolower($moja_waluta)]; $id = $s['id']; $img = $s['img']; echo ' <div class="col-6 col-md-3" style="margin-bottom: 25px;"> <div class="product-wrapper"> <div class="product-img"> <a href="product-'.$id.'-'.href_title($tytul).'"> <img alt="" src="assets/images/products/'.$img.'" class="myOwnPhotos4"> </a> <div class="product-action"> <a class="action-compare" href="product-'.$id.'-'.href_title($tytul).'" title="Szczegóły"> <i class="icon-magnifier-add"></i> </a> </div> </div> <div class="product-content text-center"> <h4> <a href="product-'.$id.'-'.href_title($tytul).'">'.$tytul.'</a> </h4> <div class="product-price-wrapper"> <span style="font-size: 16px;">'.$cena_sredni.' '.$moja_waluta.'</span> </div> </div> </div> </div> '; } } else {errorIMG("Brak produktów na tej liście!");} ?> </div> </div> <!--<div class="pagination-total-pages" style="float: right;"> <div class="pagination-style"> <ul> <li><a class="prev-next prev" href="#"><i class="ion-ios-arrow-left"></i> Wstecz</a></li> <li><a class="prev-next next" href="#">Dalej<i class="ion-ios-arrow-right"></i> </a></li> </ul> </div> </div>--> </div> </div> <div class="col-lg-3"> <div class="shop-sidebar-wrapper gray-bg-7 shop-sidebar-mrg"> <div class="shop-widget"> <h4 class="shop-sidebar-title">Okazje</h4> <div class="shop-catigory"> <ul id="faq"> <?php $qOkazje = mysqli_query($connect,"SELECT * FROM `okazje` ORDER BY `id` ASC"); while($sOkazje = mysqli_fetch_array($qOkazje)){ $idOkazje = $sOkazje['id']; $tytulOkazje = $sOkazje['tytul']; echo '<li><a href="okazje-'.$idOkazje.'-'.href_title($tytulOkazje).'">'; if($idCat == $idOkazje){echo "<span style='color: #eb4e01;'>";} echo $tytulOkazje; if($idCat == $idOkazje){echo "</span>";} echo '</a></li>'; } ?> </ul> </div> </div> </div> </div> </div> </div> </div> <!--====================================================--> <?php include("inc/footer.php"); ?> <!-- all js here --> <?php include("inc/footerScripts.php"); ?> </body> </html>