📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
reklamtabelascripti.demodesign.com.tr
/
panel
/
sayfalar
📝
teklifler.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 teklif WHERE id='$id'")); $resim_sil=unlink("../uploads/videolar/".$resim_bul->resim); $sayfa_sil_sorgu = Sorgu("DELETE FROM teklif WHERE id='$id'"); $bilgis = ' <div class="alert alert-success"> Teklif Mesajı Başarı ile Silinmiştir ! </div>' ; } ?> <?php $okundu = p('okundu'); $d_id = p('id'); if(empty($d_id)){ }else{ $iletisim = Sorgu("UPDATE teklif SET okundu = '$okundu' 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> Teklif Mesajı 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">Teklifler</h4> <ol class="breadcrumb"> <li><a href="index.html">Anasayfa</a></li> <li><a href="Teklifler.html">Teklifler</a></li> <li class="active">Gelen Kutusu</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="10"> <thead> <tr> <th data-toggle="true">Sıra</th> <th>Gönderen Adı</th> <th>E-Posta Adresi</th> <th>Telefon</th> <th>Konu</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="Okundu">Okundu</option> <option value="Okunmadı">Okunmadı</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 teklif ORDER BY id DESC"); $say = 1; while($SayfaSonuc = Sonuc($SayfaSorgu)){?> <tr> <td><?php echo $say++ ?></td> <th><?php echo $SayfaSonuc->ad_soyad; ?></th> <th><?php echo $SayfaSonuc->email; ?></th> <th><?php echo $SayfaSonuc->tel; ?></th> <th><?php echo $SayfaSonuc->hizmet; ?></th> <td> <?php if($SayfaSonuc->okundu=='1'){?> <span class="btn btn-success btn-custom btn-xs waves-effect waves-light">Okundu</span> <?php } else { ?> <span class="btn btn-danger btn-custom btn-xs waves-effect waves-light">Okunmadı</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="mesaj-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> <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">Teklif Çıktısı</h3> </div> <div class="panel-body"> <form action="" method="Post"> <div class="form-group"> <label> <span class="required">*</span>Adınız, Soyadı: </label> <input value="<?php echo $SayfaSonuc->ad_soyad;?>" 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>Telefon Numarası : </label> <input value="<?php echo $SayfaSonuc->tel;?>" name="numara" type="phone" 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"> <label> <span class="required">*</span> Hizmet : </label> <input value="<?php echo $SayfaSonuc->hizmet;?>" name="konu" type="text" class="wpcf7-text form-control" id="contact-name" required > </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="okundu" value="0" <?php if($SayfaSonuc->okundu == '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="okundu" value="1" <?php if($SayfaSonuc->okundu == '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