{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;">			
	<FORM onSubmit="return CheckForm()" formid="myform"  name="myform" action="import_csv.php" enctype="multipart/form-data" method="post" style="margin:0px">
		<input type="hidden" name="action" value="import">
		{if $msg}
			<div ><font color="red">{$msg}</font></div>
			<div class="cr">&nbsp;</div>	
		{/if}				
		<div class="fl newletter_form">{$lang.newsletter.users.file_CSV}:<font color="red">*</font>&nbsp;</div>
		<div class="fl">
			<input name="csv_file" class="inpBox" type="file" style="width: 220px">
			&nbsp;
			<A onmouseover=doTooltip(event,29) 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">{$lang.newsletter.users.delimiter}:&nbsp;</div>
		<div class="fl">
			<INPUT type="text" name="delimiter" tabindex="2" value=";" class="inpBox" size="1" maxlength="1">
			&nbsp;
			<A onmouseover=doTooltip(event,79) 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">{$lang.newsletter.users.comment}:&nbsp;</div>
		<div class="fl">
		<input type="text" name="comment" value="" class="inpBox" maxlength="50" style="width: 200px">
		&nbsp;<A onmouseover=doTooltip(event,30) 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">{$lang.newsletter.users.lists}:&nbsp;</div>
		<div class="fl">
			<select name=list[] id="list" multiple size=5 style="width: 200px">
			{section name=k loop=$lists}
				<option value="{$lists[k].id}"
				{section name=j loop=$users[0].LIST}
					{if $lists[k].id == $users[0].LISTID[j]} selected {/if}
				{/section}
				>{$lists[k].name} ({$lists[k].count} subscribers)</option>
			{/section}
			</select>
			&nbsp;
			<A onmouseover=doTooltip(event,31) 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="cr">&nbsp;</div>
	</form>

</div>
</div>
		<div>
			<a class="admin_button_major" onclick="javascript:document.myform.submit();">{$lang.newsletter.button.submit}<span>&nbsp;</span></a>
			<a style="padding-left:20px;" onClick='{literal}if(confirm("Are you sure?")) { document.location.href="index.php" }{/literal}'>{$lang.newsletter.button.cancel}<span>&nbsp;</span></a>
		</div>

{literal}
		<script language="JavaScript">

			function CheckForm()
			{
				var f = document.forms[0];

				if(f.csv_file.value == ""){
					alert("{/literal}{$lang.newsletter.users.enter_csv_file|escape:javascript}{literal}");
					f.csv_file.focus();
					return false;
				}
				if(f.list.selectedIndex == -1){
					alert("{/literal}{$lang.newsletter.users.sel_lists|escape:javascript}{literal}");
					f.list.focus();
					return false;
				}					
				return true;
			}                
		</script>

{/literal}

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