<%@ page language="C#" autoeventwireup="true" inherits="admin_email, aoshuosoft" %>

<!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.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound" OnPageIndexChanging="GridView1_PageIndexChanging" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="20">
            <Columns>
                <asp:BoundField DataField="fromaddress" HeaderText="发件地址" />
                <asp:BoundField DataField="toaddress" HeaderText="收件地址" />
                <asp:TemplateField HeaderText="主题"><ItemTemplate><a href="editemail.aspx?id=<%#Eval("id") %>"><%#Eval("titlel").ToString().PadRight(50).Remove(12)%></a></ItemTemplate></asp:TemplateField>
                <asp:TemplateField HeaderText="内容"><ItemTemplate><a><%#Eval("nr").ToString().PadRight(50).Remove(22)%></a></ItemTemplate></asp:TemplateField>
                <asp:BoundField DataField="sj" HeaderText="发送时间" />
                <asp:BoundField DataField="editpersonnel" HeaderText="发件人" />
                <asp:TemplateField HeaderText="查看编辑"><ItemTemplate><a href="editemail.aspx?id=<%#Eval("id") %>">查看/编辑</a></ItemTemplate></asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:Literal ID="tj" runat="server"></asp:Literal></div>
    </form>
</body>
</html>
