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

<div class="panel_section" style="border:0px;">
<div class="panel_content">
<div>Edit Mailing List</div>
<div class="cr">&nbsp;</div>	
<FORM onSubmit="return CheckForm()" formid="myform" name="EditList" action="change.php?id={$rel.id}" method="post" style="margin:0px">
	<input type="hidden" name="action" value="change">
	
		<div>&nbsp;&nbsp;Mailing List Details</div>
	
		<div class="cr">&nbsp;</div>
		<div class="fl newletter_form_create">			
			<span class=req>*</span> List Name:&nbsp;
		</div>
		<div class="fl">
			<INPUT type="text" name="name" class="inputfields" size="44" maxlength="50" value="{$rel.name}">
			<div style="display:none" id="d8564"></div>
		</div>
		
		<div class="cr">&nbsp;</div>
		<div class="fl newletter_form_create">			
			<span class=req>*</span> List Owners Name:&nbsp;
		</div>
		<div class="fl">
			<INPUT type="text" name="owner_name" class="inputfields" size="44" maxlength="50" value="{$rel.owner_name}">
			<div style="display:none" id="d5720"></div>
		</div>
	
		<div class="cr">&nbsp;</div>
		<div class="fl newletter_form_create">
			<span class=req>*</span> List Owners Email:&nbsp;
		</div>
		<div class="fl">
			<INPUT type="text" name="owner_email" class="inputfields" size="44" maxlength="50" value="{$rel.owner_email}">
			<div style="display:none" id="d1578"></div>
		</div>
	
		<div class="cr">&nbsp;</div>
		<div class="fl newletter_form_create">
			<span class="formtext"></span>
		</div>
		<div class="fl">
			<input type="hidden" name="Status" value="1" class="inputfields">
		</div>
	

<!--<TR><TD valign="top" width=200 align="left" class=blockplain><p style="margin-left:10"><span class="formtext"><span class=req>*</span> Allow Subscriptions:&nbsp;</span></TD><TD class=blockplain valign="top"><SELECT class="inputfields" name="CanSubscribe" size="1" ><OPTION value="0" >No</OPTION><OPTION value="1" SELECTED>Yes</OPTION></SELECT><div style="display:none" id="d3396"></div></TD></TR>

<TR><TD valign="top" width=200 align="left" class=blockplain><p style="margin-left:10"><span class="formtext"><span class=req>*</span> Allow Unsubscriptions:&nbsp;</span></TD><TD class=blockplain valign="top"><SELECT class="inputfields" name="CanUnSubscribe" size="1" ><OPTION value="0" >No</OPTION><OPTION value="1" SELECTED>Yes</OPTION></SELECT><div style="display:none" id="d7873"></div></TD></TR>

<TR><TD valign="top" width=200 align="left" class=blockplain><p style="margin-left:10"><span class="formtext"><span class=req>*</span> Allowed Formats:&nbsp;</span></TD><TD class=blockplain valign="top"><SELECT class="inputfields" name="Formats" size="1" ><OPTION value="1" SELECTED>Text and HTML</OPTION><OPTION value="2" >Text Only</OPTION><OPTION value="3" >HTML Only</OPTION></SELECT><div style="display:none" id="d2199"></div></TD></TR>-->
	{literal}
		<div class="cr">&nbsp;</div>
		<div class="fl newletter_form_create">
			<span class="formtext">&nbsp;</span>
		</div>
		<div class="fl">
			<a class="admin_button_major" onclick="document.EditList.submit();">{$lang.button.save}<span>&nbsp;</span></a>&nbsp;
			<a class="admin_button_cancel" onClick='if(confirm("Are you sure?")) { document.location.href="index.php" }'>{$lang.button.vip_cancel}<span>&nbsp;</span></a>
			<!--<input type="submit" name="SubmitButton" value="Save Changes" class="button">&nbsp;
			<input class="button" type=button value="Cancel" onClick='if(confirm("Are you sure?")) { document.location.href="index.php" }'><br>&nbsp;-->
		</div>
	
</FORM>
			

                <script language="JavaScript">

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

                        if(f.ListName.value == "")
                        {
                            alert("Please enter a name for this mailing list.");
                            f.ListName.focus();
                            return false;
                        }

                        if(f.WebmasterName.value == "")
                        {
                            alert("Please enter the name of the person who owns this mailing list.");
                            f.WebmasterName.focus();
                            return false;
                        }

                        if(f.WebmasterEmail.value.indexOf(".") == -1 || f.WebmasterEmail.value.indexOf("@") == -1)
                        {
                            alert("Please enter the email address of the person who owns this mailing list.");
                            f.WebmasterEmail.focus();
                            return false;
                        }

                        return true;
                    }
                
                </script>

{/literal}

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