📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
reklamtabelascripti.demodesign.com.tr
/
panel
/
sayfalar
📝
musteri_yorumlari.php
← Geri Dön
<?php echo !defined("GUVENLIK") ? die("Erisim Engellendi!.") : null;?> <?php if(g('islem')=="sil") { $id = g('id'); $resim_bul=Sonuc(Sorgu("SELECT * FROM musteriyorum WHERE id='$id'")); $resim_sil=unlink("../uploads/videolar/".$resim_bul->resim); $sayfa_sil_sorgu = Sorgu("DELETE FROM musteriyorum WHERE id='$id'"); $bilgis = ' <div class="alert alert-success"> Müşteri Yorumu Başarı ile Silinmiştir ! </div>' ; } ?> <?php $isim = p('isim'); $email = p('email'); $mesaj = p('mesaj'); $d_id = p('id'); $durum = p('durum'); $t = date("Y-m-d H:i:s"); $tarih = tarih($t); if(empty($isim) or empty($email) or empty($mesaj) ){ }else{ $iletisim = Sorgu("UPDATE musteriyorum SET isim = '$isim', email = '$email', mesaj = '$mesaj', durum = '$durum', tarih = '$tarih' where id= '$d_id'"); if($iletisim){ $bilgis = ' <div class="alert alert-success alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> Müşteri Yorumu Başarı ile Güncellenmiştir ! </div> ' ; echo"<meta http-equiv=\"refresh\" content=\"1;\">"; } } ?> <!-- Start content --> <div class="content"> <div class="container"> <!-- Page-Title --> <div class="row"> <div class="col-sm-12"> <h4 class="page-title">Müşteri Yorumları</h4> <ol class="breadcrumb"> <li><a href="index.html">Anasayfa</a></li> <li><a href="musteri-yorumlari.html">Müşteri Yorumları</a></li> <li class="active">Gelen Yorumlar</li> </ol> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="card-box"> <?php echo $bilgis;?> <table id="demo-foo-filtering" class="table table-striped toggle-circle m-b-0" data-page-size="20"> <thead> <tr> <th data-toggle="true">Sıra</th> <th>Gönderen Adı</th> <th>E-Posta Adresi</th> <th>Durum</th> <th style="width:150px">İşlem</th> </tr> </thead> <div class="form-inline m-b-20"> <div class="row"> <div class="col-sm-6 text-xs-center"> <div class="form-group"> <label class="control-label m-r-5">Durum</label> <select id="demo-foo-filter-status" class="form-control input-sm"> <option value="">Tümünü Göster</option> <option value="Yayınlandı">Yayınlandı</option> <option value="Yayınlanmadı">Yayınlanmadı</option> </select> </div> </div> <div class="col-sm-6 text-xs-center text-right"> <div class="form-group"> <input id="demo-foo-search" type="text" placeholder="Arama" class="form-control input-sm" autocomplete="on"> </div> </div> </div> </div> <?php $SayfaSorgu = Sorgu("SELECT * FROM musteriyorum ORDER BY id DESC"); $say = 1; while($SayfaSonuc = Sonuc($SayfaSorgu)){?> <tr> <td><?php echo $say++ ?></td> <th><?php echo $SayfaSonuc->isim; ?></th> <th><?php echo $SayfaSonuc->email; ?></th> <td> <?php if($SayfaSonuc->durum=='1'){?> <span class="btn btn-success btn-custom btn-xs waves-effect waves-light">Yayınlandı</span> <?php } else { ?> <span class="btn btn-danger btn-custom btn-xs waves-effect waves-light">Yayınlanmadı</span> <?php } ?> </td> <td> <a class="btn btn-danger btn-custom btn-xs waves-effect waves-light" href="?islem=sil&id=<?php echo $SayfaSonuc->id;?>" onclick="return confirm('Silmek istediğinize emin misiniz ?')" id="remove-all"><i class="fa fa-trash"></i> Sil</a> <a href="musteri-oku.html?islem=duzenle&id=<?php echo $SayfaSonuc->id;?>" class="btn btn-info btn-custom btn-xs waves-effect waves-light" title="Düzenle" id="add-sticky" data-toggle="modal" data-target="#panel-modal<?php echo $SayfaSonuc->id;?>"> <i class="fa fa-pencil"></i> Düzenle </a> <form action="" method="Post"> <div id="panel-modal<?php echo $SayfaSonuc->id;?>" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;"> <div class="modal-dialog"> <div class="modal-content p-0 b-0"> <div class="panel panel-color panel-primary"> <div class="panel-heading"> <button type="button" class="close m-t-5" data-dismiss="modal" aria-hidden="true">×</button> <h3 class="panel-title">Mesaj Çıktısı</h3> </div> <div class="panel-body"> <div class="form-group"> <label> <span class="required">*</span>Adınız, Soyadı: </label> <input value="<?php echo $SayfaSonuc->isim;?>" name="isim" type="text" class="wpcf7-text form-control" id="contact-name" required > </div> <div style="display:none;" class="form-group"> <label> <span class="required">*</span>Adınız, Soyadı: </label> <input value="<?php echo $SayfaSonuc->id;?>" name="id" type="text" class="wpcf7-text form-control" id="contact-name" required > </div> <div class="form-group"> <label> <span class="required">*</span> E-Posta Adresi : </label> <input value="<?php echo $SayfaSonuc->email;?>" name="email" class="wpcf7-text form-control" type="email" id="contact-email" required> </div> <div class="form-group wpcf7-message"> <label> Mesajı <span class="italic"></span>: </label> <textarea name="mesaj" class="wpcf7-textarea form-control" id="contact-message" rows="4"><?php echo $SayfaSonuc->mesaj;?></textarea> </div> <div class="form-group wpcf7-message"> <?php if($_GET['islem']=="duzenle"){?> <div class="form-group"> <label class="control-label">Durumu</label> <span class="clearfix"></span> <input type="checkbox" name="durum" value="0" <?php if($SayfaSonuc->durum == '0') {?> checked <?php } ?> data-plugin="switchery" data-switchery="true" data-color="#1AB394" data-secondary-color="#ED5565" /> </div> <?php }else{?> <div class="form-group"> <label class="control-label">Durumu</label> <span class="clearfix"></span> <input type="checkbox" name="durum" value="1" <?php if($SayfaSonuc->durum == '1') {?> checked <?php } ?> data-plugin="switchery" data-switchery="true" data-color="#1AB394" data-secondary-color="#ED5565" /> </div><?php } ?> </div> <div class="form-group wpcf7-message"> </div> <input class="btn btn-danger add-warning-noti" type="submit" value="GÖNDER" /> </div> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div> </form> </td> </tr> <?php } ?> </tbody> <tfoot> <tr> <td colspan="5"> <div class="text-right"> <ul class="pagination pagination-split m-t-30 m-b-0"></ul> </div> </td> </tr> </tfoot> </table> </div> </div> </div> </div> </div> <!-- ============================================================== --> <!-- End Right content here --> <!-- ============================================================== --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- END wrapper --> </html>
💾 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