{if $ajax eq 0}{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="modules.php?sel=edit&id_module=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 class="panel_section">
<div class="panel_content">
<form method="post" action="modules.php" enctype="multipart/form-data" name="save">
<input type="hidden" name="sel" value="save_banner">
<input type="hidden" name="num" value="{$banner.num}">
<table cellspacing=0 cellpadding=0>
<tr>
	<td class="main_header_text" valign="top" align="left" style="padding-top:5px;padding-bottom:5px;">{$header.banners_title.image}:&nbsp;&nbsp;</td>
	<td style="padding-top:5px;padding-bottom:5px;">
	{if $banner.num ne 0}
		{if $banner.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/{$banner.src}" />
			<param name="quality" value="high" />
			<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
			<embed src="{$site_root}/flash_chat/modules/banner/{$banner.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/{$banner.src}" alt="" border="0">
		{/if}
	{/if}
	</td>
	<td valign="top" style="padding:5px 0px 5px 5px;"><input type="file" name="banner_file"></td>
</tr>
<tr>
	<td valign="top" class="main_header_text" align="left" style="padding-top:5px;padding-bottom:5px;">{$header.banners_title.url}:&nbsp;&nbsp;</td>
	<td style="padding-top:5px;padding-bottom:5px;"><input type="text" name="url" value="{$banner.url}" style="width: 200px;"></td>
	<td></td>
</tr>
<tr>
	<td valign="top" class="main_header_text" align="left" style="padding-top:5px;padding-bottom:5px;">{$header.banners_title.target}:&nbsp;&nbsp;</td>
	<td style="padding-top:5px;padding-bottom:5px;"><input type="text" name="target" value="{$banner.target}" style="width: 200px;"></td>
	<td></td>
</tr>
<tr>
	<td valign="top" class="main_header_text" align="left" style="padding-top:5px;padding-bottom:5px;">{$header.banners_title.fading}:&nbsp;&nbsp;</td>
	<td style="padding-top:5px;padding-bottom:5px;"><input style="margin-left:0px;" type="checkbox" name="fading" value="1" {if $banner.fading eq 'true'}checked{/if} style="width: 200px;"></td>
	<td></td>
</tr>
</table>
</form>
</div>
</div>
<div style="float:left;width:100%;">
<a class="admin_button_major" href="#" onclick='javascript:document.save.submit();'>{$lang.button.save}<span>&nbsp;</span></a>&nbsp;
	{if $banner.num ne 0}<a class="admin_button" href="#" style="float:right;" onclick="{literal} if (confirm('{/literal}{$header.del_confirm}{literal}')) {document.location.href='modules.php?sel=delete_banner&num_banner={/literal}{$banner.num}{literal}'}{/literal}">{$lang.button.delete}<span>&nbsp;</span></a>&nbsp;{/if}
</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}