Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.58 KB | None | 0 0
  1. <table class="table table-hover">
  2.                                             <thead>
  3.                                                 <tr>
  4.                                                     <th>Datenbank-ID</th>
  5.                                                     <th>Name</th>
  6.                                                     <th>Spielerstatus</th>
  7.                                                     <th>Letzter Login</th>
  8.                                                     <th>Aktion</th>
  9.                                                 </tr>
  10.                                             </thead>
  11.                                                 <tbody>
  12.                                                     <?php
  13.                                                     $query = "SELECT * FROM `ucp_accounts` ORDER BY `id` ASC";
  14.                                                     $check = mysql_query($query);
  15.                                                     while ( $row = mysql_fetch_assoc($check) )
  16.                                                     {
  17.                                                         ?>
  18.                                                         <tr>
  19.                                                             <td><?php echo $row['id']; ?></td>
  20.                                                             <td><?php echo $row['name']; ?></td>
  21.                                                             <td>
  22.                                                                 <?php if($row['alevel'] >= 1)
  23.                                                                     {
  24.                                                                         ?><span class="label label-primary">Mitglied des Teams</span><?php
  25.                                                                     }
  26.                                                                     else
  27.                                                                     {
  28.                                                                         ?><span class="label label-default">Normaler Spieler</span><?php
  29.                                                                     }
  30.                                                                 ?>
  31.                                                             </td>
  32.                                                             <td>
  33.                                                                 <?php if($row['loggedin'] == 1)
  34.                                                                     {
  35.                                                                         ?><span class="label label-success">Online</span><?php
  36.                                                                     }
  37.                                                                     else
  38.                                                                     {
  39.                                                                         echo $row['lastlogin'];
  40.                                                                     }
  41.                                                                 ?>
  42.                                                             </td>
  43.                                                             <td>
  44.                                                                 <a data-toggle="modal" href="#myprofil"><span class="glyphicon glyphicon-user" aria-hidden="true"></span></a>
  45.                                                                 <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
  46.                                                                 <?php if($row['ban'] >= 1)
  47.                                                                 {
  48.                                                                     ?><i class="fa fa-unlock"></i><?php
  49.                                                                 }
  50.                                                                 else
  51.                                                                 {
  52.                                                                     ?><span class="glyphicon glyphicon-lock" aria-hidden="true"></span><?php
  53.                                                                 }?>
  54.                                                                 <i class="fa fa-gavel"></i>
  55.                                                             </td>
  56.                                                         </tr>
  57.                                                     <?php } ?>
  58.                                                 </tbody>
  59.                                         </table>
  60.                                         <div class="modal fade" id="myprofil" role="dialog">
  61.                                             <div class="modal-dialog">
  62.                                                 <div class="modal-content">
  63.                                                     <div class="modal-header" style="padding:35px 50px;">
  64.                                                         <button type="button" class="close" data-dismiss="modal">&times;</button>
  65.                                                         <h4><span class="glyphicon glyphicon-user"></span> Profil von <?php echo $row['name']; ?></h4>
  66.                                                     </div>
  67.                                                     <div class="modal-body" style="padding:40px 50px;">
  68.                                                        
  69.                                                     </div>
  70.                                                 </div>
  71.                                             </div>
  72.                                         </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement