<!--
	Note:  If you want to customise the WebMail templates to integrate with your website then it is much easier to
	edit the vanilla, iconic or marble template sets rather than the panel template set.
	If you have the WebMail included with SurgeMail then you will not have a copy of these template sets.  You can
	get a copy by downloading the full WebMail distribution from:
		http://netwinsite.com/webmail/download2.htm
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
||ifdef||list_email_charset||
	<meta http-equiv="Content-type" content="text/html; charset=||ifinstr||list_email_charset||UTF-8||iso-8859-1||else||||list_email_charset||||endif||">
||endif||
<!--listf2.tpl-->
<html>
<head>
||just_include||css.tpl||
||define||mynitems||(||add||nitems||fld_fetch_msg||)||
||define||mynunread||(||add||nunread||fld_fetch_msg||)||
<script type="text/javascript">
<!--
||ifgreater||page_pos||num_pages||
	window.location.replace("||action||?cmd=list&amp;page=listf2&amp;folder=||folder||&amp;pos=" + ((||_max_message_display|| * (||page_pos|| - 2)) + 1) + "&amp;utoken=||utoken||&amp;&amp;");
||endif||

var nwimg="||nwimg||";
var _refresh="||_refresh||";
var _nopreview="||_nopreview||";
var _max_message_display="||_max_message_display||";
var folder="||folder||";
var page_pos="||page_pos||";
var num_pages="||num_pages||";
var java_folder="||java_text||(||folder||)||";
var html_folder="||html_text||folder||";
var java_inbox="||java_text||(||new_mail_name||)||";
var ie_version="||ie_version||";
var title = "||cust_title|| - ||current_user||";
var htmlTitle = "||java_text||cust_title||";
var nItems = ||mynitems||;
var nUnread = ||mynunread||;
var xtop="||top||";
||/*||
||ifequal||_played_sound||1||
	||ifgreater||current_todos||0||
		open("||action||?cmd=list&amp;page=todo_only.tpl&amp;utoken=||utoken||",'TODO','width=470,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes','POPUP');
	||endif||
||endif||
||*/||
// -->
</script>
<script type="text/javascript" src="||nwimg||/listf2.js"></script>
<title>||current_user|| has ||mynitems|| messages</title>
</head>

<body background="||cust_panel_background||" bgcolor="||cust_panel_bgcolor||" onload="refresh_init();setTitle();setPages();check_printwin('||action||?cmd=item-||uidl||&amp;require_lock=true&amp;get_attach_id=true&amp;utoken=||utoken||&amp;folder=||fld||&amp;java_email=true&amp;&amp;');">
<script type="text/javascript">
<!--
var do_printwin = false;
||ifnequal||mynitems||0||
	||ifequal||showitem||next_popup||
		do_printwin = true;
		//check_printwin("||action||?cmd=item-||uidl||&amp;require_lock=true&amp;get_attach_id=true&amp;utoken=||utoken||&amp;folder=||fld||&amp;java_email=true&amp;&amp;");
	||endif||
||endif||

//-->
</script>

||ifequal||fetch_manual||true||
	<a href="||action||?cmd=get_fetch&amp;folder=||fld||&amp;utoken=||utoken||&amp;force_connection=true&amp;&amp;">Check other accounts</a><br />
||endif||

||ifdef||error||
<center>
<table border="1">
<tr>
	<td><h3>An error has occured</h3></td>
</tr>
<tr>
	<td>||error||</td>
</tr>
</table>
</center>
||endif||

||ifdef||msg||
<center>
<table border="1">
<tr>
	<td>||msg||</td>
</tr>
</table>
</center>
||endif||
<form name="reload_fld" method="post" action="||action||">
	<input type="hidden" name="utoken" value="||utoken||" />
	<input type="hidden" name="folder" value="||folder||" />
	<input type="hidden" name="checknew" value="checknew" />
	<input type="hidden" name="cmd" value="" />
	<input type="hidden" name="pos" value="||pos||" />
</form>
||ifdef||disk_quota||
||ifdef||pop_size||
<script type="text/javascript">
<!--
	if (||disk_quota|| > 0)
		if (||pop_size||/||disk_quota|| > 0.9) 	    document.writeln("<h3>POP Disk space low ||kpop_size||k of ||kdisk_quota||k bytes used</h3>");
//-->
</script>
||endif||
||endif||
||ifequal||enable_imap_quota||true||
||ifdef||imap_disk_quota||
||ifdef||imap_size||
<script type="text/javascript">
<!--
	if (||disk_quota|| > 0)
		if (||imap_size||/||imap_disk_quota|| > 0.9)	    document.writeln("<h3>IMAP Disk space low ||kimap_size||k of ||kimap_disk_quota||k bytes used</h3>");
