<%@ page language="C#" autoeventwireup="true" inherits="admin_email_emailboxlist, localhost_deploy" %>

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

<%@ Register Src="../../common/pageContent.ascx" TagName="pageContent" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>接收邮件页面</title>
<link href="/admin/common/client.css" rel="stylesheet" type="text/css" />
</head>
<body class="mg3">
<%
	PageContent.ImagePageBar=true;
  PageContent.Table="Sys_EmailBox";
	PageContent.Url = "emailboxlist.aspx?type="+Para("type")+"&ord=" + Para("ord") + "&pn=@pagenumber@";
	PageContent.SQL="select R_ID,R_Title,R_Date,R_Status from Sys_EmailBox where R_Type="+Para("type");
	//##Const.AddButton('emailboxitem.aspx?ord=" + Para("ord") + "')##
	PageContent.PageBody("@@Const.PageTable()@@","@@Const.PageBar(\" ##Const.DeleteButton()## <input type='button' value='收邮件' id='butrev' class='button'> \")@@  ","<tr id='trhead'>@content@</tr>","<tr id='tr_@R_ID@'>@content@</tr>");
	PageContent.AddList("<td>编号</td>","<td>@ItemNumber@</td>");
	PageContent.AddList("@@Const.RowToggleAll()@@","@@Const.RowToggleItem('@R_ID@')@@");
  PageContent.AddList("@@Const.PageOrderField('emailboxlist.aspx?type="+Para("type")+"&ord=','R_Title','" + Para("ord") + "','邮件标题')@@", "<td>@R_Title@</td>");
  PageContent.AddList("@@Const.PageOrderField('emailboxlist.aspx?type="+Para("type")+"&ord=','R_Date','" + Para("ord") + "','时间')@@","<td>@R_Date@</td>");
  PageContent.AddList("@@Const.PageOrderField('emailboxlist.aspx?type="+Para("type")+"&ord=','R_Status','" + Para("ord") + "','状态')@@","<td>@@Csharp.GetSelectValue('@R_Status@','0,<span class=\"red\">未读</span>|1,<span class=\"green\">已读</span>|2,已回复')@@</td>");
  PageContent.AddList("<td>&nbsp;</td>","<td><a href='emailboxitem.aspx?id=@R_id@&type="+Para("type")+"' class='edit'>编辑</a></td>");
  
%>
<uc1:pageContent ID="PageContent" runat="server" />
<script type="text/javascript" >
$('butrev').onclick=function ()
{
	location.replace("emailboxlist.aspx?type=0&ord=R_ID desc&formdo=receive&rnd="+Math.random());	
}
</script>

</body>
</html>   
