<head>
<title>User Config Options</title>
<script language="JavaScript">
<!---
function do_copy(sel)
{
	var i;
	for (i=0; i<sel.options.length; i++) {
		if (sel.options[i].selected==true) {
			document.configform._sound_file.value = sel.options[i].text;

			document.embeds[i-1].play();
		}
	}
}

function setnew(sel)
{
	document.configform.cmd.value="profile";
	document.configform.submit();
}

// -->
</script>
</head>

||ifdef||background||
<body background="||nwimg||/||background||">
||else||
<body>
||endif||


||include||nfmenu.tpl||


||ifndef||con_display||
||define||con_display||details||
||endif||

||ifequal||con_display||signature||
	<form name="configform" method="POST" action="||action||">
||else||
	||ifequal||con_display||fetch||
		<form name="configform" method="POST" action="||action||">
	||else||
		||ifequal||con_display||reject_list||
			<form name="configform" method="POST" action="||action||">
		||else||
			<form target="_top" name="configform" method="POST" action="||action||">
		||endif||
	||endif||
||endif||

	<input type="hidden" name="utoken" value="||utoken||">
	<input type="hidden" name="fld" value="||fld||">
||ifequal||con_display||signature||
	<input type="hidden" name="cmd" value="profile_add">
||else||
	<input type="hidden" name="cmd" value="">
||endif||
	<input type="hidden" name="con_display" value="||con_display||">

<table border="1">
<tr><td>
||ifequal||con_display||signature||
	<img type="image" border="0" src="||nwimg||/blank.gif" name="No Save Needed" alt="No Save Needed">
||else||
	||ifequal||con_display||fetch||
		<img type="image" border="0" src="||nwimg||/blank.gif" name="No Save Needed" alt="No Save Needed">
	||else||
		<input type="image" border="0" src="||nwimg||/save.gif" name="saveconfig_||con_display||" alt="Save Config">
	||endif||
||endif||
</td><td>
	||ifnequal||con_display||details||
		<a href="||action||?cmd=config&con_display=details&fld=||fld||&utoken=||utoken||&force_connection=true"><b>User Details</b></a>
	||else||
		<b>User Details</b>
	||endif||
</td><td>
	||ifnequal||con_display||signature||
		<a href="||action||?cmd=profile&con_display=signature&fld=||fld||&utoken=||utoken||&force_connection=true"><b>User Signatures</b></a>
	||else||
		<b>User Signatures</b>
	||endif||
</td><td>
	||ifnequal||con_display||filter||
		<a href="||action||?cmd=config&con_display=filter&force_connection=true&fld=||fld||&utoken=||utoken||&force_connection=true"><b>Filtering Rules</b></a>
	||else||
		<b>Filtering Rules</b>
	||endif||
</td><td>
	||ifnequal||con_display||fetch||
		<a href="||action||?cmd=config&con_display=fetch&fld=||fld||&utoken=||utoken||&force_connection=true"><b>Fetch EMails</b></a>
	||else||
		<b>Fetch EMails</b>
	||endif||
</td><td>

	||ifnequal||con_display||reject_list||
		<a href="||action||?cmd=config&con_display=reject_list&fld=||fld||&utoken=||utoken||&force_connection=true"><b>Reject List</b></a>
	||else||
		<b>Reject List</b>
	||endif||

</td><td>
	<a href="||action||?cmd=list&fld=||fld||&utoken=||utoken||"><b>Mail List</b></a>
</td></tr>

</table>

<!-- Removed out because it caused problems calling the onload function. :-)
<embed src="||nwimg||/newmail1.wav" autostart=false hidden=true>
<embed src="||nwimg||/newmail2.wav" autostart=false hidden=true>
<embed src="||nwimg||/newmail3.wav" autostart=false hidden=true>
<embed src="file:///c|/winnt/media/chimes.wav" autostart=false hidden=true>
-->



||ifdef||error||
	<center>
	<table border="1">
		<tr>	<td><img src="||nwimg||/attention.gif">
			<td bgcolor="ffffff">||error||</td>
		</tr>
	</table>
	</center>
||endif||

||ifdef||msg||
	<center>
	<table border="1">
		<tr>	<td bgcolor="ffffff">||msg||</td>
		</tr>
	</table>
	</center>
||endif||


||ifequal||con_display||details||

	<h3>User Configuration Options</h3>

	<table>
	<tr>	<td align="right">Your Name</td>
		<td><input type="text" size="30" maxlength="256" name="_real_name" value="||html_text||_real_name||"></td></tr>
	<tr>	<td align="right"></td>
		<td>POP Diskuse ||pop_size|| / ||disk_quota|| bytes</td></tr>
	<tr>	<td align="right">Default reply address</td>
		<td><input type="text" size="30" maxlength="256" name="dflt_reply" value="||html_text||dflt_reply||"></td></tr>

||ifdef||surgemail||
	||ifempty||_smitespam_stars||
		||define||_smitespam_stars||5||
	||endif||
	<tr>
		<td align="right">Apply spam filter</td>
		<td>
			<input type="checkbox" name="smitespam" value="checked" ||smitespam||>
			<select name="_smitespam_stars">
				<option value="3" ||ifequal||_smitespam_stars||3||selected||endif||>Extreme</option>
				<option value="4" ||ifequal||_smitespam_stars||4||selected||endif||>High</option>
				<option value="5" ||ifequal||_smitespam_stars||5||selected||endif||>Medium (reccommended)</option>
				<option value="6" ||ifequal||_smitespam_stars||6||selected||endif||>Medium-Low</option>
				<option value="7" ||ifequal||_smitespam_stars||7||selected||endif||>Low</option>
			</select>
