-
Notifications
You must be signed in to change notification settings - Fork 0
/
odeme.php
129 lines (94 loc) · 4.7 KB
/
odeme.php
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
<?php
require_once 'header.php';
$urunsor = $db->prepare("SELECT urun.*,kullanici.* FROM urun INNER JOIN kullanici ON urun.kullanici_id=kullanici.kullanici_id where urun_id=:id and urun_durum=:durum");
$urunsor->execute(array(
'id' => $_POST['urun_id'],
'durum' => 1
));
$uruncek = $urunsor->fetch(PDO::FETCH_ASSOC);
?>
<div class="inner-banner-area">
<div class="container">
<div class="inner-banner-wrapper">
<h2 style="color:white;">Ödeme Yapılacak Ürün: <?php echo $uruncek['urun_ad'] ?></h2>
</div>
</div>
</div>
<div class="pagination-area bg-secondary">
<div class="container">
<div class="pagination-wrapper">
</div>
</div>
</div>
<div class="product-details-page bg-secondary">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="inner-page-main-body">
<div class="single-banner">
<table id="cart" class="table table-hover table-condensed">
<thead>
<tr>
<th style="width:50%">Ürün Bilgisi</th>
<th style="width:10%">Fiyat</th>
<th style="width:22%" class="text-center">Satıcı</th>
<th style="width:10%"></th>
</tr>
</thead>
<tbody>
<tr>
<td data-th="Product">
<div class="row">
<div class="col-sm-2 hidden-xs"><img style="width: 60px; height: 60px; "
src="<?php echo $uruncek['urunfoto_resimyol']; ?>"
alt="<?php echo $uruncek['urun_ad']; ?>"
class="img-responsive"/></div>
<div class="col-sm-10">
<h4 class="nomargin"><?php echo $uruncek['urun_ad']; ?></h4>
<p><?php echo mb_substr($uruncek['urun_detay'], 0, 150, 'UTF-8'); ?></p>
</div>
</div>
</td>
<td data-th="Price"><?php echo $uruncek['urun_fiyat']; ?> TL</td>
<td data-th="Subtotal"
class="text-center"><?php echo $uruncek['kullanici_ad'] . " " . $uruncek['kullanici_soyad'] ?></td>
<td></td>
</tr>
</tbody>
<tfoot>
<tr class="visible-xs">
<td class="text-center"><strong>Total 1.99</strong></td>
</tr>
<tr>
<td>
<button onclick="geridon()" class="btn btn-warning"><i class="fa fa-angle-left"></i>
Geri Dön
</button>
</td>
<td colspan="2" class="hidden-xs"></td>
<form action="nedmin/netting/kullanici.php" method="POST">
<input type="hidden" name="kullanici_idsatici"
value="<?php echo $uruncek['kullanici_id'] ?>">
<input type="hidden" name="urun_id" value="<?php echo $uruncek['urun_id'] ?>">
<input type="hidden" name="urun_fiyat" value="<?php echo $uruncek['urun_fiyat'] ?>">
<td>
<button name="sipariskaydet" type="submit" class="btn btn-success btn-block">
Siparişi Tamamla <i class="fa fa-angle-right"></i></button>
</td>
</form>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
<?php
require_once 'footer.php';
?>
<script type="text/javascript">
function geridon() {
window.history.back();
}
</script>