File size: 10,568 Bytes
bdb1674 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
<?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'; ?>
|