<?php include "header.php";
// insanlar production/ index.php yapıp içeri girmesinler diye bu satırda session kontrol yapıyruz
if(!isset($_SESSION['admin_ad'])){
header('Location:hb-admin.php');
}
$kullanicisor=$db->prepare("select * from uyeler ");
$kullanicisor->execute();
$durumsor=$db->prepare("select uyeler from kullanici_durum ");
$durumsor->execute();
?>
<!-- page content -->
<div class="right_col" role="main">
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
<form action="" method="POST">
<!-- //101DERS 12 DAKIKA -->
<div class="input-group">
<input type="text" class="form-control txtAra" name="aranan" placeholder="Arama yapın...">
<span class="input-group-btn">
<button disabled style="cursor: context-menu" class="btn btn-default" type="submit" name="arama" ><i class="fa fa-search"></i></button>
</span>
</div>
</form>
</div>
<div class="page-title">
<div class="title_right">
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Online/ Offline Kullanıcılar</h2>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="table-responsive">
<table class="table table-striped jambo_table bulk_action tbAra">
<thead>
<tr class="headings">
<th class="column-title text-center">Kullanıcı Adı </th>
<th class="column-title text-center">Kullanıcı Durum</th>
</tr>
</thead>
<tbody>
<?php
while($kullanicicek=$kullanicisor-> fetch(PDO::FETCH_ASSOC)) {
while($durumcek=$durumsor-> fetch(PDO::FETCH_ASSOC)) {
?>
<tr>
<td class="text-center "><?php echo $kullanicicek['kullanici_ad'] ?></td>
<?php
if(isset($_SESSION['kullanici_id']) and
(int
)$_SESSION['kullanici_id'] ($durumcek['kullanici_durum']==1)) {
?>
<td class="text-center"><i class="fa fa-check"></i></td>
<?php
}else
echo "<td class='text-center'><i class='fa fa-times'></i></td>";
?>
</tr>
<?php } } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<?php include "footer.php" ?>
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}