Files
TravianZ/Admin/Templates/userillegallog.tpl
T
2013-06-16 10:38:34 +03:00

40 lines
827 B
Smarty

<?php
$id = $_GET['uid'];
if(isset($id))
{
$player = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = $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 = mysql_query($sql);
while($row = mysql_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");
}
?>