{if $ajax eq 0}{include file="$admin_nl_gentemplates/admin_nl_site_head.tpl"}{/if}
<div style="height:4px;font-size:0px;" class="user_operation_line"></div>
<div class="cr"></div>
<div class="user_status_line">
        <div id="tab_1" class="user_status_elem" onclick="ShowEditor('1','settings.php?ajax=1');">
            <a>{$lang.admin_menu.nl_general}</a>
        </div>
        <div id="tab_2" class="user_status_elem" onclick="ShowEditor('2','template/index.php?ajax=1');">
            <a>{$lang.admin_menu.nl_templates}</a>
        </div>
        <div id="tab_3" class="user_status_elem" onclick="ShowEditor('3','forms/index.php?ajax=1');">
            <a>{$lang.admin_menu.nl_forms}</a>
        </div>
        <div id="tab_4" class="user_status_elem_active" onclick="ShowEditor('4','attaches/index.php?ajax=1');">
            {$lang.admin_menu.nl_attachments}
        </div>
        <div id="tab_5" class="user_status_elem" onclick="ShowEditor('5','smtp_servers/index.php?ajax=1');">
            <a>{$lang.admin_menu.nl_smtp_servers}</a>
        </div>
        <div class="cr"></div>
        <div class="panel_subtabs" style="width: 100%">
        	<div class="panel_content" style="width: 97%">
<div style="border:0px;">
<div class="panel_content" style="margin-bottom:0px;margin-left: 0px;">
<form id="myform" name="EditAttach" class="EditAttach" action="attaches/change.php?id={$rel.id}&ajax=1" method="post" enctype="multipart/form-data" style="margin:0px">
<input type="hidden" name="action" value="change">
	
	<div class="fl newletter_form"><font color="red">*</font>&nbsp;{$lang.newsletter.attaches.attach_file}:&nbsp;</div>
	<div class="fl">{if $rel.id == 0}<input type="file" name="attach" class="inpBox" style="width:249 px;" tabindex="1">{else} <a href="{$rel.file_path}" target="_blank">{$rel.file_name} ({$rel.size})</a>{/if}
	&nbsp;<A onmouseover=doTooltip(event,73) onmouseout=hideTip() href="#"><IMG src="{$site_root}{$template_root}/images/newsletter/icot.gif" width="12" height="12" border=0 align="absmiddle"></A></div>
	<div class="cr">&nbsp;</div>
	<div class="fl newletter_form"><font color="red">*</font>&nbsp;{$lang.newsletter.attaches.description}:&nbsp;</div>
	<div class="fl"><INPUT type="text" name="description" class="inpBox" size="44" style="width:249 px;" maxlength="254" value="{$rel.description}" tabindex="2">
	&nbsp;<A onmouseover=doTooltip(event,74) onmouseout=hideTip() href="#"><IMG src="{$site_root}{$template_root}/images/newsletter/icot.gif" width="12" height="12" border=0 align="absmiddle"></A></div>
	<div class="cr">&nbsp;</div>

</form>
</div>
</div>
</div>
</div>
	<div>
		<a style="float:left;" class="admin_button_major" onclick="javascript:submit();">{$lang.newsletter.button.save}<span>&nbsp;</span></a>
		<a style="float:left;" class="admin_button_cancel" onClick="{literal}if(confirm('Are you sure?')) { ShowBlock('show_block','attaches/index.php?ajax=1'); }{/literal}">{$lang.newsletter.button.cancel}<span>&nbsp;</span></a>
	</div>

<script language="JavaScript" type="text/JavaScript">
{literal}
			var options = { 
				success: function(data){
					ajaxLoadingImage(0, 'show_block');
					$('#show_block').html(data);
					/*$('#show_block').oneTime(3000, function() {
						$('#show_block').fadeOut(500);
					});*/
					return false;
				},
				beforeSubmit: function() { 
					//ajaxIndicator(1, 'show_block');
					ajaxLoadingImage(1, 'show_block');
				}
			};
			function submit(){
					$('.EditAttach').ajaxSubmit(options);
			}
{/literal}			
</script>
{if $ajax eq 0}{include file="$admin_nl_gentemplates/admin_nl_site_foot.tpl"}{/if}