//-->
</script>
||endif||
||endif||
||endif||
||ifdef||num_pages||
	<form name="goto_page" method="post" action="||action||">
		<input type="hidden" name="pageupquery" value="||pageup||" />
		<input type="hidden" name="pagedownquery" value="||pagedown||" />
		<input type="hidden" name="utoken" value="||utoken||" />
		<input type="hidden" name="folder" value="||folder||" />
		<input type="hidden" name="cmd" value="list" />
		<input type="hidden" name="pos" value="" />
	</form>
||endif||
<form name="List" method="post" action="||action||">
	<input type="hidden" name="get_attach_id" value="true" />
	<input type="hidden" name="redirect" value="" />
	<input type="hidden" name="page_pos" value="||page_pos||" />
	<input type="hidden" name="dstfld" value="" />
	<input type="hidden" name="utoken" value="||utoken||" />
	<input type="hidden" name="folder" value="||folder||" />
	<input type="hidden" name="checknew" value="checknew" />
	<input type="hidden" name="cmd" value="" />
	<input type="hidden" name="ignore_trash" value="" />
	<input type="hidden" name="force_empty" value="" />
	<input type="hidden" name="pos" value="||pos||" />
	<input type="hidden" name="myuidl" value="" />
	<input type="hidden" name="page" value="" />
<table border="0" id="listTable">
<tr>
	<td bgcolor="#D6D6CE" nowrap="nowrap">
		||ifequal||sort_on||read_unread|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||else|| ||define||truefalse||true|| ||endif|| ||else|| ||define||truefalse||true|| ||endif||
		<a href="||action||?cmd=list&amp;sort_on=read_unread&amp;sort_method=text&amp;sort_reverse=||truefalse||&amp;utoken=||utoken||&amp;fld=||fld||&amp;pos=||pos||">
			<img src="||nwimg||/iread0.gif" border="0" alt="Unread" width="10" height="10" />
			<img src="||nwimg||/iattach1.gif" border="0" width="7" height="12" alt="Attachments" />
			<img src="||nwimg||/ireply1.gif" border="0" width="9" height="8" alt="Replied" />
		</a>
	</td>
	||ifdef||number_fetch||
		<td bgcolor="#D6D6CE">Host</td>
	||endif||
	<td bgcolor="#D6D6CE"><a href="javascript:SelectAll();">Sel</a></td>

	||ifequal||folder||copy_name|| ||define||to_from||to:|| ||else|| ||define||to_from||from:|| ||endif||
	||ifequal||sort_on||to_from|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||else|| ||define||truefalse||true|| ||endif|| ||else|| ||define||truefalse||true|| ||endif||
	<td bgcolor="#D6D6CE" align="left"><a ||ifequal||sort_on||to_from||class="bold" ||endif||href="||action||?cmd=list&amp;page=listf2&amp;sort_on=||to_from||&amp;sort_method=text&amp;sort_reverse=||truefalse||&amp;utoken=||utoken||&amp;fld=||fld||&amp;pos=||pos||">Who</a></td>

	||ifequal||sort_on||subject:|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||else|| ||define||truefalse||true|| ||endif|| ||else|| ||define||truefalse||true|| ||endif||
	<td bgcolor="#D6D6CE" align="left" width="100%"><a ||ifequal||sort_on||subject:||class="bold" ||endif||href="||action||?cmd=list&amp;page=listf2&amp;sort_on=subject:&amp;sort_method=text&amp;sort_reverse=||truefalse||&amp;utoken=||utoken||&amp;fld=||fld||&amp;pos=||pos||">Subject</a></td>

	||ifequal||sort_on||date:|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||else|| ||define||truefalse||true|| ||endif|| ||else|| ||define||truefalse||true|| ||endif||
	<td bgcolor="#D6D6CE" align="left" colspan="2"><a ||ifequal||sort_on||date:||class="bold" ||endif||href="||action||?cmd=list&amp;page=listf2&amp;sort_on=date:&amp;sort_method=date&amp;sort_reverse=||truefalse||&amp;utoken=||utoken||&amp;fld=||fld||&amp;pos=||pos||">Date</a></td>

	<td bgcolor="#D6D6CE" align="left">Attach&nbsp;&nbsp;&nbsp;</td>

	||ifequal||sort_on||h_bytes|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||else|| ||define||truefalse||true|| ||endif|| ||else|| ||define||truefalse||true|| ||endif||
	<td bgcolor="#D6D6CE" align="left"><a ||ifequal||sort_on||h_bytes||class="bold" ||endif||href="||action||?cmd=list&amp;page=listf2&amp;sort_on=h_bytes&amp;sort_method=number&amp;sort_reverse=||truefalse||&amp;utoken=||utoken||&amp;fld=||fld||&amp;pos=||pos||">Size</a>&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>

