|
<?php require_once('./templates/admin/overall_header.tpl.php'); ?>
|
|
<div id="content">
|
|
<a href="index.php?mode=admin&submode=addban" class="btn">Add ban</a>
|
|
<br />
|
|
<div class="forum_table">
|
|
<div class="row">
|
|
<div class="hc1" style="width: 150px">Banlist</div>
|
|
<div class="hc2"> </div>
|
|
<div class="hc4" style="width: 70px"> </div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="tc1 tab_desc" style="width: 150px">Username</div>
|
|
<div class="tc2 tab_desc">Reason</div>
|
|
<div class="tc4 tab_desc" style="width: 70px"></div>
|
|
</div>
|
|
<?php
|
|
for ($i=0; $i<count($this->TPL['bans_list']); $i++)
|
|
{
|
|
echo '<div class="row">'."\n";
|
|
echo "\t\t\t".'<div class="tc1 tc2" style="width: 150px">'.$this->TPL['bans_list'][$i]['nick'].'</div>'."\n";
|
|
echo "\t\t\t".'<div class="tc2" style="font-style:italic">'.$this->TPL['bans_list'][$i]['reason'].'</div>'."\n";
|
|
echo "\t\t\t".'<div class="tc4" style="width: 70px">
|
|
<a href="index.php?mode=admin&submode=delban&id='.$this->TPL['bans_list'][$i]['ban_id'].'" class="btn_small">Delete</a>
|
|
</div>';
|
|
echo "\t\t".'</div>'."\n";
|
|
}
|
|
if (count($this->TPL['bans_list']) == 0)
|
|
{
|
|
echo '<div class="rcol">Banlist is empty.</div>';
|
|
}
|
|
?>
|
|
</div>
|
|
<br>
|
|
</div>
|
|
|
|
<?php require_once('./templates/overall_footer.tpl.php'); ?>
|