📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
esnafbul.demodesign.com.tr
/
panel
/
ekle
📝
yorum-ekle.php
← Geri Dön
<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <?php $siraCek = $db->prepare("select * from yorum where dil='$_SESSION[dil]'"); $siraCek->execute(); ?> <style> .rating { display: inline-block; position: relative; height: 45px; font-size: 25px; overflow: hidden; } .rating label { position: absolute; top: 0; left: 0; height: 100%; cursor: pointer; } .rating label:last-child { position: static; } .rating label:nth-child(1) { z-index: 5; } .rating label:nth-child(2) { z-index: 4; } .rating label:nth-child(3) { z-index: 3; } .rating label:nth-child(4) { z-index: 2; } .rating label:nth-child(5) { z-index: 1; } .rating label input { position: absolute; top: 0; left: 0; opacity: 0; } .rating label .icon { float: right; color: transparent; } .rating label:last-child .icon { color: #CCC; } .rating:not(:hover) label input:checked ~ .icon, .rating:hover label:hover input ~ .icon { color: #ffb400; } .rating label input:focus:not(:checked) ~ .icon:last-child { color: #000; text-shadow: 0 0 5px #09f; } </style> <title>Yeni Yorum Ekle | <?=$ayar['site_baslik']?></title> <form action="post/ekle/yorum-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 Yorum Ekle </h2> </div> <div class="grid grid-cols-12 gap-6 mt-5"> <div class="intro-y col-span-12 lg:col-span-6"> <!-- 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">Yıldız Sayısı</label><br> <div class="rating"> <label> <input type="radio" name="star_rate" checked value="1" /> <span class="icon">★</span> </label> <label> <input type="radio" name="star_rate" value="2" /> <span class="icon">★</span> <span class="icon">★</span> </label> <label> <input type="radio" name="star_rate" value="3" /> <span class="icon">★</span> <span class="icon">★</span> <span class="icon">★</span> </label> <label> <input type="radio" name="star_rate" value="4" /> <span class="icon">★</span> <span class="icon">★</span> <span class="icon">★</span> <span class="icon">★</span> </label> <label> <input type="radio" name="star_rate" value="5" /> <span class="icon">★</span> <span class="icon">★</span> <span class="icon">★</span> <span class="icon">★</span> <span class="icon">★</span> </label> </div> </div> <div> <label for="crud-form-1" class="form-label">İsim</label> <input name="isim" id="crud-form-1" required type="text" class="form-control w-full" placeholder="İsim"> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Müşteri İş Pozisyonu</label> <input name="pozisyon" id="crud-form-1" required type="text" class="form-control w-full" placeholder="Müşteri İş Pozisyonu"> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Müşteri Yorumu</label> <textarea name="icerik" class="form-control" required rows="3" placeholder="Müşteri Yorumu"></textarea> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">Sıra</label> <input type="number" name="sira" class="form-control w-full" id="siraArea" value="<?=$siraCek->rowCount()+1;?>" required min=1 oninput="validity.valid||(value='');"> </div> <div class="mt-3"> <label class="form-label">Müşteri Fotoğrafı (Zorunlu Değildir)</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"> </div> </div> </div> <div class="text-right mt-5"> <button name="yorumekle" class="btn btn-primary w-24">Kaydet</button> </div> </div> <!-- END: Form Layout --> </div> </div> </div> </form> <script id="rendered-js"> $(':radio').change(function () { console.log('New star rating: ' + this.value); }); //# sourceURL=pen.js </script> <?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