<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Format.aspx.cs" Inherits="HRMS.Format" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                    <header class="panel-heading">
                        Standard Check Format
                          <div class="pull-right">
                           <asp:Button ID="btn_save" runat="server" CssClass="btn btn-info" Text="Save" OnClick="btn_save_Click" ValidationGroup="save" />
                        </div>
                    </header>

                    <div class="panel-body">
                           <div class="span6">
                                <div id="divmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" ID="lbl_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>

                            <div class="span6">
                                <div id="diverrmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:label text="" id="lbl_err_msg" CssClass="msg" runat="server"></asp:label>
                                </div>
                            </div>


                        <div class="row">
                            <asp:HiddenField ID="hid_format" runat="server" />
                            <label class="control-label col-md-1">Code</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_code" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="Reqadd" ControlToValidate="txt_code" ErrorMessage="Code is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                            </div>

                            <label class="control-label col-md-3">Data Extract</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_extract" runat="server" CssClass="form-control"></asp:DropDownList>
                                <asp:RequiredFieldValidator Visible="false" runat="server" ID="RequiredFieldValidator1" ControlToValidate="ddl_type" ErrorMessage="Processing Type is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                            </div>
                        </div>


                                   <div class="row">
                            <label class="control-label col-md-1">Name</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_name" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="txt_name" ErrorMessage="Name is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                            </div>

                            <label class="control-label col-md-3">XML Publisher Template</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_xml_pub" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>

                          <div class="row">
                            <label class="control-label col-md-1">Type</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="TextBox2" Enabled="false" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>

                            <label class="control-label col-md-3">Attachment</label>
                            
                        </div>

                        <hr />


                               <asp:GridView ID="grd" runat="server" AutoGenerateColumns="False" 
                      cellpadding="0" border="0" class="display" 
                      onrowcommand="grd_RowCommand">
            <Columns>
                <asp:BoundField HeaderText="ID" DataField="FORMAT_ID" />
                <asp:BoundField HeaderText="Code" DataField="FORMAT_CODE" />
                <asp:BoundField HeaderText="Name" DataField="FORMAT_TYPE_CODE" />
                <asp:TemplateField ItemStyle-Width="6%" HeaderText="Action">
                    <ItemTemplate>
                        <%--   <%#Container.DataItemIndex+1 %>
                        <asp:CheckBox ID="chk" runat="server" />--%>
                        <asp:LinkButton ID="lnkEdit" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                        &nbsp<asp:LinkButton ID="lnkDelete" Visible="false" runat="server" CommandName="gDelete" OnClientClick="return confirm('Are you sure to delete?')"><i class="fa fa-trash" style="font-size:20px !important"></i></asp:LinkButton>
                     </ItemTemplate>

                        <ItemStyle Width="6%"></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <%-- Mandatory--%>
            <RowStyle CssClass="rowStyle"/>
           <%-- Mandatory--%>
            <HeaderStyle CssClass="headerStyle" />
           <%-- optional--%>
           <FooterStyle  CssClass="footerStyle"  />
        </asp:GridView>
            <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
            <script src="/ThemeScrips/Datatables/media/js/jquery.dataTables.min.js" type="text/javascript"></script>
            <script src="/ThemeScrips/Datatables/media/js/jquery.dataTables.js" type="text/javascript"></script>
            <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
            <script type="text/javascript">
                //without passing class names.
                $("#ContentPlaceHolder1_grd").GridviewFix().dataTable();
                //Passing class names
            </script>

                         
                    </div>
                </section>
            </div>
        </div>
    </div>
</asp:Content>
