<script type="text/javascript">
<!--- hide script from old browsers
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;
}
// end hiding from old browsers -->
</script>

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

	<table class="smb" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF" >
	<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="manager_search.tpl" />	
					<input type="hidden" name="wild_search" value="||wild_search||" />

				<table>
				<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" 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 class="smb" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF">
	<tr>
		<td bgcolor="||color_menu||" colspan="2">
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
			<tr>	
				<th width="100%"><b>||user||</b></th>
			</tr>
			</table>
		</td>
	</tr>
	<tr><td>
		<form name="foo" action="||action||#userinfo" method="post">
			<input type="hidden" name="manpass" value="||manpass||" />
			<input type="hidden" name="user" value="||user||" />
			<input type="hidden" name="page" value="manager" />
			<input type="hidden" name="mytpl" value="||mytpl||" />	


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