||define||max_line_count||2||

||ifequal||mynitems||0||
<tr>
	<td></td>
	<td>&nbsp;</td>
	<td colspan="7">"This Folder Contains No Messages"</td>
</tr>
||else||

||undef||mid_set||
	||begin_list||

	||ifequal||h_isdraft||0||
		<tr id="tr||msg_line||" bgcolor="||ifinstr||_highlight||h_from_email||#FFe0e0||else||#ffffff||endif||" ||ifinstr||ie_version||6.||onmousedown="TRdown(this, 'sel_||h_uidl||', event);" onmouseup="TRup(this, 'sel_||h_uidl||');" onmouseover="TRover(this, 'sel_||h_uidl||');"||endif||>
			<td nowrap="nowrap">
				||ifndef||mid_set||
					||define||mid_set||true||
						<input type="hidden" name="mid" value="||h_uidl||" />
				||endif||
				<a href="||action||?cmd=itemflag-||h_uidl||&amp;require_lock=true&amp;require_lock=true&amp;get_attach_id=true&amp;page=listf2&amp;pos=||pos||&amp;flag=read&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/iread||h_isread||.gif" width="10" height="10" alt="" /></a>
				<img src="||nwimg||/iattach||h_isattached||.gif" width="7" height="12" alt="" />
				<a href="||action||?cmd=itemflag-||h_uidl||&amp;require_lock=true&amp;require_lock=true&amp;get_attach_id=true&amp;page=listf2&amp;pos=||pos||&amp;flag=reply&amp;utoken=||utoken||&amp;fld=||fld||"><img border="0" src="||nwimg||/ireply||h_isreplied||.gif" width="9" height="8" alt="" /></a>
			</td>
			||ifdef||number_fetch||
				<td align="center">
					||ifdef||fet_number||
						<img src="||nwimg||/host||fet_number||.gif" alt="" />
					||endif||
				</td>
			||endif||
			<td><input type="checkbox" name="sel_||h_uidl||" id="check||msg_line||" value="on" ||ifinstr||ie_version||6.||onmouseup="TRcheckbox(this, 'sel_||h_uidl||');" onmousedown="TRcheckdown(this, 'sel_||h_uidl||');"||endif|| /></td>
			<td nowrap="nowrap"><a onclick="printwin('||action||?cmd=item-||h_uidl||&amp;require_lock=true&amp;require_lock=true&amp;get_attach_id=true&amp;utoken=||utoken||&amp;folder=||fld||&amp;java_email=true&amp;&amp;');" href="#" target="_self">||ifequal||folder||copy_name||||lchop||h_to||30||||else||||lchop||h_from_personal||30||||endif||</a></td>
			<td nowrap="nowrap">
				||ifequal||h_priority||urgent||
					<a onclick="printwin('||action||?cmd=item-||h_uidl||&amp;require_lock=true&amp;require_lock=true&amp;get_attach_id=true&amp;utoken=||utoken||&amp;folder=||fld||&amp;java_email=true&amp;&amp;');" href="#" target="_self"><font color="#FF0000"><b>Urgent</b> ||lchop||h_subject||40||</font></a>
				||else||
					<a onclick="printwin('||action||?cmd=item-||h_uidl||&amp;require_lock=true&amp;require_lock=true&amp;get_attach_id=true&amp;utoken=||utoken||&amp;folder=||fld||&amp;java_email=true&amp;&amp;');" href="#" target="_self">||lchop||h_subject||40||</a>
				||endif||
				<img src="||nwimg||/iunseen||h_isunseen||.gif" width="10" height="10" alt="" />
			</td>
			<td>||h_date_day||</td>
			<td nowrap="nowrap">||h_date_time||</td>
			<td>||h_attach||</td>
			<td>||h_bytes||</td>
		</tr>
	||else||

		<tr id="tr||msg_line||" bgcolor="||ifinstr||_highlight||h_from_email||#FFe0e0||else||#ffffff||endif||" ||ifinstr||ie_version||6.||onmousedown="TRdown(this, 'sel_||h_uidl||', event);" onmouseup="TRup(this, 'sel_||h_uidl||');" onmouseover="TRover(this, 'sel_||h_uidl||');"||endif||>
			<td nowrap="nowrap" align="center">(DRAFT)</td>
			||ifdef||number_fetch||
				<td align="center">
					||ifdef||fet_number||
						<img src="||nwimg||/host||fet_number||.gif" alt="" />
					||endif||
				</td>
			||endif||
			<td><input type="checkbox" name="sel_||h_uidl||" id="check||msg_line||" value="on" ||ifinstr||ie_version||6.||onmouseup="TRcheckbox(this, 'sel_||h_uidl||');" onmousedown="TRcheckdown(this, 'sel_||h_uidl||');"||endif|| /></td>
			<td>(self)</td>
			<td nowrap="nowrap">
				<a href="||action||?cmd=||ifdef||_nopreview||list||else||show||endif||&amp;get_attach_id=true&amp;page=framenew&amp;not_new=true&amp;listcmd=msg_draft-||h_uidl||&amp;utoken=||utoken||&amp;folder=||fld||&amp;isdraft=true&amp;&amp;" onclick="this.target=openWindow();" target="_blank">||lchop||h_subject||40||</a>
			</td>
			<td>||h_date_day||</td>
			<td nowrap="nowrap">||h_date_time||</td>
			<td>||h_attach||</td>
			<td>||h_bytes||</td>
		</tr>
	||endif||
	||end_list||
