<html>
||define||count||-1||
||include||meta.tpl||
<head>
<link rel="stylesheet" type="text/css" href="||nwimg||||tpl_color||/surge.css" />
<script type="text/javascript" src="||common_files||/util.js"></script>
<script type="text/javascript" src="||nwimg||/layout.js"></script>
<title>||cust_title|| - ||lang_str||Manage Folders||</title>
</head>
<body class="body" onload="doresize();" onresize="doresize()">

||include||_layout_start.tpl||

||ifdef||error||
	||include||_errorinline.tpl||
||endif||
||ifdef||msg||
	||include||_msginline.tpl||
||endif||

||undef||xamount||
||ifinstr||surgemail_disallow||surgeplus||
||else||
	||ifdef||use_surgemail_xfile||
		||ifinstr||connection_type||POP||
			||ifdef||disk_quota||
				||define||xamountk||(||kpop_size||)||
				||define||xmaxk||(||kdisk_quota||)||
			||endif||
		||else||
			||ifequal||enable_imap_quota||true||
				||ifdef||imap_disk_quota||
					||define||xamountk||(||kimap_size||)||
					||define||xmaxk||(||kimap_disk_quota||)||
				||endif||
			||endif||
		||endif||
	||endif||
||endif||


<center>
<p><div class="LF b">||lang_str||Manage Folders||</div></p>
<table class="LT" border="0" cellspacing="0">
<tr class="bg1">
	<th>||lang_str||Folder||</th>
	<th>||lang_str||Messages||</th>
	<th>||lang_str||Read||</th>
	<th>||lang_str||Draft||</th>
	<th>||lang_str||Reply||</th>
	<th>||lang_str||Size|| (kb)</th>
	<th> </th>
</tr>
||define||color||1||
||begin_folder||
||define||count||(||add||count||1||)||
||define||java_array||(||java_array|| this[i++] = "||fld_name||";)||
<tr class="L||color||">
	||ifequal||color||1||
		||define||color||0||
	||else||
		||define||color||1||
	||endif||
	<td><a href="javascript:G2('reload_mail&fld=||encode_text||fld_name||&encode_text=fld')">||lang||fld_name||</a></td>
	<td>||fld_msg||</td>
	<td>||fld_seen||</td>
	<td>||fld_draft||</td>
	<td>||fld_reply||</td>
	<td>||fld_ksize||</td>
	<td><a href="javascript:delfld('||encode_text||fld_name||','||count||')">||lang_str||delete folder||</a></td>
</tr>
||end_folder||
<tr class="L||color||">
	||ifequal||color||1||
		||define||color||0||
	||else||
		||define||color||1||
	||endif||
	||ifgreater||fld_fetch_msg||0||
		<td class="b">||lang_str||Sub Total||</td>
	||else||
		<td class="b">||lang_str||Total||</td>
	||endif||
	<td>||fld_msg_total||</td>
	<td>||fld_seen_total||</td>
	<td>||fld_draft_total||</td>
	<td>||fld_reply_total||</td>
	<td>||fld_ksize_total||</td>
	<td> </td>
</tr>
||ifgreater||fld_fetch_msg||0||
	<tr class="L||color||">
		||ifequal||color||1||
			||define||color||0||
		||else||
			||define||color||1||
		||endif||
		<td><a href="javascript:G2('reload_mail')"><i>||lang_str||Fetch Accounts||</i></a></td>
		<td>||fld_fetch_msg||</td>
		<td>||fld_fetch_seen||</td>
		<td>||fld_fetch_draft||</td>
		<td>||fld_fetch_reply||</td>
		<td>||fld_fetch_ksize||</td>
		<td> </td>
	</tr>
	<tr class="L||color||">
		||ifequal||color||1||
			||define||color||0||
		||else||
			||define||color||1||
		||endif||
		<td class="b">||lang_str||Total||</td>
		<td>||add||fld_fetch_msg||fld_msg_total||</td>
		<td>||add||fld_fetch_seen||fld_seen_total||</td>
		<td>||add||fld_fetch_draft||fld_draft_total||</td>
		<td>||add||fld_fetch_reply||fld_reply_total||</td>
		<td>||add||fld_fetch_ksize||fld_ksize_total||</td>
		<td> </td>
	</tr>
||endif||
||ifdef||xamountk||
<tr class="L||color||">
	||ifequal||color||1||
		||define||color||0||
	||else||
		||define||color||1||
	||endif||
	<td class="b">||lang_str||Filestore||</td>
	<td colspan="4">&nbsp;</td>
	<td>||sub||xamountk||fld_ksize_total||</td>
	<td></td>
</tr>
<tr class="L||color||">
	||ifequal||color||1||
		||define||color||0||
	||else||
		||define||color||1||
	||endif||
	<td class="b">||lang_str||Quota used|| (<b>||percent||xamountk||xmaxk||%</b>)</td>
	<td colspan="4">&nbsp;</td>
	<td>||xamountk|| ||lang_str||of|| ||xmaxk||</td>
	<td></td>
</tr>
||endif||
</table>
<P>
<TABLE>
<TR>
	<TD WIDTH="50%" VALIGN="TOP">
		<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="bg1">
		<TR>
			<TD class="LF c">
			<form name="form1" method="post" action="||action||">
			<input type="hidden" name="utoken" value="||utoken||" />
			<input type="hidden" name="on_error" value="fld_manage" />
			<B>||lang_str||Rename a folder||</B><P>
			||lang_str||Select the folder you would like to rename||<BR>
			<SELECT NAME="dstfld">
			||begin_fld_short||
				<option value="||fld_name||">||lang||fld_name||</option>
			||end_fld_short||
			</SELECT><P>
			||lang_str||What would you like to rename the folder to||<BR>
			<INPUT TYPE="Text" NAME="fld_name" SIZE="30"> <INPUT TYPE="Submit" class="btn" name="fld_rename" VALUE="||lang_str||Rename||">
			</form>
			</TD>
		</TR>
		</TABLE>

	</TD>
	<TD WIDTH="50%" VALIGN="TOP">
		<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="8" class="bg1">
		<TR>
			<TD class="LF c">
			<form name="form2" method="post" action="||action||">
			<input type="hidden" name="utoken" value="||utoken||" />
			<input type="hidden" name="cmd" value="fld_create" />
			<input type="hidden" name="on_error" value="fld_manage" />
			<B>||lang_str||Create a new folder||</B><P>
			||lang_str||Enter a name for your new folder in the space below||<P>
			<INPUT TYPE="Text" NAME="fld_name" SIZE="30"> <INPUT TYPE="Submit" class="btn" name="fld_create" VALUE="||lang_str||Create||">
			</form>
			</TD>
		</TR>
		</TABLE>
	</TD>
</TR>
</TABLE>
</center>

<script type="text/javascript">
<!--
function makefldarray()
{
	var i =0;
	||java_array||
	this[i] = null;
	this.length = i;
}
var full_folder_list = new makefldarray();
var loop = full_folder_list.length;

function delfld(f, g)
{
	if (!confirm("||lang_str||Are you sure you want to delete the entire|| '"+full_folder_list[g]+"' ||lang_str||folder?||")) return;
	G2("fld_delete&on_error=fld_manage&encode_text=dstfld&dstfld="+f);
}
-->
</script>
</body>
</html>
