{include file="$admin_nl_gentemplates/admin_nl_site_head.tpl"}
        <div class="panel_section" style="width: 100%;">
        	<div class="panel_content" style="width: 97%;margin-top: 15px;">			
{if $list_count > 0}
	<form formid="myform"  name="myform" action="send.php?id={$id}" method="post" style="margin:0px">
	
	<div class="fl newletter_form_create"><font color="red">*</font> {$lang.newsletter.nls.mailing_lists}:&nbsp;</div>
	<div class="fl">
		<select name=list[] id="list" multiple size=5 class="inpBox" style="width:200px">
		{section name=k loop=$lists}
			<option value="{$lists[k].id}" 
				{section name=j loop=$list_array}
					{if $lists[k].id == $list_array[j]} selected {/if}
				{/section}	
			>{$lists[k].name} ({$lists[k].count} subscribers)</option>
		{/section}
		</select>
	</div>
	<div class="cr">&nbsp;</div>
	<div class="fl newletter_form_create">{$lang.newsletter.nls.list_status}:&nbsp;</div>
	<div class="fl">
		<select name=match_confirm id="match_list" class="inpBox" tabindex="2">
		<option value="0" {if $rel.match_confirm eq 0}selected{/if}>{$lang.newsletter.both}</option>
		<option value="1" {if $rel.match_confirm eq 1}selected{/if}>{$lang.newsletter.nls.confirm_subscr}</option>
		<option value="2" {if $rel.match_confirm eq 2}selected{/if}>{$lang.newsletter.nls.unconfirm_subscr}</option>
		</select>&nbsp;<A onmouseover=doTooltip(event,71) 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">{$lang.newsletter.nls.general_status}:&nbsp;</div>
	<div class="fl">
		<select name=match_status id="match_status" class="inpBox" tabindex="3">
		<option value="0" {if $rel.match_status eq 0}selected{/if}>{$lang.newsletter.both}</option>
		<option value="1" {if $rel.match_status eq 1}selected{/if}>{$lang.newsletter.nls.active}</option>
		<option value="2" {if $rel.match_status eq 2}selected{/if}>{$lang.newsletter.nls.inactive}</option>
		</select>&nbsp;<A onmouseover=doTooltip(event,72) onmouseout=hideTip() href="#"><IMG src="{$site_root}{$template_root}/images/newsletter/icot.gif" width="12" height="12" border=0 align="absmiddle"></A>
	</div>

	</form>
	{literal}
	<script language="JavaScript">
		function CheckForm(){
			var f = document.forms[0];
			if(f.list.selectedIndex == -1){
				alert("{/literal}{$lang.newsletter.nls.sel_list|escape:javascript}{literal}");
				f.list.focus();
				return false;
			}
			return true;
		}
	</script>
	{/literal}
{else}
	<br>
	<p align="center"  class="main_header_text">{$lang.newsletter.nls.no_list_with_subscr}</p>
	<br>
{/if}
</div>
</div>	
	<div>
		<a class="admin_button_major" onclick="javascript: if(CheckForm()) document.myform.submit();">Continue<span>&nbsp;</span></a>
	</div>

{include file="$admin_nl_gentemplates/admin_nl_site_foot.tpl"}