||endif||


<tr>
	<td></td>
	||ifdef||number_fetch||
		<td></td>
	||endif||
	<td nowrap="nowrap" valign="top"><input name="allbox" type="checkbox" value="Check All" onclick="CheckAll();" /></td>
	<td nowrap="nowrap" colspan="6">

		<table width="100%">
		<tr>
			<td><i>Select all displayed messages</i><br />
||undef||done_imap_quota||
||ifequal||enable_imap_quota||true||
	||ifdef||imap_disk_quota||
		||ifdef||imap_size||
<script type="text/javascript">
<!--
	if (||disk_quota|| > 0)
		document.writeln("You are using ||kimap_size||k of ||kimap_disk_quota||k bytes disk space");
//-->
</script>
			||define||done_imap_quota||true||
		||endif||
	||endif||
||endif||
||ifndef||done_imap_quota||
	||ifinstr||connection_type||imap||
	||else||
		||ifdef||disk_quota||
			||ifdef||pop_size||
<script type="text/javascript">
<!--
	if (||disk_quota|| > 0)
		document.writeln("You are using ||kpop_size||k of ||kdisk_quota|| bytes disk space");
//-->
</script>
			||endif||
		||endif||
	||endif||
||endif||
			</td>
			<td valign="top" nowrap="nowrap"><img src="||nwimg||/iread0.gif" width="10" height="10" alt="" />&nbsp;=&nbsp;Unread</td>
			<td valign="top"><img src="||nwimg||/iunseen1.gif" width="10" height="10" alt="" /> = new</td>
			<td valign="top"><img src="||nwimg||/iattach1.gif" width="7" height="12" alt="" /> = attachment</td>
			<td valign="top"><img src="||nwimg||/ireply1.gif" width="9" height="8" alt="" /> = replied</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</form>

||ifdef||rule_log||
	<center>
		<table border="1" bgcolor="ffffff">
		<tr>
			<td>Log of rule processing</td>
		</tr>
		<tr>
			<td><pre>||rule_log||</pre></td>
		</tr>
		</table>
	</center>
||endif||

||ifequal||_played_sound||2||
||ifdef||_sound_file||
||ifdef||_nnew||
	<script type="text/javascript">
	<!---
	if (||_nnew|| > 0) {
		var MSIE=navigator.userAgent.indexOf("MSIE");
		var NETS=navigator.userAgent.indexOf("Netscape");
		var OPER=navigator.userAgent.indexOf("Opera");
		if((MSIE>-1) || (OPER>-1)) {
			document.write('<BGSOUND SRC="||_sound_file||" LOOP=false>');
		} else {
			document.write('<EMBED SRC="||_sound_file||" autostart=true loop=false volume=100 align="center" width=0 height=0 controls=smallconsole>');
		}
	}
	// -->
	</script>
||endif||
||endif||
||endif||

<script type="text/javascript">
<!--

function SelectAll()
{
	if (document.List.allbox.checked == true) {
		document.List.allbox.checked = false;
	}
	else {
		document.List.allbox.checked = true;
	}
	CheckAll();
}

function CheckAll()
{
	for (var i=0;i<document.List.elements.length;i++)
	{
		var e = document.List.elements[i];
		if (e.name != 'allbox')
			e.checked = document.List.allbox.checked;
	}
	var color = document.List.allbox.checked ? "#eeeeff" : "#ffffff" ;
	var colorHL = document.List.allbox.checked ? "#ccccff" : "#FFe0e0" ;
	var rows = document.getElementById('listTable').rows;
	for(var i=1; i<rows.length-1; i++){
		if(rows[i].bgColor == "#ffffff" || rows[i].bgColor == "#eeeeff")
			rows[i].bgColor = color;
		else
			rows[i].bgColor = colorHL;
	}
}
//-->
</script>
</body>
</html>