📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
firmarehberiv1.demodesign.com.tr
/
KWPanel
📝
ilan-ozel-alan-duzenle.php
← Geri Dön
<?php @$menu = 'ilan-islemleri'; @$page = 'ilan-ozellik'; require_once("header.php"); require_once("menu-left.php"); $Id = intval($_GET['Id']); $oku = $db->table('dbo_fields') ->where('Id','=',$Id) ->getRow(); if(!$oku){ yonver('ilan-ozel-alan.html'); exit(); } $action = guvenlik($_GET['action']); $ozel_alan = $db->table('dbo_fields')->where('Id', '=', $Id)->getRow(); $ad_p = guvenlik($_POST['ad']); $ad = ($ad_p != '' ? $ad_p : $ozel_alan->name); $tur_p = guvenlik($_POST['tur']); $tur = ($tur_p != '' ? $tur_p : $ozel_alan->type); $values_p = guvenlik($_POST['values'], 1); $values = ($values_p != '' ? $values_p : $ozel_alan->field_values); $siralama_p = guvenlik($_POST['siralama']); $siralama = ($siralama_p != '' ? $siralama_p : $ozel_alan->siralama); $multiple_field_name_p = guvenlik($_POST['multiple_field_name']); $multiple_field_name = ($multiple_field_name_p != '' ? $multiple_field_name_p : $ozel_alan->multiple_field_name); $multiple_field_seo_name = seo($multiple_field_name); $between_p = guvenlik($_POST['between']); $between = ($between_p != '' ? $between_p : $ozel_alan->aralik); $multiple_p = guvenlik($_POST['multiple']); $multiple = ($multiple_p != '' ? $multiple_p : $ozel_alan->multiple); $arama_p = guvenlik($_POST['arama']); $arama = ($arama_p != '' ? $arama_p : $ozel_alan->arama); $required_p = guvenlik($_POST['required']); $required = ($required_p != '' ? $required_p : $ozel_alan->required); $withfilter_p = guvenlik($_POST['withfilter']); $withfilter = ($withfilter_p != '' ? $withfilter_p : $ozel_alan->withfilter); $showlist_p = guvenlik($_POST['showlist']); $showlist = ($showlist_p != '' ? $showlist_p : $ozel_alan->showlist); $kategori1_p = guvenlik($_POST['kategori1']); $kategori1 = ($kategori1_p != '' ? $kategori1_p : $ozel_alan->kategori); $kategori2_p = guvenlik($_POST['kategori2']); $kategori2 = ($kategori2_p != '' ? $kategori2_p : $ozel_alan->kategori2); $kategori3_p = guvenlik($_POST['kategori3']); $kategori3 = ($kategori3_p != '' ? $kategori3_p : $ozel_alan->kategori3); $kategori4_p = guvenlik($_POST['kategori4']); $kategori4 = ($kategori4_p != '' ? $kategori4_p : $ozel_alan->kategori4); $kategori5_p = guvenlik($_POST['kategori5']); $kategori5 = ($kategori5_p != '' ? $kategori5_p : $ozel_alan->kategori5); $kategori6_p = guvenlik($_POST['kategori6']); $kategori6 = ($kategori6_p != '' ? $kategori6_p : $ozel_alan->kategori6); $kategori7_p = guvenlik($_POST['kategori7']); $kategori7 = ($kategori7_p != '' ? $kategori7_p : $ozel_alan->kategori7); $kategori8_p = guvenlik($_POST['kategori8']); $kategori8 = ($kategori8_p != '' ? $kategori8_p : $ozel_alan->kategori8); /**********************************************************************************************************/ if(isset($_POST['kaydet']) && admin_login_check($db) == true){ $old_name=seo($ozel_alan[name]); $new_name=seo($ad); $datax = [ 'field_name' => $new_name ]; $islex = $db->table('custom_fields')->where('field_name','=',$old_name)->update($datax); $data = [ 'name' => pasifguvenlik($ad), 'type' => pasifguvenlik($tur), 'field_values' => pasifguvenlik($values), 'required' => pasifguvenlik($required_p), 'siralama' => pasifguvenlik($siralama), 'multiple_field_name' => pasifguvenlik($multiple_field_name), 'multiple_field_seo_name' => pasifguvenlik($multiple_field_seo_name), 'arama' => pasifguvenlik($arama_p), 'aralik' => pasifguvenlik($between_p), 'multiple' => pasifguvenlik($multiple_p), 'withfilter' => pasifguvenlik($withfilter_p), 'showlist' => pasifguvenlik($showlist) ]; $isle = $db->table('dbo_fields')->where('Id','=',$Id)->insert($data); if($isle){ $bilgi = alert('success','Özel Alan Eklendi','ilan-ozel-alan-ekle.html',3); }else{ $bilgi = alert('danger','Özel Alan Eklenemedi!','ilan-ozel-alan-ekle.html',3); } } ?> <link href="css/separate/vendor/tags_editor.min.css" rel='stylesheet' type='text/css'> <div class="page-content"> <header class="page-content-header"> <div class="container-fluid"> <div class="tbl"> <div class="tbl-row"> <div class="tbl-cell"> <h3><small class="text-muted">Özel Alan İşlemleri</small></h3> </div> <div class="tbl-cell tbl-cell-action" style="display:none;"> <a href="#" class="btn btn-rounded">Add member</a> </div> </div> </div> </div> </header><!--.page-content-header--> <div class="container-fluid"> <?=@$bilgi?> <form id="form_validation" method="POST" action=""> <div class="col-lg-6"> <section class="card"> <header class="card-header"> Kategori Bilgileri </header> <div class="card-block"> <div class="row"> <div class="col-md-12"> <fieldset class="form-group"> <label class="form-label">Alan Adı</label> <input type="text" name="ad" class="form-control" value="<?=$ad;?>"> </fieldset> </div> <div class="col-md-12"> <fieldset class="form-group"> <label class="form-label">Alan Türü</label> <select name="tur" class="form-control" data-rel="chosen" onchange="change_type(this.options[this.selectedIndex].value);"> <option>Alan Türü Seçiniz</option> <option value="text"<?php if($tur=='text'){?> selected<?php }?>>Yazı Alanı</option> <option value="textarea"<?php if($tur=='textarea'){?> selected<?php }?>>Çoklu Yazı Alanı (Textarea)</option> <option value="select"<?php if($tur=='select'){?> selected<?php }?>>Seçim Kutusu (Selectbox)</option> <option value="multiple_select"<?php if($tur=='multiple_select'){?> selected<?php }?>>Bağlantılı Seçim Kutusu (Selectbox)</option> <option value="radio"<?php if($tur=='radio'){?> selected<?php }?>>Seçenek Kutusu (Radio)</option> <option value="checkbox"<?php if($tur=='checkbox'){?> selected<?php }?>>Seçmeli Kutular (Checkbox)</option> </select> </fieldset> </div> <div id="values" style="display:none" class="col-md-12"> <fieldset class="form-group"> <label class="form-label">Alan Değerleri</label> <textarea name="values" class="form-control" rows="4" placeholder="Değerleri || Kullanarak Ayırınız."><?=$values;?></textarea> </fieldset> </div> </div> </div> </section> </div> <div class="col-lg-6"> <section class="card"> <header class="card-header"> Diğer Bilgiler </header> <div class="card-block"> <div class="row"> <div class="col-md-12" id="multiple_field_name" style="display:none;"> <fieldset class="form-group"> <label class="form-label">Alt Alan Adı</label> <input type="text" name="multiple_field_name" class="form-control" value="<?=$multiple_field_name?>"> </fieldset> </div> <div class="col-md-12"> <fieldset class="form-group"> <label class="form-label">Sıralama</label> <input type="text" name="siralama" class="form-control" value="<?=$siralama?>"> </fieldset> </div> <div class="col-md-12"> <fieldset class="form-group"> <label class="form-label">Zorunlu Alan</label> <input type="checkbox" name="required" value="1"<?php if($required==1){?> checked<?php }?>> </fieldset> </div> <div class="col-md-12" id="withfilter" <?php if($tur=='text' or $tur=='textarea' or $tur=='checkbox'){?> style="display:none"<?php } ?>> <fieldset class="form-group"> <label class="form-label">Filtreleme</label> <input type="checkbox" name="withfilter" value="1"<?php if($withfilter==1){?> checked<?php }?>> </fieldset> </div> <div class="col-md-12" id="showlist" style="display:none;"> <fieldset class="form-group"> <label class="form-label">Kategori Sayfasında Göster</label> <input type="checkbox" name="showlist" value="1"<?php if($showlist==1){?> checked<?php }?>> </fieldset> </div> <div class="col-md-12" id="between"> <fieldset class="form-group"> <label class="form-label">Aralıklı Arama</label> <input type="checkbox" name="between" value="1"<?php if($between==1){?> checked<?php }?>> </fieldset> </div> <div class="col-md-12" id="multiple" style="display:none;"> <fieldset class="form-group"> <label class="form-label">Çoklu Seçim</label> <input type="checkbox" name="multiple" value="1"<?php if($multiple==1){?> checked<?php }?>> </fieldset> </div> <div class="col-md-12" id="detailed_search"> <fieldset class="form-group"> <label class="form-label">Detaylı Aramada Göster</label> <input type="checkbox" name="arama" value="1"<?php if($arama==1){?> checked<?php }?>> </fieldset> </div> </div> </div> </section> </div> <!-------------------------------------------------------> <div class="col-lg-12"> <section class="card"> <div class="card-block"> <fieldset class="form-group" style="margin-bottom:0px;"> <button name="kaydet" type="submit" class="btn">Bilgileri Kaydet</button> </fieldset> </div> </section> </div> </form> </div><!--.container-fluid--> </div><!--.page-content--> <?php require_once("footer.php"); ?> <script type='text/javascript' src="js/lib/jquery-tag-editor/jquery.tag-editor.min.js"></script> <script type="text/javascript"> $(function() { $('#tags-editor-textarea').tagEditor(); }); </script> <script type="text/javascript"> function change_type(value) { if(value=='radio'){ $("#values").show("slow"); $("#between").hide("slow"); $("#multiple").hide("slow"); $("#multiple_field_name").hide("slow"); $("#withfilter").show("slow"); $("#detailed_search").show("slow"); $("#showlist").show("slow"); }else if(value=='checkbox'){ $("#values").show("slow"); $("#between").hide("slow"); $("#multiple").hide("slow"); $("#multiple_field_name").hide("slow"); $("#withfilter").hide("slow"); $("#detailed_search").show("slow"); $("#showlist").hide("slow"); }else if(value=='select'){ $("#values").show("slow"); $("#between").hide("slow"); $("#multiple").show("slow"); $("#multiple_field_name").hide("slow"); $("#withfilter").show("slow"); $("#detailed_search").show("slow"); $("#showlist").show("slow"); }else if(value=='multiple_select'){ $("#values").show("slow"); $("#between").hide("slow"); $("#multiple").show("slow"); $("#multiple_field_name").show("slow"); $("#withfilter").hide("slow"); $("#detailed_search").show("slow"); $("#showlist").hide("slow"); }else if(value=='textarea'){ $("#values").hide("slow"); $("#between").hide("slow"); $("#multiple").hide("slow"); $("#multiple_field_name").hide("slow"); $("#withfilter").hide("slow"); $("#detailed_search").hide("slow"); $("#showlist").hide("slow"); }else{ $("#values").hide("slow"); $("#between").show("slow"); $("#multiple").hide("slow"); $("#multiple_field_name").hide("slow"); $("#withfilter").hide("slow"); $("#detailed_search").show("slow"); $("#showlist").show("slow"); } } </script>
💾 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