File size: 2,077 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
<?php 
include 'admin/controller/config.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);

$urunresimsor=$db->prepare("SELECT * from resim where resim_urun=:resim_urun");
$urunresimsor->execute(array(
	'resim_urun' => $uruncek['urun_id']
));
?>
<div class="ajax-quick-view">
	<div class="quick-view-content">
		<div class="product">
			<div class="row">
				<div class="col-md-5">
					<div class="product-image">
						<div class="carousel" data-items="1">
							<?php while($urunresimcek=$urunresimsor->fetch(PDO::FETCH_ASSOC)) { ?>
								<img src="admin/<?php echo $urunresimcek['resim_link'] ?>" alt="<?php echo $uruncek['urun_baslik']; ?>">
							</a>
							<?php } ?>
						</div>
					</div>
				</div>
				<div class="col-md-7">
					<div class="product-description">
						<div class="product-title">
							<h3><?php echo $uruncek['urun_baslik']; ?></h3>
						</div>
						<div class="product-price"><ins><i class="fa fa-try"></i><?php echo $uruncek['urun_fiyat']; ?></ins>
						</div>
						

						<div class="seperator m-b-10"></div>
						<?php echo $uruncek['urun_aciklama']; ?>
						
						<div class="seperator m-t-20 m-b-10"></div>

					</div>
					
					<div class="m-t-20">
						<!-- Form -->
						<form method="post" action="satin-al">
							<input type="hidden" name="urun_adi" value="<?php echo $uruncek['urun_baslik']; ?>">
							<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-6">
								<!-- Form Group -->
								<div class="form-group">
									<button name="siparisver" type="submit" class="btn"><i class="fa fa-shopping-cart"></i>Satın Al</button>

								</div><!-- /End Form Group -->
							</div><!-- /End col-md-12 -->


						</form><!-- /End Form -->
					</div>

				</div>


			</div>

		</div>
	</div>
</div>