<%@ Page Language="C#" AutoEventWireup="true" CodeFile="viewemail.aspx.cs" Inherits="general_email_viewemail" %>

<%@ Import Namespace="HtmlTextFormat" %>
<!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 rel="stylesheet" type="text/css" href="./../../styles/1/style.css">



</head>
<body class="bodycolor">
    <form id="form1" runat="server">
        <div style="text-align: center">
            <table style="text-align: left;" border="0" width="100%" cellspacing="0" cellpadding="3"
                class="small">
                <tr>
                    <td class="Big">
                        <img src="~/images/menu/inbox.gif" width="22" height="18" align="absmiddle" id="IMG5"
                            runat="server"><span class="big3"> 查看邮件</span>
                    </td>
                </tr>
            </table>
            <br />
            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="SqlDataSource1"
                EnableViewState="False" Width="80%" BorderStyle="Solid"  CssClass="mm"
                OnDataBound="DetailsView1_DataBound">
                <Fields>
                    <asp:TemplateField HeaderText="主题" SortExpression="SUBJECT">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SUBJECT") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SUBJECT") %>'></asp:TextBox>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("SUBJECT") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="80%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="发件人" SortExpression="FROM_ID">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FROM_ID") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FROM_ID") %>'></asp:TextBox>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("FROM_ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="80%" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="内容" SortExpression="CONTENT">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CONTENT") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("CONTENT") %>'></asp:TextBox>
                        </InsertItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%#Bind("CONTENT") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="80%" />
                    </asp:TemplateField>
                </Fields>
                <RowStyle HorizontalAlign="Left" />
            </asp:DetailsView>
            <%--<input class="BigButton" onclick="location='inbox.aspx'" title="撰写新的内部邮件" type="button"
                value="返回" />--%>
        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:hqglConnectionString %>"
            SelectCommand="SELECT [SUBJECT], [FROM_ID], [CONTENT] FROM [email] WHERE ([EMAIL_ID] = @EMAIL_ID)">
            <SelectParameters>
                <asp:QueryStringParameter Name="EMAIL_ID" QueryStringField="id" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </form>
</body>
</html>
