<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WebMail New Management Interface</title>
</head>

||ifdef||background||
<body background="||nwimg||/||background||">
||else||
<body>
||endif||
<center>
<table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td valign="top">
		<img src="||nwimg||/logo.gif" alt="" /></td>
        <td>&nbsp;</td>
        <td align="center" valign="top">
		<font color="#FF0000" size="6">WebMail New Management Interface</font></td>
        <td>&nbsp;</td>
        <td align="right" valign="top"><img src="||nwimg||/logo.gif" alt="" /></td>
    </tr>
</table>
</center>
||ifdef||error||
	<center>
	<table border="1">		
		<tr>
			<td><img src="||nwimg||/attention.gif" alt="" /></td>
			<td bgcolor="ffffff">||error||</td>
		</tr>
	</table>
	</center>
||endif||


||ifndef||manpass||
	<h3>Welcome to the Managers Page. This is used to assist in mantaining your users.</h3>	
	<h3>You Must Enter Your Managers Password Below</h3>
	<form action="||action||" method="post">
		<input type="hidden" name="cmd" value="do_new_manager" />

		<center>
		<input type="password" size="20" name="manpass" />
		<input type="submit" name="domanager" size="10" value="Enter Manager" />
		</center>
	</form>
	<p><b>NOTE:</b> To setup a managers password you need to add the following line to your ini file:</p>

	<pre>                managers_password xxxxx</pre>
||else||

<script type="text/javascript">
<!--- hide script from old browsers
function mysubmit(cmd)
{
	document.managerform.cmd.value = cmd;
	document.managerform.submit();
}

function display_user(cmd)
{
	document.managerform.cmd.value = 'manager_user';
	document.managerform.user.value = cmd;
	document.managerform.submit();
}

// end hiding from old browsers -->
</script>


<form name="managerform" method="post" action="||action||">
	<input type="hidden" name="cmd" value="new_manager" />
	<input type="hidden" name="user" value="" />
	<input type="hidden" name="manpass" value="||manpass||" />
</form>

	<a href="javascript:mysubmit('new_manager');">Back</a>

	<center>
		<form name="manager" action="||action||" method="post">
		<input type="hidden" name="manpass" value="||manpass||" />
		<table border="1" cellpadding="0" cellspacing="0">
		<tr><td><table>
			<tr><td>Search for WebMail users matching:</td></tr>
			<tr><td><input type="text" name="uwild" size="10" value="||uwild||" />
				<input type="submit" name="do_manager_search" size="10" value="Search" /></td></tr>
			<tr><td>eg. 'john*'<br/>will match: john@1.2.3.4, john@4.3.2.1, john1@1.2.3.4</td></tr>
			</table>
		</td></tr></table>
		</form>
	<hr />
	<b>||user||</b>

	<form name="foo" action="||action||#userinfo" method="post">
		<input type="hidden" name="manpass" value="||manpass||" />
		<input type="hidden" name="user" value="||user||" />

		<center><table border="1">
			<tr><td><textarea name="user_data" rows="15" cols="80">||result||</textarea></td></tr>
		</table>
		<input type="submit" name="do_manager_user" size="10" value="save user.dat" />
		</center>
	</form>



	</center>
||endif||


||ifdef||register||
<p>If you are the system administrator of this site and you wish to register this 
copy of WebMail then you should click here ||register|| to enter order details.</p>
||endif||



<hr />
||copyright||
</body>
</html>
