<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_receiveMail, App_Web_xpyiwnev" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" 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" link="#00cc66" vlink="#ff0000" >
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
      
        <div >
         <table style="width: 100%; border-bottom: #0099cc 1px solid;" 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>
                </table>
            <div style="margin-top: 5px; width: 100%">
                <table cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td style="width: 55%; height: 22px;">
                            <asp:Button ID="Button1" runat="server" Text="删除" Height="21px" OnClick="Button1_Click"
                                OnClientClick="return confirm('确认删除？')" />
                            <asp:Button ID="Button6" runat="server" Text="彻底删除" OnClientClick="return confirm('确认彻底删除？')"
                                Height="21px" OnClick="Button6_Click" />
                            <asp:Button ID="Button3" runat="server" Text="标记为已读" Height="21px" OnClick="Button3_Click"  />
                            <asp:Button ID="Button8" runat="server" Height="21px" OnClick="Button8_Click" Text="标记为未读" />
                            <asp:Button
                                ID="Button7" runat="server" Text="标记为待办" Height="21px" OnClick="Button7_Click"/>
                            <asp:DropDownList
                                ID="DropDownList1"  runat="server" AutoPostBack="True" OnTextChanged="DropDownList1_TextChanged" >
                                <asp:ListItem  Value =1>已读</asp:ListItem>
                                <asp:ListItem Selected =True Value =0>未读</asp:ListItem>
                               
                            </asp:DropDownList>
                          
                        </td>
                        <td style="text-align: right; width: 45%; height: 22px; font-size: 9pt;">
                            <span style="font-size: 9pt; font-weight: bold">收信箱</span>(共<asp:Label ID="Label1"
                                runat="server" Text="" ForeColor="Red"></asp:Label>封，其中未读邮件<asp:Label ID="Label2" runat="server"
                                    Text="" ForeColor="Red"></asp:Label>封)<asp:Label
                                        ID="Label9" runat="server" Text="0" Visible="False"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
           
        </div>
        <div  class  = "mycss">
                <asp:GridView ID="GridView1" runat="server"  Width="100%" AutoGenerateColumns="False" Style="text-align: center" OnDataBound="GridView1_DataBound"  PageSize="30" Font-Size="9pt" HeaderStyle-BackColor="#1471B0" HeaderStyle-ForeColor="White" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging1"  >
                   
                  <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   >
                            <HeaderTemplate >
                                <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged"
                                    Text=" "  />全选
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox3" runat="server" AutoPostBack="True" Text=" " ValidationGroup='<%# Eval("id") %>'
                                    OnCheckedChanged="CheckBox3_CheckedChanged" />
                            </ItemTemplate>
                            <ItemStyle Width="80px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                            <ItemTemplate>
                                <asp:Label ID="lblid" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="receiverId" HeaderText="receiverId" SortExpression="receiverId"
                            Visible="False" />
                        <asp:TemplateField HeaderText="是否阅读" SortExpression="reads"  >
                            <ItemTemplate>
                                <img id="Image1" src='images/<%# Getimg(Eval("reads")) %>' alt="" />
                            </ItemTemplate>
                            <ItemStyle Width="70px" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="主题" SortExpression="topic" >
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("topic") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <img id="dfe" alt="" src='images/<%# Getimg1(Eval("toDo")) %>' />
                             
                                    
                              <a href='checkMail.aspx?pg=1&id=<%# Eval("id") %> ' target =_blank>  <%# Eval("topic") %>  </a>
                                    
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="内容" SortExpression="contents"   >
                            <ItemTemplate>
                                <asp:Label ID="lblcontents" runat="server"  Text = '<%# GetContents20(Eval("contents")) %>'  Tooltip='<%# Eval("contents") %>'></asp:Label>
                            </ItemTemplate>
                             <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="发件人" SortExpression="senderId"  >
                            <ItemTemplate>
                                <asp:Label ID="lblsender" runat="server" Text='<%# GetUname(Eval("senderId")) %>'></asp:Label>
                            </ItemTemplate>
                             <ItemStyle Width="70px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="cdate" HeaderText="发送时间" SortExpression="cdate"  />
                        <asp:BoundField DataField="rdate" HeaderText="rdate" SortExpression="rdate" Visible="False" />
                        <asp:CheckBoxField DataField="receiverReads" HeaderText="receiverReads" SortExpression="receiverReads"
                            Visible="False" />
                        <asp:CheckBoxField DataField="toEmail" HeaderText="toEmail" SortExpression="toEmail"
                            Visible="False" />
                        <asp:CheckBoxField DataField="del" HeaderText="del" SortExpression="del" Visible="False" />
                        <asp:TemplateField HeaderText="状态" SortExpression="urgent"  >
                            <ItemTemplate>
                                <asp:Label ID="Label4" runat="server" Text='<%# Getjj(Eval("urgent")) %>'></asp:Label>
                            </ItemTemplate>
                             <ItemStyle Width="60px" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#1471B0"  Font-Bold="True" 
                        ForeColor="White" BorderColor="White" BorderWidth="1px" BorderStyle="Solid" />
                    <AlternatingRowStyle BackColor="White" BorderStyle="None"  />
                    <RowStyle BorderStyle="None" />
                  
                </asp:GridView>
           
               </div> 
              
                  </ContentTemplate>
        </asp:UpdatePanel>
              
    </form>
</body>
</html>

