<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AnnouncementDetail.aspx.cs" Inherits="Common_AnnouncementDetail" Title="<%$ Resources: SiteMapLocalizations, Maintenance_AddAnnouncement %>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<p class="masterpageContent">
    <asp:DetailsView ID="DetailsView1" AutoGenerateRows="false" runat="server" BackColor="White" BorderColor="#E7E7FF"
        BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="ObjectDataSource1"
        GridLines="Horizontal" Height="50px" Width="120px" OnDataBound="DetailsView1_DataBound">
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
        
        <HeaderTemplate>
            <asp:Label ID="lblTitle" Text="<%$ Resources: Universal, Announcement_DetailTitle %>" runat="server"></asp:Label>
        </HeaderTemplate>
        <Fields>
            <asp:TemplateField HeaderText="<%$ Resources:Universal, Comm_PostFrom %>">
                <ItemTemplate>
                    <asp:Label ID="lblPostFrom" runat="server" Text='<%# Eval("PostFrom") %>' Width="500px"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" ForeColor="Blue" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Universal, Comm_CreateDate %>">
                <ItemTemplate>
                    <asp:Label ID="lblDate" runat="server" Text='<%# Eval("CreateDate") %>' Width="500px"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" ForeColor="Blue" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Universal, Comm_Subject %>">
                <ItemTemplate>
                    <asp:Label ID="lblSubject" runat="server" Text='<%# Eval("Subject") %>' Width="500px"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" ForeColor="Blue" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Universal, Comm_Contents %>">
                <ItemTemplate>
                    <asp:Label ID="lblContents" runat="server" Text='<%# Eval("Contents") %>' Width="500px"></asp:Label>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" ForeColor="Blue" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="<%$ Resources:Universal, Msg_AttachFile %>">
                <ItemTemplate>
                    <asp:HiddenField ID="hidFiles" Value='<%# Eval("AttachedFile") %>' runat="server" Visible="false" />
                    <asp:Panel ID="pnlFiles" runat="server"></asp:Panel>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle HorizontalAlign="Left" ForeColor="Blue" />
            </asp:TemplateField>
        </Fields>
        
        <FooterTemplate>
            <asp:Button ID="btnBack" runat="server" Text="<%$ Resources: Universal, Msg_Back %>" OnClick="btnBack_Click" />
        </FooterTemplate>
        
    </asp:DetailsView>
</p>

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="Common_AnnouncementData" SelectMethod="SelectByAnnouncementID">
        <SelectParameters>
            <asp:QueryStringParameter Name="AnnouncementID" QueryStringField="AnnouncementID" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

