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

<head>
<style type="text/css">
<!--
h4{
	font: 
}

td{
	font: 8pt "Arial";
    color: black;
}

th{
	font: 8pt "Arial";
    color: black;
}

a{
	font: 8pt "Arial";
    color: black;
}
//-->
</style>

<title>Seaching EMail Messages</title>

<script type="text/javascript">
<!--
function printwin(url){
	var str = "width=" + 750 + ",height=" + 550 + ",toolbar=0,location=0,directories=0,status=0,menubar=yes,scrollbars=yes,resizable=1,left=100,top=100";
	||ifinstr||user_agent||msie||
		var win = open(url, "||cust_title||", str, 'POPUP');
	||else||
		var win = open(url, "||cust_title||", str, 'POPUP');
		win.focus();
	||endif||
}

function setTitle(){
	||ifequal||top||_top||
		window.top.document.title = "||cust_title|| - ||current_user|| - Search Messages";
	||endif||
}
//-->
</script>
</head>

<body background="||cust_panel_background||" bgcolor="||cust_panel_bgcolor||" onload="setTitle();">

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



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

	<table border="0">
	<tr>
		<td>
			<h4>EMail Search</h4>
			<select name="multi_sel_fld" size="7" multiple="multiple">
				||folder_list||true||
			</select>
		</td>
		<td>
			<table>
			<tr>
				<td align="right">From:</td>
				<td><input type="text" size="24" name="search_from" value="||html_text||search_from||" /></td>
				<td>eg. lynden</td>
			</tr>
			<tr>
				<td align="right">Subject:</td>
				<td><input type="text" size="24" name="search_subject" value="||html_text||search_subject||" /></td>
				<td>eg. wor?ers</td>
			</tr>
			<tr>
				<td align="right">Message Body:</td>
				<td><input type="text" size="24" name="search_body" value="||html_text||search_body||" /></td>
				<td>eg. test message</td>
			</tr>
			<tr>
				<td align="right">To:</td>
				<td><input type="text" size="24" name="search_to" value="||html_text||search_to||" /></td>
				<td>eg. lynden</td>
			</tr>
			<tr>
				||define||size_select||(
				<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="selected">4k</option>
						<option value="8">8k</option>
						<option value="16">16k</option>
						<option value="32">32k</option>
					</select>
				</td>)||
				||ifequal||connection_type||pop||
					||size_select||
				||else||
					||ifequal||connection_type||mpop||
						||size_select||
					||else||
						<td colspan="2">&nbsp;</td>
					||endif||
				||endif||
				<td colspan="3"><input type="submit" name="dosearch" value="search" /></td>
			</tr>
			||define||or_mode||(<tr>
				<td align="right"><input type="checkbox" name="search_mode" ||ifnempty||search_mode||checked="checked"||endif|| /></td>
				<td>Or Search Mode</td>
			</tr>)||
			||ifequal||connection_type||pop||
				||or_mode||
			||else||
				||ifequal||connection_type||mpop||
					||or_mode||
				||else||
					<td colspan="2">&nbsp;</td>
				||endif||
			||endif||
			<tr>
				<td colspan="3"><b>Note:</b> When searching body of EMail message searching my take longer.</td>
			</tr>
			</table>
		</td>
	</tr>
	</table>

</form>


	<table border="0" bgcolor="ffffff" width="100%">
	<tr bgcolor="#D6D6CE">
		<th>Folder</th>
		<th>Subject</th>
		<th>From</th>
		<th>Date</th>
		<th>Time</th>
		<th>Bytes</th>
		<th>Attach</th>
	</tr>

||define||max_line_count||2||
		||begin_search||
		<tr bgcolor="#ffffff">
			<td><a href="||action||?cmd=||ifdef||_nopreview||list||else||show||endif||&amp;page=framelist&amp;listcmd=list&amp;folder=||h_folder||&amp;utoken=||utoken||&amp;&amp;">||h_folder||</a></td>
			<td nowrap="nowrap">
				<a href="javascript:printwin('||action||?cmd=item-||h_uidl||&amp;utoken=||utoken||&amp;folder=||h_folder||&amp;&amp;')" >||lchop||h_subject||40||</a>
				<img src="||nwimg||/iunseen||h_isunseen||.gif" alt="" />
			</td>
			<td>||h_from_personal||</td>
			<td>||h_date_day||</td>
			<td nowrap="nowrap">||h_date_time||</td>
			<td>||h_bytes||</td>
			<td>||h_attach||</td>
		</tr>
		||end_search||
	</table>
</body>
</html>
