<!--
	Note:  If you want to customize 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">
||get_list_charset||
||ifdef||list_email_charset||
	||ifinstr||list_email_charset||UTF-8||
		||define||list_email_charset||iso-8859-1||
	||endif||
	||ifinstr||list_email_charset||UTF-7||
		||define||list_email_charset||iso-8859-1||
	||endif||
	<meta http-equiv="Content-type" content="text/html; charset=||list_email_charset||">
||endif||
<!--listf2.tpl-->
<html>
<head>
||just_include||css.tpl||
<style type="text/css">
<!--
a.empty{
	font: 8pt "Arial";
    color: gray;
	text-decoration: none;
}

a.empty:hover{
	text-decoration: underline;
}
//-->
</style>
||define||mynitems||(||add||nitems||fld_fetch_msg||)||
||define||mynunread||(||add||nunread||fld_fetch_unseen||)||
<script type="text/javascript">
<!--
function emptyTrash(){
	if(confirm("Are you sure you want to remove all items in your ||waste_name|| folder?")){
		document.location.replace("||action||?cmd=empty&page=framelist&utoken=||utoken||&folder=||folder||");
	}
}

function emptySpam(){
	if(confirm("Are you sure you want to remove all items in your ||spam_name|| folder?")){
		document.location.replace("||action||?cmd=empty_spam&page=framelist&utoken=||utoken||&folder=||folder||");
	}
}
||ifgreater||page_pos||num_pages||
	window.location.replace("||action||?cmd=list&page=listf2&folder=||folder||&pos=" + ((||_max_message_display|| * (||page_pos|| - 2)) + 1) + "&utoken=||utoken||&&");
||endif||

var nwimg="||nwimg||";
var _min_refresh="||_min_refresh||";
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 java_folder="||java_text||folder||";
var java_inbox="||java_text||(||new_mail_name||)||";
if (java_folder == "INBOX") java_folder = java_inbox;
||ifequal||(||html_text||folder||)||INBOX||
	var html_folder="||html_text||new_mail_name||";
||else||
	var html_folder="||html_text||folder||";
||endif||
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;');" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">

<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||

||ifequal||folder||INBOX||
	||ifdef||_sound_file||
		||ifgreater||nitems||inbox_last_nitems||
			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">');
			}
		||endif||
	||endif||
||endif||

||undef||xamount||
||ifinstr||connection_type||POP||
	||ifdef||disk_quota||
		||define||xamount||(||pop_size||)||
		||define||xmax||(||disk_quota||)||

		||define||xamountk||(||kpop_size||)||
		||define||xmaxk||(||kdisk_quota||)||
	||endif||
||else||
	||ifequal||enable_imap_quota||true||
		||ifdef||imap_disk_quota||
			||define||xamount||(||imap_size||)||
			||define||xmax||(||imap_disk_quota||)||

			||define||xamountk||(||kimap_size||)||
			||define||xmaxk||(||kimap_disk_quota||k)||
		||endif||
	||endif||
||endif||
||ifdef||xamount||
	||define||myquota||(||percent||xamount||xmax||)||

	||ifgreater||myquota||89||
		document.writeln("<h3>Disk space low ||xamountk||k of ||xmaxk|| used</h3>");
	||endif||
||endif||
//-->
</script>
||ifdef||cust_banner_img||
<center>
	<a target="_blank" href="||cust_banner_link||"><img border="0" src="||cust_banner_img||" alt="" /></a>
</center>
||endif||

||ifequal||fetch_manual||true||
	||undef||gotfet||
	||begin_fet||
		||define||gotfet||true||
	||end_fet||

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

||ifinstr||login_msg||$DUE||
	||include||_payment.tpl||
||endif||
||ifdef||error||
	<center>
	<table border="1">
	<tr><td><h3>An error has occurred</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||
||ifdef||more_to_download||
	<center>
	<table>
	<tr><td><b>||cust_display_name|| has downloaded ||max_downloaded|| leaving ||more_to_download|| to download next time you check mail.</b></td></tr>
	</table>
	</center>
||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="fld" value="||fld||" />
	<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" cellspacing="0" cellpadding="0">
<tr bgcolor="#D6D6CE">
	||ifequal||folder||waste_name||
		<td colspan="||ifdef||number_fetch||8||else||7||endif||" align="center" width="100%"><font size="3"><b>||lang_str||(||folder||)||</b></font> - <a class="empty" href="javascript:emptyTrash();">[empty]</a></td>
	||else||
		||ifequal||folder||spam_name||
			<td colspan="||ifdef||number_fetch||8||else||7||endif||" align="center" width="100%"><font size="3"><b>||lang_str||(||folder||)||</b></font> - <a class="empty" href="javascript:emptySpam();">[empty]</a></td>
		||else||
			<td colspan="||ifdef||number_fetch||8||else||7||endif||" align="center" width="100%"><font size="3"><b>||lang_str||(||folder||)||</b></font></td>
		||endif||
	||endif||
