|
|
<?php |
|
|
include 'include/menu.php'; |
|
|
$urunsor=$db->prepare("SELECT * from urunler where urun_id=:urun_id"); |
|
|
$urunsor->execute(array( |
|
|
'urun_id' => $_GET['urun_id'] |
|
|
)); |
|
|
$uruncek=$urunsor->fetch(PDO::FETCH_ASSOC);?> |
|
|
<title><?php echo $uruncek['urun_title'] ?></title> |
|
|
<meta name="description" content="<?php echo $uruncek['urun_descr'] ?>"> |
|
|
<meta name="keywords" content="<?php echo $uruncek['urun_keyword'] ?>"> |
|
|
</head> <?php |
|
|
$urunresimsor=$db->prepare("SELECT * from resim where resim_urun=:resim_urun"); |
|
|
$urunresimsor->execute(array( |
|
|
'resim_urun' => $uruncek['urun_id'] |
|
|
)); |
|
|
|
|
|
|
|
|
if ( isset( $_POST[ 'sepetle' ] ) ) |
|
|
{ |
|
|
|
|
|
ob_start(); |
|
|
session_start(); |
|
|
$update = array( |
|
|
'id' => $_POST['urun_id'], |
|
|
'paket' => $_POST['urun_paket'], |
|
|
'urun' => $_POST['urun_adi'], |
|
|
'adet' => $_POST['urun_adet'], |
|
|
'fiyat' => $_POST['urun_fiyat'] |
|
|
) ; |
|
|
|
|
|
$_SESSION['urunler'][]=$update; |
|
|
|
|
|
|
|
|
if ( $update ) |
|
|
{ |
|
|
|
|
|
Header( "Location:sepet" ); |
|
|
} |
|
|
else |
|
|
{ |
|
|
|
|
|
Header( "Location:sepet" ); |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
|
|
|
<!-- Page title --> |
|
|
<section class="p-t-100 p-b-50 text-light" id="page-title" data-parallax-image="admin/assets/img/genel/data.jpg"> |
|
|
<div id="particles-js" class="particles text-light"></div> |
|
|
<div class="container"> |
|
|
<div class="breadcrumb"> |
|
|
<ul> |
|
|
<li><a href="<?php echo $settingsprint['ayar_siteurl']; ?>">AnaSayfa</a> </li> |
|
|
<li><a href="urunler">Ürünler</a></li> |
|
|
<li class="active"><?php echo $uruncek['urun_baslik']; ?></li> |
|
|
</ul> |
|
|
</div> |
|
|
<div class="page-title"> |
|
|
<h1><?php echo $uruncek['urun_baslik']; ?></h1> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
<!-- end: Page title --> |
|
|
<!-- SHOP PRODUCT PAGE --> |
|
|
<section id="product-page" class="product-page p-b-0"> |
|
|
<div class="container"> |
|
|
<div class="product"> |
|
|
<div class="row m-b-40"> |
|
|
<div class="col-md-7"> |
|
|
<div class="product-image"> |
|
|
<!-- Carousel slider --> |
|
|
<div class="carousel dots-inside dots-dark arrows-visible arrows-dark" data-items="1" data-loop="true" data-autoplay="true" data-animate-in="fadeIn" data-animate-out="fadeOut" data-autoplay-timeout="2500" data-lightbox="gallery"> |
|
|
<?php while($urunresimcek=$urunresimsor->fetch(PDO::FETCH_ASSOC)) { |
|
|
$ResimSay= $urunresimsor-> Rowcount(); |
|
|
if ($ResimSay>=1) { |
|
|
?> |
|
|
<img alt="<?php echo $uruncek['urun_baslik']; ?>" src="admin/<?php echo $urunresimcek['resim_link'] ?>"> |
|
|
<img alt="<?php echo $uruncek['urun_baslik']; ?>" src="admin/<?php echo $urunresimcek['resim_link'] ?>"> |
|
|
<?php |
|
|
} else { |
|
|
?> |
|
|
<img alt="<?php echo $uruncek['urun_baslik']; ?>" src="admin/<?php echo $urunresimcek['resim_link'] ?>"> |
|
|
<?php } } ?> |
|
|
</div> |
|
|
<!-- Carousel slider --> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="col-md-5"> |
|
|
<div class="product-description"> |
|
|
<div class="product-title"> |
|
|
<h3><?php echo $uruncek['urun_baslik']; ?></h3> |
|
|
</div> |
|
|
<br> |
|
|
<br> |
|
|
<?php if ($widgetprint['widget_ufiyat']==1) { ?> |
|
|
<div class="product-price"><ins><del><i class="fa fa-try"></i><?php echo $uruncek['urun_efiyat']; ?></del></ins><ins style="font-size: 40px;"><i class="fa fa-try"></i><?php echo $uruncek['urun_fiyat']; ?></ins> |
|
|
</div> |
|
|
<?php } ?> |
|
|
|
|
|
<div class="post-meta"> |
|
|
<span class="post-meta-date"><i class="fa fa-share-alt"></i><b>PAYLAŞ</b></span> |
|
|
<div class="post-meta-share"> |
|
|
<a class="btn btn-xs btn-slide btn-facebook" href="https://www.facebook.com/sharer/sharer.php?u=http://<? echo $_SERVER[ 'SERVER_NAME' ] . $_SERVER[ 'REQUEST_URI' ]; ?>"> |
|
|
<i class="fa fa-facebook"></i> |
|
|
<span>Facebook</span> |
|
|
</a> |
|
|
<a class="btn btn-xs btn-slide btn-twitter" href="https://twitter.com/intent/tweet?url=http://<? echo $_SERVER[ 'SERVER_NAME' ] . $_SERVER[ 'REQUEST_URI' ]; ?>" data-width="100"> |
|
|
<i class="fa fa-twitter"></i> |
|
|
<span>Twitter</span> |
|
|
</a> |
|
|
<a class="btn btn-xs btn-slide btn-linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=<? echo $_SERVER[ 'SERVER_NAME' ] . $_SERVER[ 'REQUEST_URI' ]; ?>" data-width="100"> |
|
|
<i class="fa fa-linkedin"></i> |
|
|
<span>linkedin</span> |
|
|
</a> |
|
|
<a class="btn btn-xs btn-slide btn-googleplus" href="https://plus.google.com/share?url=<? echo $_SERVER[ 'SERVER_NAME' ] . $_SERVER[ 'REQUEST_URI' ]; ?>" data-width="100"> |
|
|
<i class="fa fa-google"></i> |
|
|
<span>Google+ </span> |
|
|
</a> |
|
|
</div> |
|
|
</div> |
|
|
<!-- Shop item Meta --> |
|
|
<div class="shop-item-meta m-t-10"> |
|
|
<span class="item-meta-product-code"> |
|
|
<b>Ürün Kodu:</b> #00<?php echo $uruncek['urun_id']; ?> |
|
|
</span><br> |
|
|
<?php if (empty($uruncek['urun_admin'])) { } else {?> |
|
|
<span class="item-meta-product-code"> |
|
|
<b>Admin Kullanıcı:</b> <?php echo $uruncek['urun_auser']; ?> |
|
|
</span><br> |
|
|
<span class="item-meta-product-code"> |
|
|
<b>Admin Şifre:</b> <?php echo $uruncek['urun_apass']; ?> |
|
|
</span> |
|
|
<?php } ?> |
|
|
</div><!-- /End Shop item Meta --> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="seperator m-b-10 m-t-10"></div> |
|
|
<div class="row"> |
|
|
|
|
|
|
|
|
<?php if ($widgetprint['widget_usatinal']==1) { ?> |
|
|
<!-- Form --> |
|
|
<form method="post" action=""> |
|
|
<input type="hidden" name="urun_adi" value="<?php echo $uruncek['urun_baslik']; ?>"> |
|
|
<input type="hidden" name="urun_paket" value="<?php echo $uruncek['urun_paket']; ?>"> |
|
|
<input type="hidden" name="urun_fiyat" value="<?php echo $uruncek['urun_fiyat']; ?>"> |
|
|
<input type="hidden" name="urun_id" value="<?php echo $uruncek['urun_id']; ?>"> |
|
|
|
|
|
<!-- col-md-12 --> |
|
|
<div class="col-md-12"> |
|
|
<!-- Form Group --> |
|
|
<div class="form-group"> |
|
|
<input style="width: 50px; height: 37px;padding-bottom: 5px; padding-top: 7px;" type="number" value="1" name="urun_adet"> |
|
|
<button name="sepetle" type="submit" class="btn"><i class="fa fa-shopping-cart"></i>Sepete Ekle</button> |
|
|
|
|
|
</div><!-- /End Form Group --> |
|
|
</div><!-- /End col-md-12 --> |
|
|
|
|
|
|
|
|
</form><!-- /End Form --> |
|
|
<?php } ?> |
|
|
<!-- col-md-12 --> |
|
|
<div class="col-md-4"> |
|
|
<!-- Form Group --> |
|
|
<div class="form-group"> |
|
|
<a target="_blank" href="<?php echo $uruncek['urun_demo']; ?>" name="siparisver" type="submit" class="btn"><i class="fa fa-eye"></i>DEMO SİTE</a> |
|
|
|
|
|
</div><!-- /End Form Group --> |
|
|
</div><!-- /End col-md-12 --> |
|
|
<!-- col-md-12 --> |
|
|
<div class="col-md-4"> |
|
|
<!-- Form Group --> |
|
|
<div class="form-group"> |
|
|
<a target="_blank" href="<?php echo $uruncek['urun_admin']; ?>" name="siparisver" type="submit" class="btn"><i class="fa fa-user-circle-o"></i>ADMİN DEMO </a> |
|
|
|
|
|
</div><!-- /End Form Group --> |
|
|
</div><!-- /End col-md-12 --> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="tabs-1" class="tabs simple"> |
|
|
<ul class="tabs-navigation"> |
|
|
<li class="active"><a href="#tab1"><i class="fa fa-align-justify"></i>AÇIKLAMA</a> </li> |
|
|
</ul> |
|
|
<div class="tabs-content"> |
|
|
<div class="tab-pane active" id="tab1"> |
|
|
<p><?php echo $uruncek['urun_aciklama']; ?></p> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<!--BENZER ÜRÜNLER --> |
|
|
<section class="p-t-0 p-b-50"> |
|
|
<div class="container"> |
|
|
<!--Shop products Carousel --> |
|
|
<div class="hr-title hr-long center"><abbr>SON EKLENEN <?php echo $widgetprint['widget_burun']; ?></abbr> </div> |
|
|
<div class="carousel" data-items="3" data-margin="20"> |
|
|
<?php |
|
|
$urunsor=$db->prepare("SELECT * from urunler where urun_paket='0' order by urun_id DESC Limit 10"); |
|
|
$urunsor->execute(); |
|
|
while($uruncek=$urunsor->fetch(PDO::FETCH_ASSOC)) { |
|
|
|
|
|
$resimsor=$db->prepare("SELECT * from resim where resim_urun=:resim_urun Limit 2"); |
|
|
$resimsor->execute(array( |
|
|
'resim_urun' => $uruncek['urun_id'] |
|
|
)); |
|
|
|
|
|
?> |
|
|
<div class="product"> |
|
|
<div class="product-image"> |
|
|
<?php while($resimcek=$resimsor->fetch(PDO::FETCH_ASSOC)) { ?> |
|
|
<a href="<?=seo('urunler-'.$uruncek["urun_baslik"]).'-'.$uruncek["urun_id"]?>" title="<?php echo $uruncek['urun_baslik']; ?>"><img alt="<?php echo $uruncek['urun_baslik']; ?>" src="admin/<?php echo $resimcek['resim_link'] ?>"> |
|
|
</a> |
|
|
<?php } if ($widgetprint['widget_ufiyat']==1) { ?> |
|
|
<span style="border-radius: 57%; |
|
|
color: #ffffff; |
|
|
font-size: 20px; |
|
|
font-weight: 600; |
|
|
height: 42px; |
|
|
right: 10px; |
|
|
line-height: 42px; |
|
|
position: absolute; |
|
|
text-align: center; |
|
|
text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.14); |
|
|
top: 10px; |
|
|
width: 72px; |
|
|
z-index: 5;" class="product-hot"><i class="fa fa-try"></i><?php echo $uruncek['urun_fiyat']; ?></span> |
|
|
<?php } ?> |
|
|
<div class="col-md-6"> |
|
|
<div class="product-overlay"> |
|
|
<a style="background: -webkit-linear-gradient(left,#9357cc 0%,#2989d8 50%,#2cc99d 100%) !important;" target="_blank" href="<?php echo $uruncek['urun_demo']; ?>" title="<?php echo $uruncek['urun_baslik']; ?>" ><i class="fa fa-eye"></i> DEMO</a> |
|
|
</div> |
|
|
</div> |
|
|
<div class="col-md-6"> |
|
|
<div class="product-overlay"> |
|
|
<a style="background: -webkit-linear-gradient(left,#9357cc 0%,#2989d8 50%,#2cc99d 100%) !important;" href="<?=seo('urunler-'.$uruncek["urun_baslik"]).'-'.$uruncek["urun_id"]?>" ><i class="fa fa-search"></i> DETAY</a> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="product-description"> |
|
|
<div class="product-category"><hr></div> |
|
|
<div class="product-title"> |
|
|
<h4><a href="<?=seo('urunler-'.$uruncek["urun_baslik"]).'-'.$uruncek["urun_id"]?>" title="<?php echo $uruncek['urun_baslik']; ?>"><?php |
|
|
$urunkarakter = strlen( $uruncek['urun_baslik'] ); |
|
|
if ( $urunkarakter > 30 ) |
|
|
{ |
|
|
echo mb_substr($uruncek['urun_baslik'], 0,30, 'UTF-8'); |
|
|
} else { |
|
|
echo $uruncek['urun_baslik']; |
|
|
} ?></a></h4> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<?php } ?> |
|
|
</div> |
|
|
<!--END: Shop products Carousel --> |
|
|
</div> |
|
|
</section> |
|
|
<!-- end:BENZER ÜRÜNLER --> |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
<!-- end: SHOP PRODUCT PAGE --> |
|
|
|
|
|
|
|
|
<?php include 'include/footer.php'; ?> |
|
|
|