📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
takiaksesuar.demodesign.com.tr
/
admin
/
inc
📝
musteri-duzenle.php
← Geri Dön
<?php $duzenle = $db->query("SELECT * FROM musteri WHERE id = '{$_GET['id']}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); if(!in_array(4,$yetki) || !$duzenle){ die('<meta http-equiv="refresh" content="0;url='.$site.'admin">'); }else{ if($_POST){ $islem = $db->prepare("UPDATE musteri SET ad = ?, soyad = ?, telefon = ?, email = ?, sifre = ?, tc_kimlik = ?, siparis_adres = ?, fatura_adres = ?, vergi_numarasi = ?, vergi_dairesi = ?, vergi_adi = ?, bayi_grup_id = ? WHERE id = ? LIMIT 1"); $islem = $islem->execute(array($_POST['ad'],$_POST['soyad'],$_POST['telefon'],$_POST['email'],$_POST['sifre'],$_POST['tc_kimlik'],$_POST['siparis_adres'],$_POST['fatura_adres'],$_POST['vergi_numarasi'],$_POST['vergi_dairesi'],$_POST['vergi_adi'],$_POST['bayi_grup_id'],$_GET['id'])); if($islem){ $mesaj = array('İşlem Başarılı','Güncelleme İşleminiz Başarı İle Gerçekleşti','success'); }else{ $mesaj = array('İşlem Başarısız','Güncelleme İşlemi Sırasında Bir Hata Oluştu','error'); } echo '<meta http-equiv="refresh" content="2;url='.$dil.'/'.$sayfa.'?id='.$_GET['id'].'">'; } ?> <script type="text/javascript"> $(function(){ $('select[name="bayi_grup_id"] option[value="<?php echo $duzenle['bayi_grup_id']; ?>"]').attr('selected','select'); }); </script> <?php } $_title = $duzenle['ad'].' - '.$duzenle['soyad']; ?> <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;">Ekleme, Güncelleme ve Silme İşlemleri Bu Sayfada Yapılmaktadır.</p> </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 Bilgileri 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>Ad</th> <td><input type="text" class="form-control" name="ad" placeholder="Adı" value="<?php echo @$duzenle['ad']; ?>" required></td> </tr> <tr> <th>Soyad</th> <td><input type="text" class="form-control" name="soyad" placeholder="Soyad" value="<?php echo @$duzenle['soyad']; ?>" required></td> </tr> <tr> <th>Telefon</th> <td><input type="text" class="form-control" name="telefon" placeholder="Telefon" value="<?php echo @$duzenle['telefon']; ?>" required></td> </tr> <tr> <th>Email</th> <td><input type="email" class="form-control" name="email" placeholder="Email" value="<?php echo @$duzenle['email']; ?>" required></td> </tr> <tr> <th>Şifre</th> <td><input type="text" class="form-control" name="sifre" placeholder="Şifre" value="<?php echo @$duzenle['sifre']; ?>" required></td> </tr> <tr> <th>Tc</th> <td><input type="text" class="form-control" name="tc_kimlik" placeholder="Tc" value="<?php echo @$duzenle['tc_kimlik']; ?>"></td> </tr> <tr> <th>Sipariş Adres</th> <td><textarea class="form-control" name="siparis_adres" placeholder="Sipariş Adres"><?php echo @$duzenle['siparis_adres']; ?></textarea></td> </tr> <tr> <th>Fatura Adres</th> <td><textarea class="form-control" name="fatura_adres" placeholder="Fatura Adres"><?php echo @$duzenle['fatura_adres']; ?></textarea></td> </tr> <tr> <th>Vergi Numarası</th> <td><input type="text" class="form-control" name="vergi_numarasi" placeholder="Vergi Numarası" value="<?php echo @$duzenle['vergi_numarasi']; ?>"></td> </tr> <tr> <th>Vergi Dairesi</th> <td><input type="text" class="form-control" name="vergi_dairesi" placeholder="Vergi Dairesi" value="<?php echo @$duzenle['vergi_dairesi']; ?>"></td> </tr> <tr> <th>Vergi Adı</th> <td><input type="text" class="form-control" name="vergi_adi" placeholder="Vergi Adı" value="<?php echo @$duzenle['vergi_adi']; ?>"></td> </tr> <tr> <th>Vergi Adı</th> <td> <select class="form-control select2" name="bayi_grup_id" required style="width:100%"> <option value="0">Bayi Değil</option> <?php $query = $db->query("SELECT * FROM bayi_grup", PDO::FETCH_ASSOC); if($query->rowCount()){ foreach( $query as $row ){ echo '<option value="'.$row['id'].'">'.$row['baslik'].'</option>'; } } ?> </select> </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>
💾 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