-
Notifications
You must be signed in to change notification settings - Fork 0
/
urunlerim.php
112 lines (67 loc) · 3.59 KB
/
urunlerim.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
<?php
require_once 'header.php';
islemkontrol();
?>
<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">Ürünleriniz</h2>
<div class="personal-info inner-page-padding">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Ürün Eklenme Tarihi</th>
<th scope="col">Ürün adı</th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<?php
$urunsor = $db->prepare("SELECT * FROM urun where kullanici_id=:kullanici_id order by urun_zaman DESC");
$urunsor->execute(array(
'kullanici_id' => $_SESSION['userkullanici_id']
));
$say = 0;
while ($uruncek = $urunsor->fetch(PDO::FETCH_ASSOC)) {
$say++ ?>
<tr>
<th scope="row"><?php echo $say ?></th>
<td><?php echo $uruncek['urun_zaman'] ?></td>
<td><?php echo $uruncek['urun_ad'] ?></td>
<td><a href="urun-duzenle?urun_id=<?php echo $uruncek['urun_id'] ?>">
<button class="btn btn-primary btn-xs">Düzenle</button>
</a></td>
<td>
<?php if ($uruncek['urun_durum'] == 0) { ?>
<button class="btn btn-warning btn-xs">Onay Bekliyor</button>
<?php } else { ?>
<a onclick="return confirm('Bu ürünü silmek istiyormusunuz? \n İşlem geri alınamaz...')"
href="nedmin/netting/adminislem.php?urunsil=ok&urun_id=<?php echo $uruncek['urun_id'] ?>&urunfoto_resimyol=<?php echo $uruncek['urunfoto_resimyol'] ?>">
<button class="btn btn-danger btn-xs">Sil</button>
</a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php require_once 'footer.php'; ?>