<html>

<head>
<title>Seaching EMail Messages</title>
</head>

<body bgcolor="#cedfff">

<table border="0" cellpadding="0" cellspacing="0" rules="none"><tr valign="top">
<td>||include||nfmenu.tpl||</td><td>&nbsp;</td>
<td>

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


<center>
<h1>EMail Search</h1>

<form method=post action="||action||"> 
	<input type=hidden name="utoken" value="||utoken||"> 
	<input type=hidden name="cmd" value=""> 

	<table border="1">
	<tr><td><select name="multi_sel_fld" size=7 multiple>
			<option selected>||fldlist||</option>
		</select></td>
	<td>
		<table>
		<tr>
			<td align="right">From:</td>
			<td><input type="text" width="24" name="search_from" value="||search_from||"></td>
			<td>eg. lynden</td>
		</tr>
		<tr>
			<td align="right">Subject:</td>
			<td><input type="text" width="24" name="search_subject" value="||search_subject||"></td>
			<td>
				eg. wor?ers (? can be replace by any one character)<br>
				&nbsp;&nbsp;&nbsp; big*t (* can be replaced by any characters)
			</td>
		</tr>
		<tr>
			<td align="right">Message Body:</td>
			<td><input type="text" width="24" name="search_body" value="||search_body||"></td>
			<td>eg. test message</td>
		</tr>
		<tr>	<td align="right">To:</td>
			<td><input type="text" width="24" name="search_to" value="||html_text||search_to||"></td>
			<td>eg. lynden</td>
		</tr>
		<tr>
			<td align="right">Max Search Size:</td>
			<td><select name="search_body_size" size=1>
				<option value="0">All</option>
				<option value="1">1k</option>
				<option value="2">2k</option>
				<option value="4" selected>4k</option>
				<option value="8">8k</option>
				<option value="16">16k</option>
				<option value="32">32k</option>
			</select></td>
		</tr>
		<tr>
			<td align="right"><input type="checkbox" name="search_mode" ||is_checked||search_mode||></td>
			<td>Search for messages containing any one of these parameters</td>
		</tr>
		<tr>
			<td colspan="3"><b>Note:</b> When searching body of EMail message searching my take longer.</td>
		</tr>
		<tr align="center">
			<td colspan="3"><input type="image" border="0" name="dosearch" alt="search" src="||nwimg||/search.gif"></td>
		</tr>
		</table>
	</td>
	</tr>
	</table>

</form>


	<table border="1" bgcolor="ffffff">
	<tr>	<th>Folder
		<th>Subject
		<th>From
		<th>Date
		<th>Time
		<th>Bytes
		<th>Attach
	</tr>

||define||max_line_count||2||
		||begin_search||
||ifequal||line||0||
			<tr bgcolor="#C0C0C0">
||else||
			<tr bgcolor="#ffffff">
||endif||
			<td><a href="||action||?cmd=switch&dstfld=||h_folder||&utoken=||utoken||">||h_folder||</a>
			<td nowrap><a href="||b_item||" >||lchop||h_subject||40||</a>
				   <img src="||nwimg||/iunseen||h_isunseen||.gif">
			<td>||h_from_personal||
			<td>||h_date_day||<td nowrap>||h_date_time||
			<td>||h_bytes||<td>||h_attach||
		||end_search||
	</table>

</center>

</td></tr></table>
</body>
</html>
