📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
petshopscripti.demodesign.com.tr
📝
urun-icerik.php
← Geri Dön
<?php include "includes/header.php"; ?> <?php include "includes/head_ic.php"; ?> <?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <?php $page_header_setting = $db->prepare("select * from page_header where page_id='products_detail' order by id"); $page_header_setting->execute(); $pagehead = $page_header_setting->fetch(PDO::FETCH_ASSOC); ?> <?php $productsayar = $db->prepare("select * from urunmodul_ayar where id=:id"); $productsayar->execute(array( 'id' => 1 )); $prodayar = $productsayar->fetch(PDO::FETCH_ASSOC); ?> <?php $id = $_GET['urun_id']; $urunListele = $db->prepare("select * from urun where id=:id and durum=:durum and dil=:dil"); $urunListele->execute(array( 'id' => $id, 'durum' => 1, 'dil' => $_SESSION['dil'] )); $urun = $urunListele->fetch(PDO::FETCH_ASSOC); $etiketler = $urun['tags']; $etiketler = explode(',', $etiketler); ?> <?php $urun_hits = $db->prepare("UPDATE urun SET hit = hit+1 WHERE id=:id and dil=:dil "); $urun_hits->execute(array( 'id' => $id, 'dil' => $_SESSION['dil'] )); ?> <?php $product_kat_info = $db->prepare("select * from urun_cat where id=:id and durum=:durum and dil=:dil"); $product_kat_info->execute(array( 'id' => $urun['kat_id'], 'durum' => 1, 'dil' => $_SESSION['dil'] )); $procat = $product_kat_info->fetch(PDO::FETCH_ASSOC); ?> <?php $product_ust_kat = $db->prepare("select * from urun_cat where id=:id and durum=:durum and dil=:dil"); $product_ust_kat->execute(array( 'id' => $procat['ust_id'], 'durum' => 1, 'dil' => $_SESSION['dil'] )); $proustcat = $product_ust_kat->fetch(PDO::FETCH_ASSOC); ?> <?php if($urun['galeri_xml_durum'] == '0' || $urun['galeri_xml_durum'] == null ) { $urun_galeri = $db->prepare("select * from urun_galeri where urun_id=:urun_id order by sira asc"); $urun_galeri->execute(array( 'urun_id' => $urun['id'] )); //todo xml } if($urun['galeri_xml_durum'] == '1' ) { $urun_galeri = $db->prepare("select * from urun_galeri where xml_urun_id=:xml_urun_id and xml_no=:xml_no order by sira asc"); $urun_galeri->execute(array( 'xml_urun_id' => $urun['xml_urun_id'], 'xml_no' => $urun['xml_no'] )); } ?> <?php $varyantCek = $db->prepare("select * from varyant where urun_id=:urun_id order by sira asc"); $varyantCek->execute(array( 'urun_id' => $urun['id'] )); $sayi = 1; ?> <?php //todo marka $markaCeo = $db->prepare("select * from urun_marka where durum='1' and baslik='$urun[marka]' "); $markaCeo->execute(); if($markaCeo->rowCount()>'0' ) { $markaRow = $markaCeo->fetch(PDO::FETCH_ASSOC); } ?> <?php if($urunListele->rowCount() == 0) { header('Location:'.$siteurl.''); exit; } ?> <title><?php echo ucwords_tr($urun['baslik']) ?> | <?php echo $ayar['site_baslik']?></title> <meta name="description" content="<?php echo"$urun[meta_desc]" ?>"> <meta name="keywords" content="<?php echo"$urun[tags]" ?>"> <meta name="news_keywords" content="<?php echo"$urun[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" /> <main class="main-content"> <!--== Start Page Header Area Wrapper ==--> <div class="page-header-area" data-bg-img="tema/img/photos/bg1.webp"> <div class="container pt--0 pb--0"> <div class="row"> <div class="col-12"> <div class="page-header-content"> <h2 class="title"><?php echo ucwords_tr($urun['baslik']) ?></h2> <nav class="breadcrumb-area"> <ul class="breadcrumb"> <li><a href="index.html"><?php echo $diller['anasayfa'] ?></a></li> <li class="breadcrumb-sep">//</li> <li><?php echo ucwords_tr($urun['baslik']) ?></li> </ul> </nav> </div> </div> </div> </div> </div> <!--== End Page Header Area Wrapper ==--> <!--== Start Product Single Area Wrapper ==--> <section class="product-area product-single-area"> <div class="container"> <div class="row"> <div class="col-12"> <div class="product-single-item"> <div class="row"> <div class="col-lg-6"> <!--== Start Product Thumbnail Area ==--> <div class="product-single-thumb"> <div class="swiper single-product-thumb single-product-thumb-slider"> <div class="swiper-wrapper"> <?php foreach ($urun_galeri as $galeri) { ?> <div class="swiper-slide"> <a class="lightbox-image" data-fancybox="gallery" href="images/product/<?=$galeri['gorsel']?>"> <img src="images/product/<?=$galeri['gorsel']?>" width="570" height="675" alt="Image-HasTech"> </a> </div> <?php } ?> </div> </div> <div class="product-single-swiper-wrap position-relative"> <div class="swiper single-product-nav single-product-nav-slider"> <div class="swiper-wrapper"> <?php $urun_gorsellerCek = $db ->prepare("select * from urun_galeri where urun_id='$urun[id]' order by sira asc"); $urun_gorsellerCek->execute(); while ($urungorsel = $urun_gorsellerCek->fetch(PDO::FETCH_ASSOC)){ ?> <div class="swiper-slide"> <img src="images/product/<?=$urungorsel['gorsel']?>" width="127" height="127" alt="Image-HasTech"> </div> <?php } ?> </div> </div> <!--== Add Swiper Arrows ==--> <div class="single-swiper-btn-wrap"> <div class="swiper-btn-prev"> <i class="fa fa-angle-left"></i> </div> <div class="swiper-btn-next"> <i class="fa fa-angle-right"></i> </div> </div> </div> </div> <!--== End Product Thumbnail Area ==--> </div> <div class="col-lg-6"> <!--== Start Product Info Area ==--> <div class="product-single-info"> <h3 class="main-title"><?=$urun['baslik']?></h3> <?php if($urun['eski_fiyat'] >'0') {?> <div class="prices" style="font-size:15px; font-weight: 400; font-family: 'Open Sans', Arial; color:#999; display: inline-block; text-decoration: line-through;"> <?php echo number_format($urun['eski_fiyat'], 2); ?> <span class="font-exlight"><?php echo $odemeayar['simge'] ?></span> </div> <?php } ?> <?php if($urun['fiyat'] ==!null && $urun['fiyat'] > '0') {?> <div class="prices"> <?php echo number_format($urun['fiyat'], 2); ?> <span class="font-exlight"><?php echo $odemeayar['simge'] ?></span> <?php if($urun['kdv'] == 1){?><span style="font-size:20px"> + KDV</span><?php }?> </div> <?php } ?> <div class="rating-box-wrap"> <?php if($prodayar['star_rate'] == 1) {?> <div class="rating-box"> <?php if($urun['star_rate'] == 0){ ?> <span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urun['star_rate'] == 1){ ?> <span style="color:#ffb400">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urun['star_rate'] == 2){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urun['star_rate'] == 3){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urun['star_rate'] == 4){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urun['star_rate'] == 5){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span> <?php }?> </div> <?php }?> </div> <?php if($markaCeo->rowCount()>'0' ) {?> <style> .product-detail-header-right-baslik img{ width: 100px; border: 1px dashed #EBEBEB; padding: 8px; box-sizing: border-box; } </style> <div class="product-detail-header-right-baslik" style="font-size: 16px ;"> <?php if($markaRow['gorsel'] == !null ) {?> <a> <img src="images/uploads/<?=$markaRow['gorsel']?>" alt="<?=$markaRow['baslik']?>" data-toggle="tooltip" data-placement="right" title="<?=$diller['marka-text-1']?>"> </a> <?php }else { ?> <?=$diller['marka-text-2']?> : <a style="color: #000;"><?=$markaRow['baslik']?></a> <?php }?> </div> <?php }?> <?php if($urun['spot'] ==!null) {?> <p><?=$urun['spot']?></p> <?php }?> <div class="product-single-meta"> <ul> <li><span><?=$diller['urun-kodu']?>:</span> <?=$urun['urun_kod']?></li> </ul> </div> <div class="product-detail-header-right-feature-info"> <strong><?=$diller['kategori']?></strong> : <?php if($proustcat['id'] == !0) {?> <a href="kategori-icerik/<?=$proustcat['id']?>/<?=seo($proustcat['baslik'])?>" style="color:#000;"><?php echo ucwords_tr($proustcat['baslik']) ?></a> <?php }?> <?php if($proustcat['id'] == !0) {?> <i class="fa fa-caret-right" style="margin: 0 5px 0 5px;"></i> <a href="kategori-icerik/<?=$procat['id']?>/<?=seo($procat['baslik'])?>" style="color:#000;"><?php echo ucwords_tr($procat['baslik']) ?></a> <?php }?> <?php if($proustcat['id'] == 0) {?> <a href="kategori-icerik/<?=$procat['id']?>/<?=seo($procat['baslik'])?>" style="color:#000;"><?php echo ucwords_tr($procat['baslik']) ?></a> <?php }?> </div> <?php if($odemeayar['stok_durum'] ==1) { ?> <div class="product-detail-header-right-feature-info"> <strong><?=$diller['stok-durumu']?></strong> : <?php if($urun['stok'] <= 0) {?> <i class="fa fa-times" style="color:red"></i> <?=$diller['stok-yok']?> <?php } ?> <?php if($urun['stok'] > 0) {?> <i class="fa fa-check" style="color:forestgreen"></i> <?=$diller['stok-mevcut']?> <?php if($odemeayar['stok_gorunum'] ==1) { ?> <strong>[ <?=$urun['stok']?> <?=$diller['stok-adet-yazisi']?> ]</strong> <?php }?> <?php } ?> </div> <?php } ?> <a target="_blank" href="https://api.whatsapp.com/send?phone=<?php echo boslukSil($ayar['site_whatsapp']) ?>&text=Merhabalar <?php echo $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?> Ürününü Sipariş Etmek İstiyorum." style="color:#FFF; text-decoration: none;"> <div class="product-detail-header-right-wp-button"> <i class="fa fa-whatsapp"></i> <?=$diller['whatsapp-siparis']?> </div> </a> <?php if($odemeayar['wp_siparis'] == 1 && $urun['stok'] > 0) {?> <div class="product-quick-action"> <button onclick="window.location.href='https://api.whatsapp.com/send?phone=<?php echo boslukSil($ayar['site_whatsapp']) ?>&text=Merhabalar <?php echo $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?> Ürününü Sipariş Etmek İstiyorum.'" type="button" class="btn-product-cart ml--0"> Sipariş Ver </button> </div> <?php } ?> </div> <!--== End Product Info Area ==--> </div> </div> </div> </div> <div class="product-review-tabs-content"> <?php if($urun['icerik'] == !null || $urun['ek_bilgi'] ==!null || $urun['embed']) { ?> <ul class="nav product-tab-nav" id="ReviewTab" role="tablist"> <?php if($urun['icerik'] == !null) {?> <li role="presentation"> <a class="active" id="information-tab" data-bs-toggle="pill" href="#information" role="tab" aria-controls="information" aria-selected="true"><?php echo $diller['urun-detay-aciklama'] ?></a> </li> <?php } ?> <?php if($urun['ek_bilgi'] == !null) {?> <li role="presentation"> <a id="description-tab" data-bs-toggle="pill" href="#description" role="tab" aria-controls="description" aria-selected="false"><?php echo $diller['urun-detay-ekbilgi'] ?></a> </li> <?php } ?> <?php if($urun['embed'] == !null) {?> <li role="presentation"> <a id="reviews-tab" data-bs-toggle="pill" href="#reviews" role="tab" aria-controls="reviews" aria-selected="false"><?php echo $diller['urun-detay-video'] ?></a> </li> <?php } ?> </ul> <?php }?> <div class="tab-content product-tab-content" id="ReviewTabContent"> <div class="tab-pane fade show active" id="information" role="tabpanel" aria-labelledby="information-tab"> <div class="product-information"> <?php $icerik = $urun['icerik']; $eski = "../images"; $yeni = "images"; $icerik = str_replace($eski, $yeni, $icerik); ?> <?=$icerik?> </div> </div> <div class="tab-pane fade" id="description" role="tabpanel" aria-labelledby="description-tab"> <div class="product-description"> <?php $ek_bilgi = $urun['ek_bilgi']; $eski = "../images"; $yeni = "images"; $ek_bilgi = str_replace($eski, $yeni, $ek_bilgi); ?> <?=$ek_bilgi?> </div> </div> <div class="tab-pane fade" id="reviews" role="tabpanel" aria-labelledby="reviews-tab"> <div class="product-review-content"> <?=$urun['embed']?> </div> </div> </div> </div> </div> </div> </section> <!--== End Product Single Area Wrapper ==--> <?php $urun_listele = $db->query("SELECT * FROM urun WHERE durum='1' and dil='$_SESSION[dil]' and kat_id IN ( SELECT id FROM urun_cat WHERE id = $urun[kat_id] OR ust_id = $urun[kat_id]) order by id desc limit 4"); $UrunAl = $urun_listele->fetchAll(PDO::FETCH_ASSOC); ?> <?php if($prodayar['detay_benzer_urun'] == 1 && $urun_listele->rowCount() > 1 ) {?> <!--== Start Product Area Wrapper ==--> <section class="product-area product-default-area"> <div class="container pt--0"> <div class="row"> <div class="col-12"> <div class="section-title shape-center text-center"> <h2 class="title"><?php echo $diller['benzer-urunler']?></h2> </div> </div> </div> <div class="row"> <?php foreach($UrunAl as $urunbenzer){ if($urunbenzer['stok'] > 0) { $pro_list_cat = $db->prepare("select * from urun_cat where id='$urunbenzer[kat_id]' and durum='1' and dil='$_SESSION[dil]' order by id desc limit 1 "); $pro_list_cat->execute(); $pro_cat = $pro_list_cat->fetch(PDO::FETCH_ASSOC); ?> <?php if($urun['id'] <> $urunbenzer['id'] ) { ?> <div class="col-sm-6 col-lg-3"> <!--== Start Product Item ==--> <div class="product-item"> <div class="product-thumb"> <a href="urun-icerik/<?php echo $urunbenzer['id'] ?>/<?php echo seo($urunbenzer['baslik']) ?>"> <img src="images/product/<?php echo $urunbenzer['gorsel'] ?>" width="270" height="320" alt="Image-HasTech"> </a> </div> <div class="product-info"> <h4 class="title"><a href="urun-icerik/<?php echo $urunbenzer['id'] ?>/<?php echo seo($urunbenzer['baslik']) ?>"><?php echo $pro_cat['baslik'] ?></a></h4> <?php if($prodayar['star_rate'] == 1) {?> <div class="product-main-box-rate"> <?php if($urunbenzer['star_rate'] == 0){ ?> <span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urunbenzer['star_rate'] == 1){ ?> <span style="color:#ffb400">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urunbenzer['star_rate'] == 2){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urunbenzer['star_rate'] == 3){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#CCC">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urunbenzer['star_rate'] == 4){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#CCC">★</span> <?php }?> <?php if($urunbenzer['star_rate'] == 5){ ?> <span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span><span style="color:#ffb400">★</span> <?php }?> </div> <?php }?> <div class="prices"> <?php if($urunbenzer['eski_fiyat']== null) { } else { ?> <span style="font-size:15px; font-weight: 400; font-family: 'Open Sans', Arial; color:#999; display: inline-block; text-decoration: line-through;"><?php echo number_format($urunbenzer['eski_fiyat'], 2); ?> <span class="font-exlight"><?php echo $odemeayar['simge'] ?></span></span> <?php }?> <?php if($urunbenzer['fiyat']== null || $urunbenzer['fiyat'] =='0') { } else { ?> <h3><?php echo number_format($urunbenzer['fiyat'], 2); ?> <span class="font-exlight"><?php echo $odemeayar['simge'] ?></span></h3> <?php }?> </div> </div> </div> <!--== End prPduct Item ==--> </div> <?php }?> <?php } ?> <?php } ?> </div> </div> </section> <?php }?> <!--== End Product Area Wrapper ==--> </main> <?php include "includes/footer.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