📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscriptiv2.demodesign.com.tr
📝
gorev-secim.php
← Geri Dön
<?php include ('config.php'); include ('system/inc/sitedata.php'); if (!isset($_SESSION['login'])){ echo " <meta http-equiv='refresh' content='1;URL=login.php'> "; exit(); } ?> <!DOCTYPE html> <html lang="en"> <?php include ('system/inc/header.php'); ?> <!--********************************** Content body start ***********************************--> <div class="content-body"> <div class="container-fluid"> <div class="row"> <div class="col-xl-12 col-xxl-12 col-lg-12 col-12"> <div class="card"> <div class="card-header border-0 pb-0"> <h4 class="card-title">Tüm Görevler</h4> </div> <div class="card-body"> <?php $gorevkategori = $_GET['kategori']; $animals = mysqli_query($connect, "SELECT * FROM gorevler WHERE gorevkategori = '$gorevkategori' ORDER BY id DESC "); foreach ($animals as $animall) { $gorevkisia = $animall['gorevkisi']; $gorevyapana = $animall['gorevyapan']; $gorevidd = $animall['id']; //BUTON SORGU $querySrg = mysqli_query($connect, "SELECT * FROM yapilangorevler WHERE userid = '$userid' AND gorevid = '$gorevidd'"); if(!mysqli_affected_rows($connect)) { if($gorevkisia > $gorevyapana){ $newBtn = '<a href="gorev-tamam.php?gorev='.$animall['id'].'" class="btn btn-success">SEÇ</a>'; }else{ $newBtn = '<a class="btn btn-danger" style="color:white">KONTENJAN DOLU</a>'; } }else{ $newBtn = '<a class="btn btn-warning" style="color:white">DAHA ÖNCE YAPILMIŞ</a>'; } echo ' <div class="bg-warning coin-holding mt-4 flex-wrap"> <div class="mb-2 coin-bx"> <div class="d-flex align-items-center"> <div> <img src="system/themes/gold.gif" style="border-radius: 50%;width:60px;height:60px"> </div> <div class="ml-3"> <h4 class="coin-font font-w600 mb-0 text-white">'.$site_name.'</h4> <p class="mb-0 text-white">'.$animall['gorevbaslik'].'</p> </div> </div> </div> <div class="mb-2"> <div class="d-flex align-items-center"> <div class="coin-bx-one"> <svg width="33" height="35" viewBox="0 0 33 35" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect width="4.71425" height="34.5712" rx="2.35713" transform="matrix(-1 0 0 1 33 0)" fill="white"/> <rect width="4.71425" height="25.1427" rx="2.35713" transform="matrix(-1 0 0 1 23.5713 9.42853)" fill="white"/> <rect width="4.71425" height="10.9999" rx="2.35713" transform="matrix(-1 0 0 1 14.1436 23.5713)" fill="white"/> <rect width="5.31864" height="21.2746" rx="2.65932" transform="matrix(-1 0 0 1 5.31836 13.2966)" fill="white"/> </svg> </div> <div class="ml-3"> <h2 class="mb-0 text-white coin-font-1">Kota : '.$animall['gorevkisi'].'/'.$animall['gorevyapan'].'</h2> <h2 class="mb-0 text-white coin-font-1">Kazanç Normal : '.$animall['gorevkazanc'].' TL</h2> <h2 class="mb-0 text-white coin-font-1">Kazanç VİP : '.$animall['gorevvipkazanc'].' TL</h2> </div> </div> </div> <div class="mb-2"> <div class="d-flex align-items-center"> '.$newBtn.' </div> </div> </div> '; } ?> </div> </div> </div> </div> </div> </div> <!--********************************** Content body end ***********************************--> <?php include ('system/inc/footer.php'); ?> </body> </html>
💾 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