show when a ban was added, fixes #250

This commit is contained in:
Shish 2013-08-05 20:46:54 +01:00
parent 44deff21a8
commit 194b68e046

View File

@ -24,6 +24,7 @@ class IPBanTheme extends Themelet {
<td width='12%'>{$ban[$prefix.'ip']}</td>
<td>{$ban[$prefix.'reason']}</td>
<td width='10%'>{$ban['banner_name']}</td>
<td width='10%'>".substr($ban[$prefix.'added'], 0, 10)."</td>
<td width='15%'>{$end_human}</td>
".make_form(make_link("ip_ban/remove"))."
<td width='8%'>
@ -37,13 +38,14 @@ class IPBanTheme extends Themelet {
$html = "
<a href='".make_link("ip_ban/list", "all=on")."'>Show All</a>
<p><table id='bans' class='sortable zebra'>
<thead><tr><th>IP</th><th>Reason</th><th>By</th><th>Until</th><th>Action</th></tr></thead>
<thead><tr><th>IP</th><th>Reason</th><th>By</th><th>From</th><th>Until</th><th>Action</th></tr></thead>
$h_bans
<tfoot><tr id='add'>
".make_form(make_link("ip_ban/add"))."
<td><input type='text' name='ip' value='".html_escape(@$_GET['ip'])."'></td>
<td><input type='text' name='reason' value='".html_escape(@$_GET['reason'])."'></td>
<td>{$user->name}</td>
<td></td>
<td><input type='text' name='end' value='".html_escape(@$_GET['end'])."'></td>
<td><input type='submit' value='Ban'></td>
</form>