{if $ajax eq 0}{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/flash_chat/admin/roomlist.php?mod=1">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$header.razdel_name}</div>
<div class="cr">&nbsp;</div>{/if}
{*    <div class="user_status_line" style="margin-bottom:0px;width:100%;">
        <div id="tab_news" class="user_status_elem" onclick="links_load('roomlist.php');">
            <a>{$lang.admin_menu.chat_rooms}</a>
        </div>
        <div id="tab_feeds" class="user_status_elem" onclick="links_load('connlist.php');">
            <a>{$lang.admin_menu.chat_connections}</a>
        </div>
        <div class="user_status_elem" onclick="links_load('banlist.php');">
            <a>{$lang.admin_menu.chat_bans}</a>
        </div>
        <div class="user_status_elem_active">
            {$lang.admin_menu.chat_modules}
        </div>
	</div>*}
<div style="padding-top: 10px;">
<table border=0 cellspacing=0 cellpadding=0 width="100%">
<tr class="table_header">
	<td class="main_header_text" align="left">{$header.banners_title.image}</td>
	<td width="200" class="main_header_text" align="center">{$header.banners_title.url}</td>
	<td width="30" class="main_header_text" align="center">{$header.banners_title.target}</td>
	<td width="30" class="main_header_text" align="center">{$header.banners_title.fading}</td>
{*	<td width="30">&nbsp;</td>*}
	<td width="70" align="right">{$lang.button.action}</td>
</tr>
{foreach item=item from=$banners name=i}
<tr {if $smarty.foreach.i.iteration mod 2 eq 1}class="table_row even"{else}class="table_row odd"{/if}>
	<td class="main_content_text" align="left">
	{if $item.ext eq 'swf'}
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
		type="application/x-shockwave-flash">
		<param name="movie" value="{$site_root}/flash_chat/modules/banner/{$item.src}" />
		<param name="quality" value="high" />
		<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
		<embed src="{$site_root}/flash_chat/modules/banner/{$item.src}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
	</object>
	{else}
	<img src="{$site_root}/flash_chat/modules/banner/{$item.src}" alt="" border="0">
	{/if}
	</td>
	<td valign="top" class="main_content_text" align="center">{$item.url}</td>
	<td valign="top" class="main_content_text" align="center">{$item.target}</td>
	<td valign="top" class="main_content_text" align="center">{if $item.fading eq 'true'}{$header.banners_module.true}{else}{$header.banners_module.false}{/if}</td>
	<td valign="top" align="center">
{*		<a class="admin_button" onclick="document.location.href='modules.php?sel=edit_banner&num_banner={$item.num}'">{$lang.button.edit}<span>&nbsp;</span></a>*}
					<div class="block_action fr" style="display: none;float:right;">
						<div class="action_del" style="display: block;">
							<img width="16" alt="" src="{$site_root}{$template_root}/images/photo_delete.png" onclick="{literal} if (confirm('{/literal}{$header.del_confirm}{literal}')) {document.location.href='modules.php?sel=delete_banner&num_banner={/literal}{$item.num}{literal}'}{/literal}">
						</div>
					</div>			
{*	</td>
	<td valign="top" align="center">*}<div style="width:15px;float:right;" class="fl">&nbsp;</div>
{*		<a class="admin_button" onclick="{literal} if (confirm('{/literal}{$header.del_confirm}{literal}')) {document.location.href='modules.php?sel=delete_banner&num_banner={/literal}{$item.num}{literal}'}{/literal}">{$lang.button.delete}<span>&nbsp;</span></a>*}
					<div class="block_action fr" style="display: none;float:right;">
						<div class="action_edit" style="display: block;">
							<img width="16" alt="" src="{$site_root}{$template_root}/images/edit.png" onclick="document.location.href='modules.php?sel=edit_banner&num_banner={$item.num}'">
						</div>
					</div>			
	</td>
</tr>
{foreachelse}
		<tr height="40">
			<td class="main_error_text" align="left" colspan="4">{$lang.interests_spr.empty}</td>
		</tr>
{/foreach}
<tr class="table_header"><td colspan="6">&nbsp;</td></tr>
</table>
<table style="margin-top:15px;">
<tr bgcolor="#FFFFFF">
	<td colspan="6">
		<a class="admin_button_major" onclick="document.location.href='modules.php?sel=edit_banner&num_banner=0'">{$lang.button.add}<span>&nbsp;</span></a>
	</td>
</tr>
</table>
</div>{if $ajax eq 0}
{*<p align="right" class="main_header_text">&copy;<a href="http://tufat.com/" target="_blank">TUFaT.com</a> </p>*}
{include file="$admingentemplates/admin_bottom.tpl"}{/if}