<!--			(only available with Netwin's <a target="_blank" href="http://www.netwinsite.com/surgemail">SurgeMail</a> mail server) --->
		</td>
	</tr>
||else||
	<tr>	<td align="right">Spam filters</td>
		<td>(only available with Netwin's <a target="_blank" href="http://www.netwinsite.com/surgemail">SurgeMail</a> mail server)</td>
	</tr>
||endif||
	||ifdef||surgemail||
		||ifdef||friends_only||
			||ifdef||autologin||
				||ifdef||use_id_autologin||
					<tr>
						<td align="right"><a href="||action||?cmd=netwin_login_id-1&utoken=||utoken||&&">Server Spam Settings</a></td>
						<td>Let the Email Server intercept all of your unwanted email even before ||cust_display_name|| can download it (recomended).</td>
					</tr>
				||else||
					<tr>
						<td align="right"><a href="||action||?cmd=netwin_login-1&utoken=||utoken||&&">Server Spam Settings</a></td>
						<td>Let the Email Server intercept all of your unwanted email even before ||cust_display_name|| can download it (recomended).</td>
					</tr>
				||endif||
			||else||
				||ifequal||cust_no_surgemail_links||true||
				||else||
					<tr>
						<td align="right"><a href="||action||?cmd=config&page=no_surgemail&utoken=||utoken||">Server Spam Settings</a></td>
						<td>Let the Email Server intercept all of your unwanted email even before ||cust_display_name|| can download it (recomended).</td>
					</tr>
				||endif||
			||endif||
		||else||
			||ifequal||cust_no_surgemail_links||true||
			||else||
			<tr>
				<td align="right"><a href="||action||?cmd=config&page=no_surgemail&utoken=||utoken||">Server Spam Settings</a></td>
				<td>Let the Email Server intercept all of your unwanted email even before ||cust_display_name|| can download it (recomended).</td>
			</tr>
			||endif||
		||endif||
	||else||
		||ifequal||cust_no_surgemail_links||true||
		||else||
			<tr>
				<td align="right"><a href="||action||?cmd=config&page=no_surgemail&utoken=||utoken||">Server Spam Settings</a></td>
				<td>Let the Email Server intercept all of your unwanted email even before ||cust_display_name|| can download it (recomended).</td>
			</tr>
		||endif||
	||endif||
<!----
	<tr>	<td align="right">Signature</td>
		<td><textarea name="sig" rows="4" cols="50">||sig||</textarea></td></tr>
---->

	<tr>	<td align="right">Auto refresh newmail screen</td>
		<td><input type="text" size="10" maxlength="256" name="_refresh" value="||_refresh||"> (seconds)</td></tr>
	<tr>	<td align="right">Number of EMails per page</td>
		<td><input type="text" size="10" maxlength="256" name="_max_message_display" value="||_max_message_display||"></td></tr>
	||ifdef||surgemail||
		||ifdef||autorespond||
			||ifdef||autologin||
				||ifdef||use_id_autologin||
					<tr>
						<td align="right"><a href="||action||?cmd=netwin_login_id-2&utoken=||utoken||&&">Holiday Settings</a></td>
						<td>Setup an "out of the office" autoresponder or forward you email to another account.</td>
					</tr>
				||else||
					<tr>
						<td align="right"><a href="||action||?cmd=netwin_login-2&utoken=||utoken||&&">Holiday Settings</a></td>
						<td>Setup an "out of the office" autoresponder or forward you email to another account.</td>
					</tr>
				||endif||
			||else||
				||ifequal||cust_no_surgemail_links||true||
				||else||
					<tr>
						<td align="right"><a href="||action||?cmd=config&page=no_surgemail&utoken=||utoken||&&">Holiday Settings</a></td>
						<td>Setup an "out of the office" autoresponder or forward you email to another account.</td>
					</tr>
				||endif||

			||endif||
		||else||
			||ifequal||cust_no_surgemail_links||true||
			||else||
				<tr>
					<td align="right"><a href="||action||?cmd=config&page=no_surgemail&utoken=||utoken||&&">Holiday Settings</a></td>
					<td>Setup an "out of the office" autoresponder or forward you email to another account.</td>
				</tr>
			||endif||
		||endif||
	||else||
		||ifequal||cust_no_surgemail_links||true||
		||else||
			<tr>
				<td align="right"><a href="||action||?cmd=config&page=no_surgemail&utoken=||utoken||&&">Holiday Settings</a></td>
				<td>Setup an "out of the office" autoresponder or forward you email to another account.</td>
			</tr>
		||endif||
	||endif||
	<tr>	<td align="right">Time Zone</td>
		<td> <select name="new_timezone" size="1">
		||begin_timezone||
			<option value="||tz||" ||tz_selected||>||tz_name|| (||tz||)</option>
		||end_timezone||
		</select>
		</td>
	</tr>
	<tr>
		<td align="right">Auto Adjust<br> Time Zone for Daylight Savings?</td>
		<td>
			Yes<INPUT TYPE="RADIO" NAME="_auto_timezone" VALUE="true" ||ifequal||_auto_timezone||true||CHECKED||endif||>
			&nbsp;
			No<INPUT TYPE="RADIO" NAME="_auto_timezone" VALUE="false" ||ifnequal||_auto_timezone||true||CHECKED||endif||>
		</td>
	</tr>
||ifdef||show_wysiwyg||
	<tr>
		<td align="right">Use Styletext editor by default?</td>
		<td>
			Yes<INPUT TYPE="RADIO" NAME="_auto_wysiwyg" VALUE="true" ||ifequal||_auto_wysiwyg||true||CHECKED||endif||>
			&nbsp;
			No<INPUT TYPE="RADIO" NAME="_auto_wysiwyg" VALUE="false" ||ifnequal||_auto_wysiwyg||true||CHECKED||endif||>
		</td>
	</tr>
||endif||

||ifdef||multiple_tpl||
	<tr>
	    <td align="right">Select Template Set:</td>
		<td> <select name="_selected_tpl" size="1">
		||begin_tpl||
			||ifequal||_selected_tpl||tpl_number||
				<option selected value="||tpl_number||">||tpl_text||</option>
			||else||
				<option value="||tpl_number||">||tpl_text||</option>
			||endif||
		||end_tpl||
		</select>
	    </td>
	</tr>
||endif||

	<tr>	<td align="right">New mail sound file</td>
		<td><input type="text" size="14" maxlength="255" name="_sound_file" value="||_sound_file||"> &lt;
			<select size="1" name="sound" onchange="do_copy(this)">
				<option></option>
				<option>||nwimg||/newmail1.wav</option>
				<option>||nwimg||/newmail2.wav</option>
				<option>||nwimg||/newmail3.wav</option>
				<option>file:///c|/winnt/media/chimes.wav</option>
			</select></td></tr>
||ifdef||authent_cookie||
	<tr> 	<td align="right"><b>Cookie Login:</b></td>
		<td><input type="checkbox" name="allow_cookie" value="checked" ||allow_cookie||></td></tr>
||endif||
	</table>

	<table border="2">
		<input type="hidden" name="host_name0" value="||host_name0||">
		<input type="hidden" name="host_user0" value="||host_user0||">
		<tr><th>Host</th><th>Username</th><th>Password(*)</th><th>IMAP Prefix</th><th>Profile</th></tr>
		<tr>	<td><b>||host_name0||</b></td>
			<td><b>||host_user0||</b></td>
			||ifdef||display_poppassd||
				<td><a href="||action||?cmd=set_pass&utoken=||utoken||">Your Password</a></td>
			||else||
				||ifdef||autologin||
					||ifdef||use_id_autologin||
						<td><a href="||action||?cmd=netwin_login_id-0&utoken=||utoken||&&">Your Password</a></td>
					||else||
						<td><a href="||action||?cmd=netwin_login-0&utoken=||utoken||&&">Your Password</a></td>
					||endif||
				||else||
					||ifequal||cust_no_surgemail_links||true||
					||else||
						<td><a href="||action||?cmd=config&page=no_surgemail&utoken=||utoken||&&">Your Password</a></td>
					||endif||
				||endif||
			||endif||
			<td><input type="text" size="10" maxlength="256" name="host_prefix0" value="||host_prefix0||"></td>
			<td><select name="host_profile0" size="1">
				<option>(none)</option>
				||begin_profile||
					||ifnequal||host_profile0||profile_name||
						<option>||profile_name||</option>
					||else||
						<option selected>||profile_name||</option>
					||endif||
				||end_profile||
			</select></td>
		</tr>

		<tr>	<td><input type="text" size="20" maxlength="256" name="host_name1" value="||host_name1||"></td>
			<td><input type="text" size="10" maxlength="256" name="host_user1" value="||host_user1||"></td>
			<td><input type="password" size="10" maxlength="256" name="host_pass1" ></td>
			<td><input type="text" size="10" maxlength="256" name="host_prefix1" value="||host_prefix1||"></td>
			<td><select name="host_profile1" size="1">
				<option>(none)</option>
				||begin_profile||
					||ifnequal||host_profile1||profile_name||
						<option>||profile_name||</option>
					||else||
						<option selected>||profile_name||</option>
					||endif||
				||end_profile||
			</select></td>
		</tr>

		<tr>	<td><input type="text" size="20" maxlength="256" name="host_name2" value="||host_name2||"></td>
			<td><input type="text" size="10" maxlength="256" name="host_user2" value="||host_user2||"></td>
			<td><input type="password" size="10" maxlength="256" name="host_pass2" ></td>
			<td><input type="text" size="10" maxlength="256" name="host_prefix2" value="||host_prefix2||"></td>
			<td><select name="host_profile2" size="1">
				<option>(none)</option>
				||begin_profile||
					||ifnequal||host_profile2||profile_name||
						<option>||profile_name||</option>
					||else||
						<option selected>||profile_name||</option>
					||endif||
				||end_profile||
			</select></td>
		</tr>

		<tr>	<td><input type="text" size="20" maxlength="256" name="host_name3" value="||host_name3||"></td>
			<td><input type="text" size="10" maxlength="256" name="host_user3" value="||host_user3||"></td>
			<td><input type="password" size="10" maxlength="256" name="host_pass3" ></td>
			<td><input type="text" size="10" maxlength="256" name="host_prefix3" value="||host_prefix3||"></td>
			<td><select name="host_profile3" size="1">
				<option>(none)</option>
				||begin_profile||
					||ifnequal||host_profile3||profile_name||
						<option>||profile_name||</option>
					||else||
						<option selected>||profile_name||</option>
					||endif||
				||end_profile||
			</select></td>
		</tr>

		<tr>	<td><input type="text" size="20" maxlength="256" name="host_name4" value="||host_name4||"></td>
			<td><input type="text" size="10" maxlength="256" name="host_user4" value="||host_user4||"></td>
			<td><input type="password" size="10" maxlength="256" name="host_pass4" ></td>
			<td><input type="text" size="10" maxlength="256" name="host_prefix4" value="||host_prefix4||"></td>
			<td><select name="host_profile4" size="1">
				<option>(none)</option>
				||begin_profile||
					||ifnequal||host_profile4||profile_name||
						<option>||profile_name||</option>
					||else||
						<option selected>||profile_name||</option>
					||endif||
				||end_profile||
			</select></td>
		</tr>

	</table>

  <table border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="100%"><b>Notes:</b>
      <ol>
        <li>Password: When entering new hosts they are only saved if a password is supplied. To
          remove an entry delete just the username field and press Save Config.</li>
        ||ifdef||autologin||<li>Change Password: You can use this button to change your password if your host supports this
          service.</li>||endif||
	<li>IMAP Prefix: This is only used for IMAP servers, to determine where to store your folders.</li>
      </ol>
      </td>
    </tr>
  </table>

	<p><a href="||action||?cmd=rebuild_indexes&fld=||fld||&utoken=||utoken||">Rebuild Folders</a>
		- This will rebuild your folder names and amount of space used. Only works when the main host is a pop server</p>

||endif||

||ifequal||con_display||signature||
	||include||signature.tpl||
||endif||

||ifequal||con_display||filter||

	<h3>New Mail Filtering Rules</h3>
	<table border="2">
		<tr><th width>If Header</th><th>Contains </th><th>Action</th><th align="left">Dest Folder</th><th>Dest Address</th><th>Case</th></tr>

||begin_rules||
		<tr><td><select name="r_header||n||" size="1">
			<option>||r_headers||</option>
		</select>

		</td><td><input type="text" size="10" maxlength="256" name="r_contains||n||" value="||r_contains||"></td>
		<td><select name="r_action||n||" size="1">
			<option>||r_actions||</option>
		</select></td>

		<td><select name="r_dstfld||n||" size="1">
			<option>||r_folders||</option>
		</select></td><td>
		<input type="text" size="20" maxlength="256" name="r_addr||n||" value="||r_addr||"></td>
		<td><input type="checkbox" name="r_iscase||n||" ||r_iscase|| value="on"></td>
		</tr>
||end_rules||
	</table><br>

||endif||

||ifequal||con_display||fetch||

	<h3>Fetch EMails</h3>
	<p>The following EMail accounts are also displayed at the same time when displaying
	your Main account INBOX.</p>
	<p>If the account is an IMAP server their folders are not seen.</p>

	<center>
	<table border="2">
		<tr>	<td align="right"><b>Host:</b></td>
			<td><input type="text" size="24" name="fet_host" value="||fet_host||"></td>
		</tr>
		<tr>	<td align="right"><b>Username:</b></td>
			<td><input type="text" size="15" name="fet_user" value="||fet_user||"></td>
			<td><input type="image" name="fet_add" src="||nwimg||/add.gif" border="0">
		</tr>
		<tr>	<td align="right"><b>Password:</b></td>
			<td><input type="password" size="15" name="fet_pass"></td>
		</tr>
		<tr>	<td align="right"></td>
			<td>	<input type="radio" name="fet_number" value="0" ||ifequal||fet_number||0||checked||endif||||ifndef||fet_number||checked||endif||><img src="||nwimg||/fetch1.gif">
				<input type="radio" name="fet_number" value="1" ||ifequal||fet_number||1||checked||endif||><img src="||nwimg||/fetch2.gif">
				<input type="radio" name="fet_number" value="2" ||ifequal||fet_number||2||checked||endif||><img src="||nwimg||/fetch3.gif">
				<input type="radio" name="fet_number" value="3" ||ifequal||fet_number||3||checked||endif||><img src="||nwimg||/fetch4.gif">
				<input type="radio" name="fet_number" value="4" ||ifequal||fet_number||4||checked||endif||>none
			</td>
		</tr>
		<tr>	<td align="right"></td>
			<td><input type="checkbox" name="fet_active" ||ifdef||fet_active|| ||is_checked||fet_active|| ||else|| checked ||endif||><b>Active</b></td>
		</tr>
	</table>

	<hr>

	<table border="1" bgcolor="ffffff">
		<tr>	<td colspan="5">
				||ifequal||fetch_manual||true||
					Fetch accounts are currently setup for Manual download<br>
					<a href="||action||?cmd=config&con_display=fetch&fld=||fld||&fetch_manual=false&utoken=||utoken||&require_lock=true">Set Fetch Download to Automatic</a>
				||else||
					Fetch accounts are currently setup for Automatic download<br>
					<a href="||action||?cmd=config&con_display=fetch&fld=||fld||&fetch_manual=true&utoken=||utoken||&require_lock=true">Set Fetch Download to Manual</a>
				||endif||
			</td>
		</tr>
		<tr>	<th>Active</th><th>Image</th><th>Host</th><th>Username</th></tr>

	||begin_fet||
		<tr bgcolor="#C0C0C0">
			<td align="center">||ifequal||fet_active||1||Active||endif||</td>
			<td align="center">
				||ifequal||fet_number||0||<img src="||nwimg||/fetch1.gif">
				||else||
					||ifequal||fet_number||1||<img src="||nwimg||/fetch2.gif">
					||else||
						||ifequal||fet_number||2||<img src="||nwimg||/fetch3.gif">
						||else||
							||ifequal||fet_number||3||<img src="||nwimg||/fetch4.gif">
							||else||
								<img src="||nwimg||/fetch0.gif">
							||endif||

						||endif||
					||endif||
				||endif||
			</td>
			<td><a href="||action||?fet_active=||fet_active||&fet_number=||fet_number||&fet_host=||fet_host||:||fet_port||&fet_user=||fet_user||&cmd=config&con_display=fetch&fld=||fld||&utoken=||utoken||">||fet_host||:||fet_port||</a></td>
			<td>||fet_user||</td>
			<td><a href="||action||?fet_host=||fet_host||&fet_user=||fet_user||&cmd=fet_delete&utoken=||utoken||&fld=||fld||&con_display=fetch">delete</a></td>
		</tr>
	||end_fet||

	</table>

	</center>
||endif||

||ifequal||con_display||reject_list||

	<h3>Reject List</h3>
	<p>Any EMail you recieve who is on your reject list will automatically be deleted.</p>

	<center>
		<table>
		<tr><td><textarea name="reject" rows="8" cols="30">||reject||</textarea></td></tr>
		<tr><td><input type="checkbox" name="reject_to_trash" value="checked" ||is_checked||reject_to_trash||>
			Remove Rejected Emails to my '||lang||waste_name||' folder</td></tr>
		<tr><td>	<p>You must have the '@' symbol and you can also use <br>wild cards (* and ?).</p>
	<pre>ie.	*@hotmail.com
	????@*</pre></td></tr>
		</table>

	</center>


||endif||


</form>
</body>
</html>
