-
Notifications
You must be signed in to change notification settings - Fork 0
/
siparislerim.php
92 lines (55 loc) · 2.68 KB
/
siparislerim.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
<?php
require_once 'header.php';
?>
<div class="pagination-area bg-secondary">
<div class="container">
<div class="pagination-wrapper">
</div>
</div>
</div>
<div class="settings-page-area bg-secondary section-space-bottom">
<div class="container">
<div class="row settings-wrapper">
<?php require_once 'hesap-sidebar.php' ?>
<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12">
<div class="settings-details tab-content">
<div class="tab-pane fade active in" id="Personal">
<h2 class="title-section">Siparişlerim</h2>
<div class="personal-info inner-page-padding">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Sipariş Tarihi</th>
<th scope="col">Sipariş Numarası</th>
<th scope="col">Sipariş Detay</th>
</tr>
</thead>
<tbody>
<?php
$siparissor = $db->prepare("SELECT * FROM siparis where kullanici_id=:kullanici_id order by siparis_zaman DESC");
$siparissor->execute(array(
'kullanici_id' => $_SESSION['userkullanici_id']
));
$say = 0;
while ($sipariscek = $siparissor->fetch(PDO::FETCH_ASSOC)) {
$say++ ?>
<tr>
<th scope="row"><?php echo $say ?></th>
<td><?php echo $sipariscek['siparis_zaman'] ?></td>
<td><?php echo $sipariscek['siparis_id'] ?></td>
<td><a href="siparis-detay?siparis_id=<?php echo $sipariscek['siparis_id'] ?>">
<button class="btn btn-primary btn-xs">Düzenle</button>
</a></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require_once 'footer.php'; ?>