{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_active" onclick="ShowEditor('3','forms/index.php?ajax=1');">
            {$lang.admin_menu.nl_forms}
        </div>
        <div id="tab_4" class="user_status_elem" onclick="ShowEditor('4','attaches/index.php?ajax=1');">
            <a>{$lang.admin_menu.nl_attachments}</a>
        </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" class="myform"  name="myform" action="forms/create.php?ajax=1&id={$form.id}" method="post" style="margin:0px">
	{if $FormType == 'unsub'}
		{if $RequireConfirm == 1}		
			<div class="fl newletter_form_create"><font color="red">*</font> {$lang.newsletter.forms.conf_email}:&nbsp;</div>
			<div class="fl">
				<TEXTAREA name="Responses[ConfirmEmail]" id="Responses[ConfirmEmail]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.conf_uns_email_text}</TEXTAREA>
				&nbsp;<A onmouseover=doTooltip(event,41) 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_create"><font color="red">*</font> {$lang.newsletter.forms.conf_page}:&nbsp;</div>
			<div class="fl">
				<TEXTAREA  name="Responses[ConfirmPage]" id="Responses[ConfirmPage]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.conf_uns_page_text}</TEXTAREA>
				&nbsp;<A onmouseover=doTooltip(event,42) 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_create"><font color="red">*</font> <b><i>OR</i></b> {$lang.newsletter.forms.conf_page_url}:&nbsp;</div>
			<div class="fl">
				<INPUT type="text" name="Responses[ConfirmURL]" class="inpBox" size="62" maxlength="1000" value="{$lang.newsletter.forms.conf_uns_page_url_text}">
				&nbsp;<A onmouseover=doTooltip(event,43) onmouseout=hideTip() href="#"><IMG src="{$site_root}{$template_root}/images/newsletter/icot.gif" width="12" height="12" border=0 align="absmiddle"></A>
			</div>		
		{/if}
		<div class="cr">&nbsp;</div>
		<div class="fl newletter_form_create"><font color="red">*</font> {$lang.newsletter.forms.thankyou_email}:&nbsp;</div>
		<div class="fl">
			<TEXTAREA name="Responses[ThanksEmail]" id="Responses[ThanksEmail]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.thankyou_uns_email_text}</TEXTAREA><div style="display:none" id="d9284"></div>
			&nbsp;<A onmouseover=doTooltip(event,47) 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_create"><font color="red">*</font> {$lang.newsletter.forms.thankyou_page}:&nbsp;</div>
		<div class="fl">
			<TEXTAREA  name="Responses[ThanksPage]" id="Responses[ThanksPage]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.thankyou_uns_page_text}</TEXTAREA>
			&nbsp;<A onmouseover=doTooltip(event,48) 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_create"><font color="red">*</font> <b><i>OR</i></b> {$lang.newsletter.forms.thankyou_page_url}:&nbsp;</div>
		<div class="fl">
			<INPUT type="text" name="Responses[ThanksURL]" class="inpBox" size="62" maxlength="1000" value="{$lang.newsletter.forms.thankyou_uns_page_url_text}">
			&nbsp;<A onmouseover=doTooltip(event,49) onmouseout=hideTip() href="#"><IMG src="{$site_root}{$template_root}/images/newsletter/icot.gif" width="12" height="12" border=0 align="absmiddle"></A>
		</div>
	{/if}

	{if $FormType == 'sub'}
		{if $RequireConfirm == 1}
			<div class="fl newletter_form_create"><font color="red">*</font> {$lang.newsletter.forms.conf_email}:&nbsp;</div>
			<div class="fl">
				<TEXTAREA name="Responses[ConfirmEmail]" id="Responses[ConfirmEmail]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.conf_s_email_text}</TEXTAREA>
				&nbsp;<A onmouseover=doTooltip(event,44) 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_create"><font color="red">*</font> {$lang.newsletter.forms.conf_page}:&nbsp;</div>
			<div class="fl">
				<TEXTAREA  name="Responses[ConfirmPage]" id="Responses[ConfirmPage]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.conf_s_conf_page_text}</TEXTAREA>
				&nbsp;<A onmouseover=doTooltip(event,45) 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_create"><font color="red">*</font> <b><i>OR</i></b> {$lang.newsletter.forms.conf_page_url}:&nbsp;</div>
			<div class="fl">
				<INPUT type="text" name="Responses[ConfirmURL]" class="inpBox" style="width: 404px; " maxlength="1000" value="{$lang.newsletter.forms.conf_s_conf_url_text}">
				&nbsp;<A onmouseover=doTooltip(event,46) onmouseout=hideTip() href="#"><IMG src="{$site_root}{$template_root}/images/newsletter/icot.gif" width="12" height="12" border=0 align="absmiddle"></A>
			</div>
		{/if}		
		<div class="cr">&nbsp;</div>
		<div class="fl newletter_form_create"><font color="red">*</font> {$lang.newsletter.forms.thankyou_email}:&nbsp;</div>
		<div class="fl">
			<TEXTAREA  name="Responses[ThanksEmail]" id="Responses[ThanksEmail]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.thankyou_s_email_text}</TEXTAREA><div style="display:none" id="d9284"></div>
			&nbsp;<A onmouseover=doTooltip(event,50) 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_create"><font color="red">*</font> {$lang.newsletter.forms.thankyou_page}:&nbsp;</div>
		<div class="fl">
			<TEXTAREA  name="Responses[ThanksPage]" id="Responses[ThanksPage]" class="inpBox" cols="64" rows="5">{$lang.newsletter.forms.thankyou_s_page_text}</TEXTAREA>
			&nbsp;<A onmouseover=doTooltip(event,51) 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_create"><font color="red">*</font> <b><i>OR</i></b> {$lang.newsletter.forms.thankyou_page_url}:&nbsp;</div>
		<div class="fl">
			<INPUT type="text" name="Responses[ThanksURL]" class="inpBox" style="width: 404px;" maxlength="1000" value="{$lang.newsletter.forms.thankyou_s_page_url_text}">
			&nbsp;<A onmouseover=doTooltip(event,52) onmouseout=hideTip() href="#"><IMG src="{$site_root}{$template_root}/images/newsletter/icot.gif" width="12" height="12" border=0 align="absmiddle"></A>
		</div>
	{/if}
	
	<input type="hidden" name="FormType" value="{$FormType}">
	<input type="hidden" name="FormName" value="{$name}">
	{section name=c loop=$Lists}
		<input type="hidden" name="Lists[]" value="{$Lists[c]}">
	{/section}
	<input type="hidden" name="RequireConfirm" value="{$RequireConfirm}">
	<input type="hidden" name="SendThankyou" value="{$SendThankyou}">
</form>
</div>
</div>
</div>
</div>
	<div class="cr">&nbsp;</div>
	<div>
		<a style="float:left;" class="admin_button_major" onclick="javascript:if (CheckForm())submit();">{$lang.newsletter.button.save}<span>&nbsp;</span></a>		
		<a style="float:left;margin-top:12px;margin-left:10px;" onClick="{literal}if(confirm('Are you sure?')) { ShowBlock('show_block','forms/index.php?ajax=1'); }{/literal}">{$lang.newsletter.button.cancel}<span>&nbsp;</span></a>
	</div>
{literal}
<script language="JavaScript">
			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(){
					$('.myform').ajaxSubmit(options);
			}
function CheckForm(){
	return true;
}
</script>
{/literal}
{if $ajax eq 0}
{include file="$admin_nl_gentemplates/admin_nl_site_foot.tpl"}{/if}