📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv10.demodesign.com.tr
/
includes
/
template
/
_pages
📝
merchants.php
← Geri Dön
<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <?php $islemCek = $db->prepare("select * from magazalar_ayar where id=:id "); $islemCek->execute(array( 'id' => '1' )); $islemayar = $islemCek->fetch(PDO::FETCH_ASSOC); $cityCek = htmlspecialchars(strip_tags($_GET['city'])); if(strip_tags(htmlspecialchars($_GET['city'])) != $_GET['city'] ) { header('Location:'.$ayar['site_url'].'404'); exit(); } if(strip_tags(htmlspecialchars($_GET['p'])) != $_GET['p'] ) { header('Location:'.$ayar['site_url'].'404'); exit(); } $sehirler = $db->prepare("select sehir from magazalar where durum='1' and dil='$_SESSION[dil]' group by sehir order by sehir asc"); $sehirler->execute(); if(isset($_GET['city']) && $_GET['city'] == !null ) { $citySorgu = "and sehir like '%$_GET[city]%'"; }else{ $citySorgu = null; } $Sayfa = @intval($_GET['p']); if(!$Sayfa) $Sayfa = 1; $Say = $db->query("select * from magazalar where durum='1' and dil='$_SESSION[dil]' $citySorgu"); $ToplamVeri = $Say->rowCount(); $Limit = 20; $Sayfa_Sayisi = ceil($ToplamVeri/$Limit); if($Sayfa > $Sayfa_Sayisi){$Sayfa = 1;} $Goster = $Sayfa * $Limit - $Limit; $GorunenSayfa = 5; $islemListele = $db->query("select * from magazalar where durum='1' and dil='$_SESSION[dil]' $citySorgu order by sira ASC limit $Goster,$Limit"); $listelesene = $islemListele->fetchAll(PDO::FETCH_ASSOC); if(isset($_GET['city']) && $_GET['city'] == !null ) { $magazalarBaslik = $_GET['city']; $getFor = '&city='.$_GET['city'].''; }else{ $magazalarBaslik = $diller['magazalar-text-1']; } ?> <title><?=$magazalarBaslik?> <?=$diller['magazalar-text-6']?> - <?php echo $ayar['site_baslik']?></title> <meta name="description" content="<?php echo"$islemayar[meta_desc]" ?>"> <meta name="keywords" content="<?php echo"$islemayar[tags]" ?>"> <meta name="news_keywords" content="<?php echo"$islemayar[tags]" ?>"> <meta name="author" content="<?php echo"$ayar[site_baslik]" ?>" /> <meta itemprop="author" content="<?php echo"$ayar[site_baslik]" ?>" /> <meta name="robots" content="index follow"> <meta name="googlebot" content="index follow"> <meta property="og:type" content="website" /> <?php include "includes/config/header_libs.php";?> </head> <body> <?php include 'includes/template/pre-loader.php'?> <?php include 'includes/template/header.php'?> <!-- CONTENT AREA ============== !--> <div class="users_main_div" style="background-color: #<?=$islemayar['sayfa_bg']?>; font-family : '<?=$islemayar['sayfa_font']?>',sans-serif ; "> <div class="user_login_register_div"> <?php if($ToplamVeri>'0' ) {?> <!-- Header !--> <div class="user_page_header"> <?php if(isset($_GET['city']) && $_GET['city'] == !null ) {?> <?=$magazalarBaslik?> <?=$diller['magazalar-text-6']?> <?php }else { ?> <?=$magazalarBaslik?> <div class="w-100 mt-2" style="font-size: 13px ; font-weight: 400; color: #999; line-height: 20px"> <?=$diller['magazalar-text-2']?> </div> <?php }?> </div> <!-- <========SON=========>>> Header SON !--> <!-- şehir listele sorgusu 0 den büyükse çıksın !--> <?php if($islemayar['sehir_sec'] == '1' && $ToplamVeri >'0' && $sehirler->rowCount()>'0' ) {?> <div class="w-100 teslimat-form-area mb-5"> <select name="city" id="dynamic_select" class="form-control" style="height: 55px" required> <option value=""><?=$diller['magazalar-text-3']?></option> <?php foreach ($sehirler as $sehir) {?> <option value="<?=$ayar['site_url']?>magazalarimiz/?city=<?=urlencode($sehir['sehir'])?>" <?php if($_GET['city'] == $sehir['sehir'] ) { ?>selected<?php }?>><?=$sehir['sehir']?></option> <?php }?> </select> <?php if(isset($_GET['city']) && $_GET['city'] == !null ) {?> <a href="magazalarimiz/" class="mt-2 d-inline-block btn-sm btn-danger rounded-0" style="font-size: 13px ; text-decoration: none;"> <i class="fa fa-times"></i> <?=$diller['magazalar-text-4']?> </a> <?php } ?> </div> <?php }?> <div class="merchants_div"> <div class="merchants_div_in"> <?php foreach ($listelesene as $row) {?> <div class="merchants_div_box"> <?php if($row['gorsel'] == !null ) {?> <?php if($islemayar['detay'] == '1' ) {?> <a href="magaza/<?=$row['seo_url']?>-M<?=$row['id']?>/"> <?php } ?> <div class="merchants_div_box_img"> <img src="i/merchants/<?=$row['gorsel']?>" alt="<?=$row['baslik']?>"> </div> <?php if($islemayar['detay'] == '1' ) {?> </a> <?php } ?> <?php }?> <div class="merchants_div_box_txt"> <?php if($islemayar['detay'] == '1' ) {?> <a href="magaza/<?=$row['seo_url']?>-M<?=$row['id']?>/" class="merchants_div_box_txt_1"> <?php } else { ?> <div class="merchants_div_box_txt_1"> <?php }?> <?=$row['baslik']?> <?php if($islemayar['detay'] == '1' ) {?> </a> <?php } else { ?> </div> <?php }?> <div class="merchants_div_box_txt_2"> <i class="fa fa-map-marker"></i> <?=$row['sehir']?> </div> </div> </div> <?php }?> </div> </div> <!---- Sayfalama Elementleri ================== !--> <?php if($ToplamVeri > $Limit ) {?> <div id="SayfalamaElementi" class="w-100 bg-white mt-3 "> <?php if($Sayfa >= 1){?> <nav aria-label="Page navigation example " > <ul class="pagination pagination-sm justify-content-start mb-1 "> <?php } ?> <?php if($Sayfa > 1){?> <li class="page-item "><a class="page-link " href="magazalarimiz/?p=1<?=$getFor?>"><?=$diller['sayfalama-ilk']?></a></li> <li class="page-item "><a class="page-link " href="magazalarimiz/?p=<?=$Sayfa - 1?><?=$getFor?>"><?=$diller['sayfalama-onceki']?></a></li> <?php } ?> <?php for($i = $Sayfa - $GorunenSayfa; $i < $Sayfa + $GorunenSayfa +1; $i++){ if($i > 0 and $i <= $Sayfa_Sayisi){ if($i == $Sayfa){ ?> <li class="page-item active " aria-current="page"> <a class="page-link" href="magazalarimiz/?p=<?=$i?><?=$getFor?>"><?=$i?><span class="sr-only">(current)</span></a> </li> <?php }else{ ?> <li class="page-item "><a class="page-link" href="magazalarimiz/?p=<?=$i?><?=$getFor?>"><?=$i?></a></li> <?php } } } ?> <?php if($islemListele->rowCount() <=0) { } else { ?> <?php if($Sayfa != $Sayfa_Sayisi){?> <li class="page-item"><a class="page-link" href="magazalarimiz/?p=<?=$Sayfa + 1?><?=$getFor?>"><?=$diller['sayfalama-sonraki']?></a></li> <li class="page-item"><a class="page-link" href="magazalarimiz/?p=<?=$Sayfa_Sayisi?><?=$getFor?>"><?=$diller['sayfalama-son']?></a></li> <?php }} ?> <?php if($Sayfa >= 1){?> </ul> </nav> <?php } ?> </div> <?php }?> <!---- Sayfalama Elementleri ================== !--> <?php }else { ?> <div class="user_page_header"> <?=$diller['magazalar-text-5']?> </div> <?php }?> </div> </div> <!-- CONTENT AREA ============== !--> <?php include 'includes/template/footer.php'?> <script> $(function(){ $('#dynamic_select').on('change', function () { var url = $(this).val(); if (url) { window.location = url; } return false; }); }); </script> </body> </html> <?php include "includes/config/footer_libs.php";?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula