<h1><?php echo isset($this->vars['L_BM_TITLE']) ? $this->vars['L_BM_TITLE'] : ''; ?></h1> 
<p><?php echo isset($this->vars['L_BM_EXPLAIN']) ? $this->vars['L_BM_EXPLAIN'] : ''; ?></p>
<p>
	<form action="<?php echo isset($this->vars['S_BANCENTER_ACTION']) ? $this->vars['S_BANCENTER_ACTION'] : ''; ?>" method="post">
		<table width="100%" cellpadding="1" cellspacing="0" border="0">
			<tr>
				<td width="50%" align="right">
					<span class="genmed"><?php echo isset($this->vars['L_SHOW_BANS_BY']) ? $this->vars['L_SHOW_BANS_BY'] : ''; ?>:&nbsp;</span>
				</td>
				<td width="1">
					<select name="show"> 
						<option value="username"<?php echo isset($this->vars['USERNAME_SELECTED']) ? $this->vars['USERNAME_SELECTED'] : ''; ?>><?php echo isset($this->vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : ''; ?></option>
						<option value="ip"<?php echo isset($this->vars['IP_SELECTED']) ? $this->vars['IP_SELECTED'] : ''; ?>><?php echo isset($this->vars['L_IP']) ? $this->vars['L_IP'] : ''; ?></option>
						<option value="email"<?php echo isset($this->vars['EMAIL_SELECTED']) ? $this->vars['EMAIL_SELECTED'] : ''; ?>><?php echo isset($this->vars['L_EMAIL']) ? $this->vars['L_EMAIL'] : ''; ?></option>
						<option value="all"<?php echo isset($this->vars['ALL_SELECTED']) ? $this->vars['ALL_SELECTED'] : ''; ?>><?php echo isset($this->vars['L_ALL']) ? $this->vars['L_ALL'] : ''; ?></option>
					</select>
				</td>
				<td width="50%" align="left">
					<input type="submit" class="liteoption" name="show_submit" value="<?php echo isset($this->vars['L_SHOW']) ? $this->vars['L_SHOW'] : ''; ?>">
				</td>
			</tr>
			<tr>
				<td width="50%" align="right">
					<span class="genmed"><?php echo isset($this->vars['L_ORDER']) ? $this->vars['L_ORDER'] : ''; ?>:&nbsp;</span>
				</td>
				<td width="1">
					<select name="order"> 
						<option value="ASC"<?php echo isset($this->vars['ASC_SELECTED']) ? $this->vars['ASC_SELECTED'] : ''; ?>><?php echo isset($this->vars['L_ASCENDING']) ? $this->vars['L_ASCENDING'] : ''; ?></option>
						<option value="DESC"<?php echo isset($this->vars['DESC_SELECTED']) ? $this->vars['DESC_SELECTED'] : ''; ?>><?php echo isset($this->vars['L_DESCENDING']) ? $this->vars['L_DESCENDING'] : ''; ?></option>
					</select>
				</td>
				<td width="50%" align="left">
					<input type="submit" class="liteoption" name="sort_submit" value="<?php echo isset($this->vars['L_SORT']) ? $this->vars['L_SORT'] : ''; ?>">
				</td>
			</tr>
		</table>
	</form>
</p>
<form action="<?php echo isset($this->vars['S_BANCENTER_ACTION']) ? $this->vars['S_BANCENTER_ACTION'] : ''; ?>" method="post">
	<table width="100%" cellpadding="3" cellspacing="1" border="0" align="center" class="forumline">
		<tr>
			<?php

$username_header_count = ( isset($this->_tpldata['username_header.']) ) ?  sizeof($this->_tpldata['username_header.']) : 0;
for ($username_header_i = 0; $username_header_i < $username_header_count; $username_header_i++)
{
 $username_header_item = &$this->_tpldata['username_header.'][$username_header_i];

?>
			<th height="25" class="thCornerL" nowrap="nowrap"><?php echo isset($username_header_item['L_USERNAME']) ? $username_header_item['L_USERNAME'] : ''; ?></th>
			<?php

} // END username_header

?>
			<?php

$ip_header_count = ( isset($this->_tpldata['ip_header.']) ) ?  sizeof($this->_tpldata['ip_header.']) : 0;
for ($ip_header_i = 0; $ip_header_i < $ip_header_count; $ip_header_i++)
{
 $ip_header_item = &$this->_tpldata['ip_header.'][$ip_header_i];

?>
			<th height="25" class="thCornerL" nowrap="nowrap"><?php echo isset($ip_header_item['L_IP']) ? $ip_header_item['L_IP'] : ''; ?></th>
			<?php

} // END ip_header

?>
			<?php

$email_header_count = ( isset($this->_tpldata['email_header.']) ) ?  sizeof($this->_tpldata['email_header.']) : 0;
for ($email_header_i = 0; $email_header_i < $email_header_count; $email_header_i++)
{
 $email_header_item = &$this->_tpldata['email_header.'][$email_header_i];

?>
			<th height="25" class="thCornerL" nowrap="nowrap"><?php echo isset($email_header_item['L_EMAIL']) ? $email_header_item['L_EMAIL'] : ''; ?></th>
			<?php

} // END email_header

?>
			<th class="thTop" nowrap="nowrap"><?php echo isset($this->vars['L_BANNED']) ? $this->vars['L_BANNED'] : ''; ?></th>
			<th class="thTop" nowrap="nowrap"><?php echo isset($this->vars['L_EXPIRES']) ? $this->vars['L_EXPIRES'] : ''; ?></th>
			<th class="thTop" nowrap="nowrap"><?php echo isset($this->vars['L_BY']) ? $this->vars['L_BY'] : ''; ?></th>
			<th class="thTop" nowrap="nowrap"><?php echo isset($this->vars['L_REASONS']) ? $this->vars['L_REASONS'] : ''; ?></th>
			<th class="thTop" nowrap="nowrap"><?php echo isset($this->vars['L_EDIT']) ? $this->vars['L_EDIT'] : ''; ?></th>
			<th class="thCornerR" nowrap="nowrap"><?php echo isset($this->vars['L_DELETE']) ? $this->vars['L_DELETE'] : ''; ?></th>
		<tr>
		<?php

$switch_nobans_count = ( isset($this->_tpldata['switch_nobans.']) ) ?  sizeof($this->_tpldata['switch_nobans.']) : 0;
for ($switch_nobans_i = 0; $switch_nobans_i < $switch_nobans_count; $switch_nobans_i++)
{
 $switch_nobans_item = &$this->_tpldata['switch_nobans.'][$switch_nobans_i];

?>
		<tr>
			<td class="row1" colspan="11" align="left">
				<?php echo isset($this->vars['NO_BANS']) ? $this->vars['NO_BANS'] : ''; ?> 
			</td>
		</tr>
		<?php

} // END switch_nobans

?>
		<?php

$rowlist_count = ( isset($this->_tpldata['rowlist.']) ) ?  sizeof($this->_tpldata['rowlist.']) : 0;
for ($rowlist_i = 0; $rowlist_i < $rowlist_count; $rowlist_i++)
{
 $rowlist_item = &$this->_tpldata['rowlist.'][$rowlist_i];

?>
		<tr>
			<?php

$username_content_count = ( isset($rowlist_item['username_content.']) ) ? sizeof($rowlist_item['username_content.']) : 0;
for ($username_content_i = 0; $username_content_i < $username_content_count; $username_content_i++)
{
 $username_content_item = &$rowlist_item['username_content.'][$username_content_i];

?>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><?php echo isset($username_content_item['USERNAME']) ? $username_content_item['USERNAME'] : ''; ?></td>
			<?php

} // END username_content

?>
			<?php

$ip_content_count = ( isset($rowlist_item['ip_content.']) ) ? sizeof($rowlist_item['ip_content.']) : 0;
for ($ip_content_i = 0; $ip_content_i < $ip_content_count; $ip_content_i++)
{
 $ip_content_item = &$rowlist_item['ip_content.'][$ip_content_i];

?>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><?php echo isset($ip_content_item['IP']) ? $ip_content_item['IP'] : ''; ?></td>
			<?php

} // END ip_content

?>
			<?php

$email_content_count = ( isset($rowlist_item['email_content.']) ) ? sizeof($rowlist_item['email_content.']) : 0;
for ($email_content_i = 0; $email_content_i < $email_content_count; $email_content_i++)
{
 $email_content_item = &$rowlist_item['email_content.'][$email_content_i];

?>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><?php echo isset($email_content_item['EMAIL']) ? $email_content_item['EMAIL'] : ''; ?></td>
			<?php

} // END email_content

?>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><?php echo isset($rowlist_item['BAN_TIME']) ? $rowlist_item['BAN_TIME'] : ''; ?></td>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><?php echo isset($rowlist_item['BAN_EXPIRE_TIME']) ? $rowlist_item['BAN_EXPIRE_TIME'] : ''; ?></td>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><?php echo isset($rowlist_item['BAN_BY']) ? $rowlist_item['BAN_BY'] : ''; ?></td>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><?php echo isset($rowlist_item['BAN_REASON']) ? $rowlist_item['BAN_REASON'] : ''; ?></td>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><a href="<?php echo isset($rowlist_item['U_BAN_EDIT']) ? $rowlist_item['U_BAN_EDIT'] : ''; ?>"><?php echo isset($this->vars['L_EDIT']) ? $this->vars['L_EDIT'] : ''; ?></a></td>
			<td class="<?php echo isset($rowlist_item['ROW_CLASS']) ? $rowlist_item['ROW_CLASS'] : ''; ?>" align="center"><input type="checkbox" name="ban_delete[]" value="<?php echo isset($rowlist_item['BAN_ID']) ? $rowlist_item['BAN_ID'] : ''; ?>"></td>
		</tr>
		<?php

} // END rowlist

?>
		<tr>
			<td class="catBottom" align="center" colspan="11">
				<input type="submit" name="add" value="<?php echo isset($this->vars['L_ADD_A_NEW_BAN']) ? $this->vars['L_ADD_A_NEW_BAN'] : ''; ?>" class="liteoption" />&nbsp;&nbsp;<input type="submit" name="delete_submit" value="<?php echo isset($this->vars['L_DELETE_SELECTED_BANS']) ? $this->vars['L_DELETE_SELECTED_BANS'] : ''; ?>" class="liteoption" />
			</td>
		</tr>
	</table>
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td><span class="nav"><?php echo isset($this->vars['PAGE_NUMBER']) ? $this->vars['PAGE_NUMBER'] : ''; ?></span></td>
			<td align="right"><span class="nav"><?php echo isset($this->vars['PAGINATION']) ? $this->vars['PAGINATION'] : ''; ?></span></td>
		</tr>
	</table>
</form>
<br>
