Facebook
From haluk, 3 Years ago, written in PHP.
Embed
Download Paste or View Raw
Hits: 123
  1. <?php include "header.php";
  2.  
  3.  
  4.  
  5. // insanlar production/ index.php yapıp içeri girmesinler diye bu satırda session kontrol yapıyruz
  6. if(!isset($_SESSION['admin_ad'])){
  7.  
  8.  
  9.   header('Location:hb-admin.php');
  10. }
  11.  
  12. $kullanicisor=$db->prepare("select * from uyeler ");
  13. $kullanicisor->execute();
  14. $durumsor=$db->prepare("select uyeler from kullanici_durum  ");
  15. $durumsor->execute();
  16.  
  17.  
  18. ?>
  19.  
  20.         <!-- page content -->
  21.         <div class="right_col" role="main">
  22.           <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
  23.  
  24.  
  25.  
  26.             <form action="" method="POST">
  27.   <!-- //101DERS 12 DAKIKA -->
  28.  
  29.             <div class="input-group">
  30.               <input type="text" class="form-control txtAra" name="aranan" placeholder="Arama yapın...">
  31.                   <span class="input-group-btn">
  32.                    <button disabled style="cursor: context-menu"  class="btn btn-default" type="submit" name="arama" ><i class="fa fa-search"></i></button>
  33.                  </span>
  34.             </div>
  35.  
  36.             </form>
  37.  
  38.  
  39.           </div>
  40.             <div class="page-title">
  41.  
  42.  
  43.               <div class="title_right">
  44.  
  45.               </div>
  46.             </div>
  47.  
  48.             <div class="clearfix"></div>
  49.  
  50.             <div class="row">
  51.               <div class="col-md-12 col-sm-12 col-xs-12">
  52.                 <div class="x_panel">
  53.                   <div class="x_title">
  54.                     <h2>Online/ Offline Kullanıcılar</h2>
  55.  
  56.                     <div class="clearfix"></div>
  57.                   </div>
  58.                   <div class="x_content">
  59.                     <div class="table-responsive">
  60.                         <table class="table table-striped jambo_table bulk_action tbAra">
  61.                             <thead>
  62.                             <tr class="headings">
  63.                                 <th class="column-title text-center">Kullanıcı Adı </th>
  64.                                 <th class="column-title text-center">Kullanıcı Durum</th>
  65.  
  66.                             </tr>
  67.                             </thead>
  68.                             <tbody>
  69.                              <?php
  70.  
  71.  
  72.                               while($kullanicicek=$kullanicisor-> fetch(PDO::FETCH_ASSOC)) {
  73.                                 while($durumcek=$durumsor-> fetch(PDO::FETCH_ASSOC)) {
  74.                                   ?>
  75.                                   <tr>
  76.  
  77.                                       <td class="text-center "><?php echo $kullanicicek['kullanici_ad'] ?></td>
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.                                       <?php
  87.                                                 if(isset($_SESSION['kullanici_id']) and (int)$_SESSION['kullanici_id'] ($durumcek['kullanici_durum']==1)) {
  88.                                                           ?>
  89.                                                             <td class="text-center"><i class="fa fa-check"></i></td>
  90.  
  91.  
  92.                                                             <?php
  93.                                                             }else
  94.  
  95.  
  96.                                                     echo "<td class='text-center'><i class='fa fa-times'></i></td>";
  97.  
  98.                                                             ?>
  99.  
  100.  
  101.  
  102.                                   </tr>
  103.                               <?php }  } ?>
  104.  
  105.  
  106.  
  107.  
  108.  
  109.                             </tbody>
  110.                         </table>
  111.                     </div>
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.                   </div>
  125.                 </div>
  126.               </div>
  127.             </div>
  128.           </div>
  129.         </div>
  130.         <!-- /page content -->
  131.  
  132.       <?php include "footer.php" ?>
  133.