<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_dustbin, App_Web_xpyiwnev" %>

<%--<!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="../CssHtml.css" rel="stylesheet" type="text/css" />
     <style type ="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style> 
</head>
<body style="font-size: 9pt">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
    <div style="position:relative">
        <table style="width: 100%;" cellpadding="0" cellspacing="0" >
                    <tr style="border-bottom: #1471b0 1px solid">
                        <td style=" text-align: left; width :70%">
                            目前位置：我的邮件 - 内部邮件 - 垃圾箱</td>
                      
                
                <td style="width:30%; height: 22px;" align="right">
                    <a href="../OnlineHelp/OnlineHelp.aspx" target ="_blank" > 
                      <img src="../Images/8.gif" alt ="在线帮助" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;" /> </a></td>
                    </tr>
                    
                   <tr style="border-bottom: #1471b0 1px solid">
                <td style=" text-align: left; width :70%; border-top: #0066ff 1px solid;">
                 <asp:Label ID="Label2" runat="server" Text="0" Visible="False"></asp:Label>
            <asp:Button ID="Button1" runat="server" Text="彻底删除" OnClientClick="return confirm('确认彻底删除？')" OnClick="Button1_Click" />&nbsp;&nbsp;<asp:Button ID="Button3" runat="server" Text="这不是垃圾邮件" OnClick="Button3_Click" />
            <asp:Button ID="Button6" runat="server" OnClick="Button6_Click" Text="标记为待办" />
            <asp:Label ID="Label1" runat="server" Text="0" Visible="False"></asp:Label>       
           </td>
            <td align="right" style="border-top: #0066ff 1px solid; width: 70%;">
             <span style="font-size: 9pt; font-weight: bold">垃圾邮件</span>(共<asp:Label ID="lbl_lj"
                                runat="server" Text="" ForeColor="Red"></asp:Label>封)
            </td>
                </tr>  
                    
                </table>
      
        <div class ="mycss">
          <asp:GridView ID="GridView1" runat="server" style="width:100%; text-align:center" AutoGenerateColumns="False" AllowPaging="True" OnDataBound="GridView1_DataBound" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="30" Font-Size="9">
                <EmptyDataTemplate>
                 <table width="100%">
                                            <tr style="font-weight: bold; font-size: 9pt; color: #ffffff; background-color: #1471B0;
                                                border-right: #6699cc 1px solid; border-top: #6699cc 1px solid; border-left: #6699cc 1px solid;
                                                border-bottom: #6699cc 1px solid;">
                                                 <td align="center" style="color: white;">
                                                     <asp:CheckBox ID="CheckBox4" runat="server" />
                                                </td>
                                                <td align="center" style="color: white;">
                                                    是否阅读
                                                </td>
                                                <td align="center" style="color: white;">
                                                    主题
                                                </td>
                                                <td align="center" style="color: white;">
                                                    内容
                                                </td>
                                                <td align="center" style="color: white;">
                                                    发件人
                                                </td>
                                                <td align="center" style="color: white;">
                                                    接收时间
                                                </td>
                                                <td align="center" style="color: white;">
                                                    状态
                                                </td>
                                               
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="7" style="font-weight: normal; font-size: 9pt;">
                                                    没有数据................................
                                                </td>
                                            </tr>
                                        </table>
                
                
                </EmptyDataTemplate>
                
                <Columns>
                    <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                        <EditItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged" />全选
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox3_CheckedChanged" ValidationGroup='<%# Eval("id") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="接收人" SortExpression="receiverId" Visible="False">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("receiverId") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Labela1" runat="server" Text='<%# Bind("receiverId") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="是否阅读">
                        <ItemTemplate>
                            <img id="Image1" src='images/<%# Getimg(Eval("reads")) %>' alt="" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="发件人" SortExpression="senderId">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("senderId") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Labela2" runat="server" Text='<%# GetUname(Eval("senderId")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="主题" SortExpression="topic">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("topic") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                        <img id="dfe" alt="" src='images/<%# Getimg1(Eval("toDo")) %>' />
                         <a href='checkMail.aspx?pg=3&id=<%# Eval("id") %> ' target =_blank> <%# Eval("topic") %></a>
                          
                        </ItemTemplate>
                          <ItemStyle HorizontalAlign="left" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="cdate" HeaderText="接收时间" SortExpression="cdate" />
                    <asp:TemplateField HeaderText="状态" SortExpression="urgent">
                        <EditItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("urgent") %>' />
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Getjj(Eval("urgent")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
              <HeaderStyle BackColor="#1471B0" ForeColor="White" />
              <AlternatingRowStyle BackColor="White" />
            </asp:GridView> 
           
          
        </div>
    </div>
    </ContentTemplate>
        </asp:UpdatePanel>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
    </form>
</body>
</html>
