📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
takiaksesuar.demodesign.com.tr
/
admin
/
inc
📝
renk.php
← Geri Dön
<?php if(!in_array(32,$yetki)){ die('<meta http-equiv="refresh" content="0;url='.$site.'admin">'); } $_title = $dil_kontrol['baslik'].' - Tema Renk Ayarı'; if($_POST){ $kontrol = $db->query("SELECT * FROM ayar WHERE dil = '{$dil}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); if($kontrol){ $guncelle = $db->prepare("UPDATE ayar SET renk1 = ?, renk2 = ?, renk3 = ?, renk4 = ?, renk5 = ?, renk6 = ?, renk7 = ? WHERE dil = ?"); $guncelle = $guncelle->execute(array($_POST['renk1'],$_POST['renk2'],$_POST['renk3'],$_POST['renk4'],$_POST['renk5'],$_POST['renk6'],$_POST['renk7'],$dil)); if($guncelle){ $mesaj = array('İşlem Başarılı','Güncelleme İşleminiz Başarı İle Gerçekleşti','success'); echo '<meta http-equiv="refresh" content="2;url='.$dil.'/'.$sayfa.'">'; }else{ $mesaj = array('İşlem Başarısız','Güncelleme İşlemi Sırasında Bir Hata Oluştu','error'); } }else{ $mesaj = array('İşlem Başarısız','Veri Ekleme İşlemi Sırasında Bir Hata Oluştu','error'); } } $duzenle = $db->query("SELECT * FROM ayar WHERE dil = '{$dil}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); ?> <div class="col-md-8 col-xl-8 offset-md-2 col-xs-12 col-sm-12"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5"> [$_title] Genel Bilgileri </div> <p style="margin: 0px;">Güncelleme ve Silme İşlemleri Bu Sayfada Yapılmaktadır.</p> <?php include 'inc/dil-yonlendirici.php'; ?> </div> </div> </div> <div class="col-md-8 col-xl-8 offset-md-2 col-xs-12 col-sm-12"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5">[$_title]</div> <p class="mg-b-20">Sitenizin İlgili Dilde ki Tema Rengini Güncelleyebilirsiniz.</p> <div style="float: left;width: 100%;"> <div id="queue"></div> <form action="" method="post"> <div class="table-responsive"> <table class="table table-bordered mg-b-1 text-md-nowrap"> <tbody> <tr> <th>Header Kenarlık Rengi</th> <td><input type="color" class="form-control" name="renk1" value="<?php echo @$duzenle['renk1']; ?>" required></td> </tr> <tr> <th>Menü Renk 1</th> <td><input type="color" class="form-control" name="renk2" value="<?php echo @$duzenle['renk2']; ?>" required></td> </tr> <tr> <th>Menü Renk 2</th> <td><input type="color" class="form-control" name="renk3" value="<?php echo @$duzenle['renk3']; ?>" required></td> </tr> <tr> <th>Menü Renk 3</th> <td><input type="color" class="form-control" name="renk4" value="<?php echo @$duzenle['renk4']; ?>" required></td> </tr> <tr> <th>Duyuru Renk 1</th> <td><input type="color" class="form-control" name="renk5" value="<?php echo @$duzenle['renk5']; ?>" required></td> </tr> <tr> <th>Duyuru Renk 2</th> <td><input type="color" class="form-control" name="renk6" value="<?php echo @$duzenle['renk6']; ?>" required></td> </tr> <tr> <th>Duyuru Renk 3</th> <td><input type="color" class="form-control" name="renk7" value="<?php echo @$duzenle['renk7']; ?>" required></td> </tr> <tr> <th colspan="2"> <center><button class="btn btn-indigo btn-with-icon"><span class="typcn typcn-edit"></span> Değişiklikleri Kaydet</button></center> </th> </tr> </tbody> </table> </div> </form> </div> </div> </div> </div> <style type="text/css"> table tr .row{border-bottom: none !important;padding: 0px !important;} table tr i{float: left; padding: 4px 5px; background: #d33774; color: #fff; margin-right: 5px; border-radius: 5px;} </style>
💾 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