Files
TravianZ/Admin/Templates/userillegallog.tpl
T
2017-10-20 17:29:34 +02:00

39 lines
759 B
Smarty

<?php
$id = (int) $_GET['uid'];
if(isset($id))
{
?>
<table cellpadding="1" cellspacing="1" id="member">
<thead>
<tr>
<th colspan="10"><a href="admin.php?p=player&uid=<?php echo $player['id']; ?>"><?php echo $player['username']; ?></a>'s Illegals Log</th>
</tr>
<tr>
<td>Offence</td>
<td>ID</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."illegal_log WHERE user = $id";
$result = mysqli_query($GLOBALS["link"], $sql);
while($row = mysqli_fetch_assoc($result))
{
$i++;
echo '
<tr>
<td>'.$i.'</td>
<td>'.$row['id'].'</td>
<td>'.$row['log'].'</td>
</tr>';
}
?>
</tbody>
</table><?php
}
else
{
include("404.tpl");
}
?>