📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv3.demodesign.com.tr
/
yonetim
📝
sepetler.php
← Geri Dön
<?php if (isset($_GET['sill'])) { $id = intval($_GET['sill']); $verisil = $DB->prepare("delete from sepet where sepetId='$id'"); $verisil->execute(array($id)); if ($verisil) { $not = ' <div class="alert alert-warning"> <button class="close" data-dismiss="alert"><i class="pci-cross pci-circle"></i></button> <strong>Veri Silindi !</strong> </div>' ; }} ?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Sepet Yönetimi </h1> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.html"><i class="fa fa-home"></i> Anasayfa</a></li> <li class="breadcrumb-item active"> Sepet Yönetimi</li> </ol> <?=$not?> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="box box-solid bg-dark"> <!-- /.box-header --> <div class="box-body"> <div class="table-responsive"> <table id="example" class="table table-bordered table-hover display nowrap margin-top-10 w-p100"> <thead> <tr> <th>İP ADRESİ</th> <th>MÜŞTERİ DURUMU</th> <th>EPOSTA ADRESİ</th> <th>SEPET TUTARI</th> <th>DÜZENLE</th> </tr> </thead> <tbody> <?php $sayfa = intval(@$_GET['sayfa']); if (!$sayfa) { $sayfa = 1; } $bak = $DB->prepare("select * from sepet "); $bak->execute(array()); $toplam= $bak->rowCount(); $limit = 100000; $goster = $sayfa*$limit-$limit; $sayfasayisi = ceil($toplam/$limit); $forlimit = 2; $pr = $DB->query("select * from sepet group BY ip DESC limit $goster,$limit")->fetchAll(PDO::FETCH_ASSOC); foreach ($pr as $tr) { $baks = $tr['ip']; $sepetkontrol = $DB->prepare("SELECT * FROM sepet WHERE ip=?"); $sepetkontrol->execute(array($baks)); if ($sepetkontrol->rowCount()) { foreach ($sepetkontrol as $value) { $urFiyat += ($value['fiyat']+$value['ekfiyat'])* $value['urunAdet']; } ?> <tr> <td><?php echo $tr['ip']?></td> <td> <?php if($tr['uyeId']==''){?> <div class="label label-danger">Misafir</div> <?php } else { ?> <?php $uyebak = $tr['uyeId']; $ok = $DB->query("select * from uyeler where durum='1' and uyeId='$uyebak' order by uyeId asc")->fetchAll(PDO::FETCH_ASSOC); foreach($ok as $ubak){;?> <a href="uyelerekle.html?ok=gn&uyeId=<?php echo $ubak['uyeId']?>" target="_blank"><div class="label label-success"><?php echo $ubak['isim']?></div></a> <?php } ?> <?php } ?> </td> <td> <?php if($tr['uyeId']==''){?> <div>Eposta bulunamadı</div> <?php } else { ?> <?php $uyebak = $tr['uyeId']; $ok = $DB->query("select * from uyeler where durum='1' and uyeId='$uyebak' order by uyeId asc")->fetchAll(PDO::FETCH_ASSOC); foreach($ok as $ubazk){;?> <div><?php echo $ubazk['email']?></div> <?php } ?> <?php } ?> </td> <td> <b><?php $topFiyat = $urFiyat; echo $ytutar = number_format($topFiyat,2,",",".");?> TL</b> </td> <td> <a onclick="return confirm('Silmek istediğinize emin misiniz ?')" href="?sill=<?php echo $tr['sepetId']; ?>" class="btn btn-sm btn-danger" data-toggle="tooltip" data-original-title="Sil"><i class="ti-trash" aria-hidden="true"></i></a> <?php if($tr['uyeId']==''){?> <a onclick="return confirm('Eposta olmadığı için bildirim yapılamaz.')" class="btn btn-sm btn-success" data-toggle="tooltip" data-original-title="Düzenle"><i class="fa fa-edit" aria-hidden="true"></i></a> <?php } else { ?> <a href="sepetlerekle.html?ok=gn&id=<?php echo $tr['sepetId']?>" class="btn btn-sm btn-success" data-toggle="tooltip" data-original-title="Düzenle"><i class="fa fa-edit" aria-hidden="true"></i></a> <?php } ?> </tr> <?php }} ?> </tbody> </table> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper -->
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula