📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
makalesatisscripti.demodesign.com.tr
/
adminp
📝
uye-detay.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=index.php'> "; exit(); } ?> <!DOCTYPE html> <html class="loading" lang="en" data-textdirection="ltr"> <!-- BEGIN: Head--> <?php include ('system/inc/header.php'); ?> <!-- BEGIN: Content--> <div class="app-content content"> <div class="content-overlay"></div> <div class="content-wrapper"> <div class="content-header row"> </div> <div class="content-body"> <!-- Dashboard Ecommerce Starts --> <section id="dashboard-ecommerce"> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <h4 class="text-danger"> ÜYE DETAYLARI</h4> <div class="row"> <?php $id = $_GET['id']; $queryMusteri = mysqli_query($connect, "SELECT * FROM data_users WHERE id = '$id'"); $fetchMusteri = mysqli_fetch_array($queryMusteri); $usernamee = $fetchMusteri['username']; $adsoyad = $fetchMusteri['adsoyad']; $sifre = $fetchMusteri['password']; $bakiye = $fetchMusteri['bakiye']; $email = $fetchMusteri['email']; $aktvkod = $fetchMusteri['aktvkod']; ?> <div class="col-md-4"> <label> Kullanıcı Adı : </label> <input id="usernamee" class="form-control" type="text" value="<?=$usernamee;?>"> </div> <div class="col-md-4"> <label> Email Adresi : </label> <input id="email" class="form-control" type="text" value="<?=$email;?>"> </div> <div class="col-md-4"> <label> Adsoyad : </label> <input id="adsoyad" class="form-control" type="text" value="<?=$adsoyad;?>"> </div> <div class="col-md-4"> <label> Şifre : </label> <input id="sifre" class="form-control" type="text" value="<?=$sifre;?>"> </div> <div class="col-md-4"> <label> Bakiye : </label> <input id="bakiye" class="form-control" type="text" value="<?=$bakiye;?>"> </div> <div class="col-md-4"> <label> Aktivasyon Kodu : </label> <input class="form-control" type="text" value="<?=$aktvkod;?>" disabled> </div> <input id="uyeid" class="form-control" type="hidden" value="<?=$id;?>"> <div class="col-md-12"> <br> <button id="btn-uye" class="btn btn-danger" style="width:100%"> GÜNCELLE </button> </div> <div class="col-md-12"> <hr> <h4 class="text-danger"> ÜYE REFERANSLARI</h4> <table class="table table-hover"> <thead class="text-warning"> <th>#</th> <th>Kullanıcı Adı</th> <th>Kazanç</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM data_users WHERE ref = $id"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ //REF GELİR HESAPLA $refid = $fetch_r['id']; $say2R = mysqli_query($connect, "SELECT SUM(makalefiyat) as toplam FROM makalegorev WHERE alanuye = $refid && durum = 2"); $yazdir2R = mysqli_fetch_array($say2R); $totalYatRef = $yazdir2R['toplam']; $hesapYap = ($totalYatRef * $reforan) / 100; ?> <tr class="active"> <th scope="row"><?php echo $i; ?></th> <td><?php echo $fetch_r['email']; ?></td> <td><?php echo $hesapYap; ?> TL</td> </tr> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>No</td> <td>Referrals</td> <td>Yet</td> </tr> <?php } ?> </tbody> </table> </div> <div class="col-md-12"> <hr> <h4 class="text-danger"> ÜYE MAKALELERİ</h4> <table class="table table-hover"> <thead class="text-warning"> <th>Başlık</th> <th>Tutar</th> <th>Kelime</th> <th>Durum</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM makalegorev WHERE userid = $id"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ if($fetch_r['durum'] == 0){ $durumYaz = '<span class="badge badge-primary">BEKLEMEDE</span>'; } if($fetch_r['durum'] == 1){ $durumYaz = '<span class="badge badge-success">'.$userAlan.' ALDI</span>'; } if($fetch_r['durum'] == 2){ $durumYaz = '<a href="talep-detay-gor.php?id='.$fetch_r['id'].'" class="badge badge-danger"> ONAYLANDI (GÖR)</a>'; } if($fetch_r['durum'] == 3){ $durumYaz = '<span class="badge badge-danger">İPTAL EDİLDİ</span>'; } ?> <tr class="active"> <td><?php echo $fetch_r['makalebaslik']; ?></td> <td><?php echo $fetch_r['makalefiyat']; ?> TL</td> <td><?php echo $fetch_r['kelime']; ?></td> <td><?php echo $durumYaz; ?></td> </tr> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>No</td> <td>Referrals</td> <td>Yet</td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </section> <!-- Dashboard Ecommerce ends --> </div> </div> </div> <!-- END: Content--> <?php include ('system/inc/footer.php'); ?> <script> function myFunction() { // Declare variables var input, filter, table, tr, td, i, txtValue; input = document.getElementById("myInput"); filter = input.value.toUpperCase(); table = document.getElementById("myTable"); tr = table.getElementsByTagName("tr"); // Loop through all table rows, and hide those who don't match the search query for (i = 0; i < tr.length; i++) { td = tr[i].getElementsByTagName("td")[0]; if (td) { txtValue = td.textContent || td.innerText; if (txtValue.toUpperCase().indexOf(filter) > -1) { tr[i].style.display = ""; } else { tr[i].style.display = "none"; } } } } </script> </body> <!-- END: 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