<script type="text/javascript">
<!--
function do_copy(sel)
{
	var i;
	for (i=0; i<sel.options.length; i++)
		if (sel.options[i].selected==true)
			document.manager.ufield.value = sel.options[i].text;
}
//-->
</script>

<table cellspacing="1" cellpadding="0">
<tr>
	<td align="center"><br>

	<table class="smb" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF" width="100%">
	<tr>
		<td bgcolor="||color_menu||" colspan="2">
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
			<tr>	
				<th width="100%">User Search</th>
			</tr>
			</table>
		</td>
	</tr>
	<tr><td>
		<table cellpadding="3" cellspacing="0" width="100%">
		
		<tr>
			<td align="center">
				<form name="manager" action="||action||" method="post">
					<input type="hidden" name="manpass" value="||manpass||" />
					<input type="hidden" name="page" value="manager" />
					<input type="hidden" name="mytpl" value="||mytpl||" />	
					<input type="hidden" name="wild_search" value="||wild_search||" />

				<table cellpadding="0" cellspacing="0">
				<tr>	<td colspan="2">Search for WebMail users matching:</td></tr>
				<tr>	<td align="right"><b>Account Name:</b></td>
					<td><input type="text" name="uwild" size="20" value="||uwild||" /></td>
					<td><input type="submit" class="button" name="do_manager_search" size="10" value="Search" /></td>
				</tr>
				<tr>	<td></td>
					<td><b>and</b></td>
				</tr>
				<tr>	<td align="right"><b>Field*:</b></td>
					<td><input type="text" name="ufield" size="15" value="||ufield||" /></td>
					<td>	<select name="unot">
							<option value="">==</option>
							<option value="true" ||ifequal||unot||true||selected||endif||>!=</option>
						</select>
					</td>

					<td align="right"><b>Value*:</b></td>
					<td><input type="text" name="uvalue" size="15" value="||uvalue||" /></td>
				</tr>
				<tr>	<td></td>
					<td colspan="2"><select size="1" name="uset1" onchange="do_copy(this)">
							||include||user_opt.dat||
					</select></td>
				</tr>


				<tr><td colspan="5">eg. 'john*'<br/>will match: john@1.2.3.4, john@4.3.2.1, john1@1.2.3.4</td></tr>
				<tr><td colspan="5">* - These fields are optional.</td></tr>
				</table>
				</form>
			</td>
		</tr>
		</table>
	</td></tr>
	</table>
	<br>

	<table bgcolor="||color_menu||" class="smb" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF" width="100%">
	<tr><td>
		<table cellpadding="3" cellspacing="0" width="100%">
		<tr><td>The most common use for this page is changing the users 
			dflt_reply address for all or some users.
		</td></tr>

		</table>
	</td></tr>
	</table>
	</td>
</tr>		
</table>

||ifdef||result||
<br>
<table class="smb" bgcolor="||color_menu||">
<tr> <td bgcolor="ffffff">||result||</td></tr>
</table>
||endif||