</tr>
<tr bgcolor="#D6D6CE">
	<td 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 style="text-decoration: none" href="||action||?cmd=list&amp;sort_on=read_unread&amp;sort_method=read_unread&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>&nbsp;Host&nbsp;</td>
	||endif||
	<td>&nbsp;<a href="javascript:SelectAll();">Select</a>&nbsp;</td>

	||ifequal||folder||copy_name|| ||define||to_from||to:|| ||define||sorthead||To|| ||else|| ||define||to_from||from:|| ||define||sorthead||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 align="left">&nbsp;<a ||ifequal||sort_on||to_from||class="bold" ||endif||href="||action||?cmd=list&amp;sort_on=||to_from||&amp;sort_method=text&amp;sort_reverse=||truefalse||&amp;utoken=||utoken||&amp;fld=||fld||&amp;pos=||pos||">||sorthead||</a></td>

	||ifequal||sort_on||subject:|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||else|| ||define||truefalse||true|| ||endif|| ||else|| ||define||truefalse||true|| ||endif||
	<td align="left" width="100%">&nbsp;&nbsp;<a ||ifequal||sort_on||subject:||class="bold" ||endif||href="||action||?cmd=list&amp;page=listf2&amp;sort_on=subject:&amp;sort_method=thread&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 align="left">&nbsp;<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 align="left">&nbsp;||ifequal||sort_on||date:||<b>Time</b>||else||Time||endif||</td>

	||ifequal||sort_on||h_bytes|| ||ifequal||sort_reverse||true|| ||define||truefalse||false|| ||else|| ||define||truefalse||true|| ||endif|| ||else|| ||define||truefalse||true|| ||endif||
	<td align="left" nowrap="nowrap">&nbsp;<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>&nbsp;</td>
	||ifdef||number_fetch||
		<td>&nbsp;</td>
	||endif||
	<td colspan="3">"This Folder Contains No Messages"</td>
	<td>&nbsp;</td>
	<td>&nbsp;</td>
	<td>&nbsp;</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 align="center"><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">&nbsp;<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||
					&nbsp;&nbsp;<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||
					&nbsp;&nbsp;<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 nowrap="nowrap">&nbsp;||h_date_day||</td>
			<td nowrap="nowrap">&nbsp;||h_date_time||</td>
			<td>&nbsp;||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 align="center"><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>&nbsp;(self)</td>
			<td nowrap="nowrap">&nbsp;&nbsp;<a href="||action||?cmd=||ifdef||_nopreview||list||else||show||endif||&amp;get_attach_id=true&amp;page=framenew&amp;do_encode=true&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 nowrap="nowrap">&nbsp;||h_date_day||</td>
			<td nowrap="nowrap">&nbsp;||h_date_time||</td>
			<td>&nbsp;||h_bytes||</td>
		</tr>
	||endif||
	||end_list||
||endif||

<tr>
	<td></td>
	||ifdef||number_fetch||
		<td></td>
	||endif||
	<td></td>
	<td nowrap="nowrap" colspan="5">
		<table width="100%">
		<tr>
			<td><input name="allbox" type="checkbox" value="Check All" onclick="CheckAll();" /><i>Select all displayed messages</i><br />

||ifgreater||xmax||0||
<script type="text/javascript">
<!--
	document.writeln("You are using ||xamountk||k of ||xmaxk|| bytes disk space");
//-->
</script>
||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>

||ifdef||enable_contact_import||
||ifequal||folder||Contacts||
<tr>
	<td</td>
	<td colspan="3"><a href="javascript:email_addr_import()">Import to Address book</a>
		<select size="1" name="abook_edit">
		||begin_book||
			<option value="||addr_book||" ||selected||>||trans_addr_book||</option>
		||end_book||
		</select></td>
	</td>
</tr>
<script type="text/javascript">
<!--
function email_addr_import()
{
	document.List.cmd.value = "contacts_import";
	document.List.submit();
}
// -->
</script>
||endif||
||endif||
</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;
	if(navigator.userAgent.indexOf("Opera") >= 0){
		for(var i=3; i<rows.length; i++){
			if(rows[i].bgColor == "#ffffff" || rows[i].bgColor == "#eeeeff")
				rows[i].bgColor = color;
			else
				rows[i].bgColor = colorHL;
		}
	}
	else{
		for(var i=2; i<rows.length-1; i++){
			if(rows[i].bgColor == "#ffffff" || rows[i].bgColor == "#eeeeff")
				rows[i].bgColor = color;
			else
				rows[i].bgColor = colorHL;
		}
	}
}
//-->
</script>

<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||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||

</body>
</html>