{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_modules.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$lang.forum.razdel_name}</div>
<div class="cr">&nbsp;</div>
<div class="cr">&nbsp;</div>
<div class="help_text" style="display:block;">
    <div class="close_help">
        <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
    </div>
    <div class="help_body">
        <span class="help_title">{$lang.help}:</span>{$lang.admin_help.banned_users}
    </div>
</div>
<div class="cr">&nbsp;</div>
<ul class="tabs">
    <li>
        <a href="admin_forum.php">{$lang.admin_menu.forum_index}</a>
    </li>
    <li>
        <a class="current">{$lang.admin_menu.forum_bans}</a>
    </li>
</ul>
		<div class="user_operation_line">
			<div onclick="document.banned.submit();" class="uol_item">
				<div class="uol_in_item">{$lang.forum.unban}</div>
			</div>
		</div>
		<div class="cr"></div>

<div>
{strip}
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
	<td valign=top>
		<div style="margin: 0px; padding-bottom: 10px; padding-left: 13px;">
		</div>
		<div>
			<form method="post" action="admin_forum.php" style="margin: 0px; padding: 0px;" name="banned">
			<input type="hidden" name="sel" value="unban">
    		<table border=0 cellspacing=0 cellpadding=0 width="100%">
			{if $links}
			<tr bgcolor="#ffffff">
				<td height="20" colspan=4 align="left"  class="main_content_text" >{$links}</td>
			</tr>
			{/if}
           	<tr class="table_header">
                <td class="main_header_link" align="center" width="15"><input type="checkbox" id="select_all" name="select_all" onclick="PutAll()" /></td>
           		<td class="main_header_link" align="center" width="15">{$lang.forum.num}</td>
                <td class="main_header_link" align="left">{$lang.forum.login}</td>
                <td class="main_header_link" align="left" width="80">{$lang.forum.date}</td>
          	</tr>
			{if $bans ne 'empty'}
			{foreach name=f item=item from=$bans}
			<tr {if $smarty.foreach.f.iteration mod 2 eq 1}class="table_row even"{else}class="table_row odd"{/if}>
                <td class="main_content_text" align="center"><input type="checkbox" value="{$item.id}" name="id[]"></td>
            	<td class="main_content_text" align="center">{$item.num}</td>
                <td class="main_content_text" align="left"><a href="admin_users.php?sel=edituser&editpage=1&page=1&id={$item.id_user}" target="_blank">{$item.login}</a></td>
                <td class="main_content_text" align="left">{$item.b_date}</td>
			</tr>
			{/foreach}
			{else}
			<tr height="40">
				<td class="main_error_text" align="left" colspan="4">{$lang.forum.no_banned_users}</td>
			</tr>
			{/if}
{*			<tr>
				<td colspan="3">&nbsp;</td>
				<td><input type="submit" value="{$lang.forum.unban}"></td>
			</tr>*}
			<tr class="table_header"><td colspan="4"></td></tr>
			</table>
			</form>
		</div>
	</td>
</tr>
</table>
<!-- end main cell -->
{/strip}
</div>
<script type="text/javascript">
{literal}
function PutAll() {
         var o=document.getElementsByName('select_all')	
         var i
         if (o[0].checked){                    
            o=document.getElementsByName('id[]')
            for (i=0; i<o.length; i++){                
                o[i].checked = true
            }            
         }
         else{
            o=document.getElementsByName('id[]')
            for (i=0; i<o.length; i++){                
                o[i].checked = false
            }            
         }             
}
{/literal}
</script>
{include file="$admingentemplates/admin_bottom.tpl"}