<div class="panel panel-default"> <div class="panel-heading"> <i class="fa fa-bell fa-fw"></i> Events </div> <!-- /.panel-heading --> <div class="panel-body"> <div class="list-group"> <tbody> <?php $query = "SELECT type,message,timestamp FROM events ORDER by id DESC LIMIT 8"; if ($result = $mysqli->query($query)) { /* fetch object array */ while ($row = $result->fetch_assoc()) { $type = $row['type']; echo '<a href="#" class="list-group-item">'; echo '<i class="fa fa-' . event_id_to_ico($type) . ' fa-fw"></i>'; if ($db_language == "de") { if ($type == 1) { echo "Der Gameserver " . $row['message'] . " wurde gestartet."; } elseif ($type == 2) { echo "Der Gameserver " . $row['message'] . " wurde angehalten."; } elseif ($type == 3) { echo "Der Gameserver " . $row['message'] . " wurde gelöscht."; } elseif ($type == 4) { echo "Der Gameserver " . $row['message'] . " wird aktualisiert."; } elseif ($type == 5) { echo "Der Gameserver " . $row['message'] . " wird neuinstalliert."; } elseif ($type == 6) { echo "Der Gameserver " . $row['message'] . " wurde hinzugefügt."; } elseif ($type == 7) { $tmp = explode(":", $row['message']);
<th><?php echo _events_message; ?> </th> </tr> </thead> <tbody> <?php $query = "SELECT type,message,timestamp FROM events ORDER by id DESC"; if ($result = $mysqli->query($query)) { /* fetch object array */ while ($row = $result->fetch_assoc()) { $type = $row['type']; echo '<tr>'; echo '<td>' . htmlentities(date('d-m-Y H:i:s', $row['timestamp'])) . '</td>'; echo '<td><i class="fa fa-' . htmlentities(event_id_to_ico($type)) . ' fa-fw"></i> '; if ($db_language == "de") { if ($type == 1) { echo "Der Gameserver " . $row['message'] . " wurde gestartet.</td>"; } elseif ($type == 2) { echo "Der Gameserver " . $row['message'] . " wurde angehalten.</td>"; } elseif ($type == 3) { echo "Der Gameserver " . $row['message'] . " wurde gelöscht.</td>"; } elseif ($type == 4) { echo "Der Gameserver " . $row['message'] . " wird aktualisiert.</td>"; } elseif ($type == 5) { echo "Der Gameserver " . $row['message'] . " wird neuinstalliert.</td>"; } elseif ($type == 6) { echo "Der Gameserver " . $row['message'] . " wurde hinzugefügt.</td>"; } elseif ($type == 7) { $tmp = explode(":", $row['message']);