Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. <?php
  2. include('header.php');
  3. ?>
  4. <!-- Content Wrapper. Contains page content -->
  5. <div class="content-wrapper">
  6. <!-- Content Header (Page header) -->
  7. <section class="content-header">
  8. <h1>
  9. <?php echo ManagerName ?> <small>Chat</small>
  10. </h1>
  11. </section>
  12.  
  13. <!-- Main content -->
  14. <section class="content">
  15. <div class="row">
  16. <div class="col-xs-10 col-xs-offset-1" style="margin-top: 20px;">
  17. <div class="box box-danger">
  18. <div class="panel-heading">
  19. <h4 class="panel-title">Chat</h4>
  20. </div>
  21. <div class="panel-body">
  22. <div id="chat">
  23. <table id="bans" class="table table-striped table-bordered" cellspacing="0" width="100%">
  24. <thead>
  25. <tr>
  26. <th>Sender</th>
  27. <th>Message</th>
  28. <th>Server</th>
  29. <th>Time</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <?php
  34. $sql = "SELECT * FROM chat ORDER BY ID DESC";
  35. foreach ($pdo->query($sql) as $row) {
  36.  
  37. $time = date("H:i:s d. M", $row["TIME"] / 1000);
  38. echo '<tr>';
  39. echo '<td><a href="player.php?uuid=' . $row['UUID'] . '">' . getName($row['UUID']) . '</a></td>';
  40. echo '<td>' . htmlspecialchars($row['MESSAGE']) . '</td>';
  41. echo '<td>' . $row['SERVER'] . '</td>';
  42. echo '<td>' . $time . '</td>';
  43. }
  44. ?>
  45. </tbody>
  46. </table>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </section>
  52. </div>
  53. <?php include('footer.php'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement