<%@ page language="VB" masterpagefile="~/Template/Master.master" validaterequest="false" autoeventwireup="false" inherits="HelpDesk_AddAnnouncement, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>

<asp:Content ID="Content7" ContentPlaceHolderID="CPH_Content" runat="Server">
    <asp:SqlDataSource ID="DS_DepartmentAnnouncement" runat="server"></asp:SqlDataSource>
    <asp:GridView CssClass="table table-bordered table-striped table-hover" ID="GV_DepartmentAnnouncement" DataSourceID="DS_DepartmentAnnouncement"
        runat="server" AllowPaging="True" AutoGenerateColumns="False">
        <AlternatingRowStyle CssClass="altRow" />
        <Columns>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000280 %>'>
                <ItemTemplate>
                    <%#DataBinder.Eval(Container, "DataItem.Title")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000608 %>'>
                <ItemTemplate>
                    <asp:HiddenField ID="HF_Id" Value='<%# DataBinder.Eval(Container, "DataItem.Id") %>'
                        runat="server" />
                    <div id="div_SubAnnouncement" runat="server">
                    </div>
                    <asp:LinkButton ID="LBtn_More" runat="server" CommandName="More" CssClass="LinkButtonMore"
                        CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Id") %>' Text='<%$ Resources:Content,GN0000667 %>'></asp:LinkButton>
                    <div id="div_FullAnnouncement" runat="server">
                    </div>
                    <asp:HiddenField ID="HF_CompleteData" Value='<%# DataBinder.Eval(Container, "DataItem.Suject") %>'
                        runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000668 %>'>
                <ItemTemplate>
                    <div id="div_CreationDateTime" runat="server">
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000669 %>'>
                <ItemTemplate>
                    <div id="div_ExpirationDateTime" runat="server">
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360 %>'>
                <ItemTemplate>
                    <asp:LinkButton CssClass="LinkButtonEdit" ID="LB_Edit" runat="server" Text='<%$ Resources:Content,GN0000276 %>'></asp:LinkButton>
                    <asp:LinkButton runat="server" CommandName="RowRemove" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Id") %>'
                        ID="LB_Remove" Text='<%$ Resources:Content,GN0000278 %>' CssClass="LinkButtonRemove btnAction"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.GN0000606%>                                                                                                                                
                </h3>
            </div>
            <div class="body">

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *
                        <asp:Label ID="Div1" EnableViewState="false" runat="server" Text='<%$ Resources:Content,GN0000607 %>' />:
                    </div>

                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_AnnouncementTitle" MaxLength="500" Width="50%" runat="server"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *
                        <asp:Label ID="Div2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000608 %>'></asp:Label>:
                    </div>

                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox ID="TxBx_Announcement" TextMode="MultiLine" Height="100px" CssClass="col-xs-12"
                                runat="server" MaxLength="8000"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *
                        <asp:Literal ID="Div3" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000609 %>'></asp:Literal>:
                    </div>

                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div id="Div4" runat="server" innertext='<%$ Resources:Content,GN0000610 %>'>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <%--  <div class="col-sm-offset-3 col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox ID="TxBx_Expirationdate" runat="server"></asp:TextBox>
                            <a onclick="window.open('CalenderPopUp.aspx?textbox=ctl00_CPH_Content_TxBx_Expirationdate','cal','width=350,height=190,left=270,top=180')"
                                href="javascript:;">
                                <img height="16" alt="SC" src="../../App_Themes/Default/Images/icons/smallcalendar.png"
                                    width="16" align="middle" border="0"></a>
                    --%>
                    <div class="col-sm-offset-3 col-sm-4 col-xs-12">
                        <div class="form-group display-date-input">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Expirationdate" runat="server"></asp:TextBox>
                            </div>
                        </div>
                        <i runat="server" id="A_RRangeAfter" class="material-icons icon-calendar col-calendar"></i>
                        <EM:CalendarExtender ID="CE_RRangeAfter" runat="server" TargetControlID="TxBx_Expirationdate"
                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>" PopupButtonID="A_RRangeAfter" CssClass="date__calendar">
                        </EM:CalendarExtender>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                    </div>

                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="ChkBx_NeverExpire" Text="<%$ Resources:Content,GN0000611%>" runat="server" />
                            <div id="Div5" runat="server" innertext='<%$ Resources:Content,GN0000612 %>'>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_Add" runat="server" ValidationGroup="V" Text='<%$ Resources:Content,GN0000659 %>' class="btn btn-primary btnAction" />
                        <asp:Button ID="Btn_Back" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000483 %>' class="btn btn-primary" />
                        <asp:ValidationSummary ValidationGroup="V" ShowMessageBox="true" ShowSummary="false"
                            HeaderText="<%$ Resources:Content,EM000001 %>" ID="ValidationSummary1" runat="server" />
                        <asp:RequiredFieldValidator ValidationGroup="V" Display="None" ID="RequiredFieldValidator1"
                            ControlToValidate="TxBx_AnnouncementTitle" runat="server" ErrorMessage='' SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_Expirationdate"
                            Display="None" ErrorMessage="" SetFocusOnError="True" ValidationGroup="V"></asp:RequiredFieldValidator>
                        <asp:RequiredFieldValidator ValidationGroup="V" Display="None" ID="RequiredFieldValidator2"
                            ControlToValidate="TxBx_Announcement" runat="server" ErrorMessage='' SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
