{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()" id="myform" name="EditList" action="change.php?id={$rel.id}" method="post" style="margin:0px">
	<input type="hidden" name="action" value="change">
	<input type="hidden" name="Status" value="1">
		
	<div class="fl newletter_export"><font color="red">*</font> {$lang.newsletter.lists.list_name}:&nbsp;</div>
	<div class="fl">
		<input type="text" name="name" class="inpBox"  style="width: 200px" maxlength="50" value="{$rel.name}">
		&nbsp;<A onmouseover=doTooltip(event,32) 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_export"><font color="red">*</font> {$lang.newsletter.lists.list_owners_name}:&nbsp;</div>
	<div class="fl"><input type="text" name="owner_name" class="inpBox" maxlength="50" value="{$rel.owner_name}" style="width: 200px">
	&nbsp;<A onmouseover=doTooltip(event,33) 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_export"><font color="red">*</font> {$lang.newsletter.lists.list_owners_email}:&nbsp;</div>
	<div class="fl"><input type="text" name="owner_email" class="inpBox"  style="width: 200px" maxlength="50" value="{$rel.owner_email}">
	&nbsp;<A onmouseover=doTooltip(event,34) 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_export"> {$lang.newsletter.lists.site_group}:&nbsp;</div>
	<div class="fl">
		<select name="site_group" style="width: 200px">
		<option value="0">{$lang.newsletter.lists.group_not_certain}</option>
		{foreach item=item from=$group_select}
        <option value="{$item.id}" {if $rel.site_group eq $item.id}selected{/if}>{$item.name} ({$item.count})</option>{/foreach}
		</select>
		&nbsp;<A onmouseover=doTooltip(event,70) 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_export">{$lang.newsletter.lists.site_status}:&nbsp;</div>
	<div class="fl">
		<input type="checkbox" name="site_status" class="inpBox" value="1" {if $rel.site_status}checked{/if}>
	</div>
	

</form>
</div>
</div>
	<div>
		<a style="float: left;" class="admin_button_major" onclick="javascript:if (CheckForm())document.EditList.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?")) { document.location.href="index.php" }{/literal}'>{$lang.newsletter.button.cancel}<span>&nbsp;</span></a>		
		<!--<a class="admin_button_major" onclick="javascript:if (CheckForm())document.EditList.submit();">{$lang.newsletter.button.save}<span>&nbsp;</span></a>		
		<a class="admin_button_major" 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.name.value == ""){
                            alert("{/literal}{$lang.newsletter.lists.alert_empty_maillist_name|escape:javascript}{literal}");
                            f.name.focus();
                            return false;
                        }

                        if(f.owner_name.value == "") {
                            alert("{/literal}{$lang.newsletter.lists.alert_empty_owner_maillist_name|escape:javascript}{literal}");
                            f.owner_name.focus();
                            return false;
                        }

                        if(f.owner_email.value.indexOf(".") == -1 || f.owner_email.value.indexOf("@") == -1){
                            alert("{/literal}{$lang.newsletter.lists.alert_empty_email_owner_maillist_name|escape:javascript}{literal}");
                            f.owner_email.focus();
                            return false;
                        }

                        return true;
                    }
                
                </script>

{/literal}

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