Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('header.php');
- ?>
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- <?php echo ManagerName ?> <small>Chat</small>
- </h1>
- </section>
- <!-- Main content -->
- <section class="content">
- <div class="row">
- <div class="col-xs-10 col-xs-offset-1" style="margin-top: 20px;">
- <div class="box box-danger">
- <div class="panel-heading">
- <h4 class="panel-title">Chat</h4>
- </div>
- <div class="panel-body">
- <div id="chat">
- <table id="bans" class="table table-striped table-bordered" cellspacing="0" width="100%">
- <thead>
- <tr>
- <th>Sender</th>
- <th>Message</th>
- <th>Server</th>
- <th>Time</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $sql = "SELECT * FROM chat ORDER BY ID DESC";
- foreach ($pdo->query($sql) as $row) {
- $time = date("H:i:s d. M", $row["TIME"] / 1000);
- echo '<tr>';
- echo '<td><a href="player.php?uuid=' . $row['UUID'] . '">' . getName($row['UUID']) . '</a></td>';
- echo '<td>' . htmlspecialchars($row['MESSAGE']) . '</td>';
- echo '<td>' . $row['SERVER'] . '</td>';
- echo '<td>' . $time . '</td>';
- }
- ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- </div>
- <?php include('footer.php'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement