📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
esnafbul.demodesign.com.tr
/
panel
/
ekle
📝
proje-ekle.php
← Geri Dön
<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <?php $katCek = $db->prepare("select * from proje_kat where dil='$_SESSION[dil]' and durum='1' order by sira asc"); $katCek->execute(); ?> <title>Yeni Proje Ekle | <?=$ayar['site_baslik']?></title> <form action="post/ekle/proje-ekle.php" class="form-horizontal form-bordered" method="post" enctype="multipart/form-data" style="width: 100%"> <!-- BEGIN: Content --> <input type="hidden" name="dil" value="<?=$_SESSION['dil']?>"> <div class="content"> <div class="intro-y flex items-center mt-8"> <h2 class="text-lg font-medium mr-auto"> Yeni Proje Ekle </h2> </div> <div class="grid grid-cols-12 gap-6 mt-5"> <div class="intro-y col-span-12 lg:col-span-8"> <!-- BEGIN: Form Layout --> <div class="intro-y box p-5"> <div> <label for="crud-form-1" class="form-label">Yayın Durumu</label> <input type='hidden' value='0' name='durum'> <input type="checkbox" checked id="yayin" class="js-switch" data-color="#f62d51" name="durum" value="1" /> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Başlığı</label> <input name="baslik" id="crud-form-1" type="text" class="form-control w-full" placeholder="Proje Başlığı"> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Kategori Seçimi</label> <select class="form-control select2" name="kat_id" required> <option value="">-- Seçim Yapınız --</option> <?php foreach ($katCek as $kat) {?> <option value="<?=$kat['id']?>"><?=$kat['baslik']?></option> <?php }?> </select> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Kısa Açıklama (Spot)</label> <textarea name="spot" id="spotArea" class="form-control" rows="2"></textarea> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Detayları</label> <textarea name="icerik" id="mymce" rows="6" ></textarea> </div> </div> <!-- END: Form Layout --> </div> <div class="intro-y col-span-12 lg:col-span-4"> <!-- BEGIN: Form Layout --> <div class="intro-y box p-5"> <div> <label class="form-label">Proje Görseli</label> <div class="border-2 border-dashed dark:border-darkmode-400 rounded-md pt-4"> <div class="flex flex-wrap px-4" style="margin-bottom: 20px"> <input type="file" class="custom-file-input" id="inputGroupFile04" aria-describedby="inputGroupFileAddon04" name="gorsel" required> </div> </div> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Başlangıç Tarihi</label> <input type="date" class="form-control" name="start_date"> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Bitiş Tarihi</label> <input type="date" class="form-control" name="finish_date"> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Web Sitesi</label> <input name="url" id="crud-form-1" type="text" class="form-control w-full" placeholder="Proje Web Sitesi"> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Adres Bilgisi</label> <textarea name="adres" id="spotArea" class="form-control" rows="2" placeholder="Proje Adres Bilgisi"></textarea> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Videosu Embed Kodu</label> <textarea name="embed" id="spotArea" class="form-control" rows="2" placeholder="Proje Videosu Embed Kodu"></textarea> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Proje Google Maps Kodu</label> <textarea name="maps" id="spotArea" class="form-control" rows="2" placeholder="Proje Google Maps Kodu"></textarea> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Meta Açıklaması</label> <textarea name="meta_desc" id="descpAlan" class="form-control" rows="2" placeholder="Meta Açıklaması"></textarea> </div> <div class="mt-3"> <input class="form-control w-full" type="text" data-role="tagsinput" placeholder="Etiket Ekle" name="tags" /> </div> <div class="text-right mt-5"> <button name="projeekle" class="btn btn-primary w-24">Kaydet</button> </div> </div> <!-- END: Form Layout --> </div> </div> </div> </form> <?php if($_GET['status']=='imgtype'){ ?> <body onload="sweetAlert('HATA!', 'Görsel dosyanız jpg, png veya gif türü dışında olamaz', 'warning');"> </body> <?php }?>
💾 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