📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscripti.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="header-navbar-shadow"></div> <div class="content-wrapper container-xxl p-0"> <div class="content-header row"> </div> <div class="content-body"> <!-- Dashboard Ecommerce Starts --> <section id="dashboard-ecommerce"> <div class="card"> <div class="card-body"> <h4 class="text-danger"> ÜYE DETAYLARI </h4> <?php $id = $_GET['id']; $queryMusteri = mysqli_query($connect, "SELECT * FROM data_users WHERE id = '$id'"); $fetchMusteri = mysqli_fetch_array($queryMusteri); $email = $fetchMusteri['email']; $adsoyad = $fetchMusteri['adsoyad']; $password = $fetchMusteri['password']; $bakiye = $fetchMusteri['bakiye']; $bonus = $fetchMusteri['bonus']; $telefon = $fetchMusteri['telefon']; $sifre = $fetchMusteri['password']; $cinsiyet = $fetchMusteri['cinsiyet']; $sehir = $fetchMusteri['sehir']; $aktivasyondurum = $fetchMusteri['aktivasyondurum']; $aktivasyonkod = $fetchMusteri['aktivasyonkod']; if($aktivasyondurum == 0){ $aktYaz = '<span class="badge badge-danger">AKTİF EDİLMEMİŞ</span>'; }else{ $aktYaz = '<span class="badge badge-success">AKTİF EDİLMİŞ</span>'; } ?> <div class="row"> <div class="col-md-4"> <label> Adsoyad : </label> <input id="adsoyad" name="adsoyad" class="form-control" type="text" value="<?=$adsoyad;?>"> </div> <div class="col-md-4"> <label> Bakiye : </label> <input id="bakiye" name="bakiye" class="form-control" type="text" value="<?=$bakiye;?>"> </div> <div class="col-md-4"> <label> Email Adresi : </label> <input id="email" name="email" class="form-control" type="text" value="<?=$email;?>"> </div> <div class="col-md-4"> <label> Telefon : </label> <input id="telefon" name="sifre" class="form-control" type="text" value="<?=$telefon;?>"> </div> <div class="col-md-4"> <label> Şifre : </label> <input id="sifre" name="sifre" class="form-control" type="text" value="<?=$password;?>"> </div> <div class="col-md-4"> <label> Bonus : </label> <input id="bonus" name="sifre" class="form-control" type="text" value="<?=$bonus;?>"> </div> <div class="col-md-4"> <label> Aktivasyon Kodu : </label> <input class="form-control" type="text" value="<?=$aktivasyonkod;?>" disabled> </div> <div class="col-md-4"> <label> Şehir : </label> <input class="form-control" type="text" value="<?=$sehir;?>" disabled> </div> <div class="col-md-4"> <label> Cinsiyet : </label> <input class="form-control" type="text" value="<?=$cinsiyet;?>" disabled> </div> <input id="uyeid" type="hidden" value="<?=$id;?>"> <div class="col-md-12"> <br> <button id="btn-uye" class="btn btn-primary" 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>Email Adres</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(kazanc) as toplam FROM yapilangorevler WHERE userid = $refid && durum = 1"); $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 GÖREVLERİ</h4> <table class="table table-hover"> <thead class="text-warning"> <th>Başlık</th> <th>Kazanç</th> <th>Kontenjan</th> <th>Gider</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM gorevler WHERE ekleyenuye = $id"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ ?> <tr class="active"> <td><?php echo $fetch_r['gorevbaslik']; ?></td> <td><?php echo $fetch_r['gorevkazanc']; ?> TL</td> <td><?php echo $fetch_r['gorevlimit']; ?> /<?php echo $fetch_r['gorevyapan']; ?></td> <td><?php echo $fetch_r['gider']; ?> 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 LOGLARI</h4> <table class="table table-hover"> <thead class="text-warning"> <th>İşlem</th> <th>Tarih</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM logkayit WHERE userid = '$id' ORDER BY id DESC"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ ?> <tr class="active"> <td><?php echo $fetch_r['islem']; ?></td> <td><?php echo $fetch_r['date']; ?> </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> </section> <!-- Dashboard Ecommerce ends --> </div> </div> </div> <?php include ('system/inc/footer.php'); ?> </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