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

38 lines
673 B
Smarty

<?php
$id = $_GET['did'];
if(isset($id))
{
$village = $database->getVillage($id);
?>
<br /><br />
<table id="profile">
<thead>
<tr>
<th colspan="3" class="on"><a href="#"><?php echo $village['name']; ?></a>'s Build Log</th>
</tr>
<tr>
<td class="on">#</td>
<td>Event</td>
</tr>
</thead>
<?php
$sql = "SELECT * FROM ".TB_PREFIX."build_log WHERE wid = ".$_GET['did']."";
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result))
{
$j++;
echo '
<tr>
<td class="on">'.$j.'</td>
<td>'.$row['log'].'</td>
</tr>';
}
?>
</thead>
</table><?php
}
else
{
include("404.tpl");
}
?>