<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Venue.aspx.cs" Inherits="HRMS.Venue" %>

<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" style="padding-bottom:30px">
                           <span class="label label-primary">Venue Setup</span>
                        
                        <div class="pull-right">
                            <asp:Button ID="btn_save" runat="server" CssClass="btn btn-info" Text="Save" OnClick="btn_save_Click" />
                        </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">
                            <label class="control-label col-md-2">Venue Name</label>
                            <div class="col-md-4">
                                <asp:HiddenField ID="hid_venue" runat="server" />
                                <asp:TextBox ID="txt_name" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>

                            <label class="control-label col-md-1">City</label>
                            <div class="col-md-3">
                                <asp:DropDownList ID="ddl_city" runat="server" CssClass="form-control select2"></asp:DropDownList>
                            </div>
                        </div>

                        <div class="row" style="padding-top:10px">
                            <label class="control-label col-md-2">Complete Address</label>
                            <div class="col-md-5">
                                <asp:TextBox ID="txt_address" runat="server" CssClass="form-control" TextMode="MultiLine"></asp:TextBox>
                            </div>
                        </div>


                         <div class="row" style="padding-top:10px">
                            <label class="control-label col-md-2">Date From</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_dt_frm" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>

                            <label class="control-label col-md-2">Date To</label>
                            <div class="col-md-3">
                                <asp:TextBox ID="txt_dt_to" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>



                        <asp:GridView ID="GridView1" CssClass="display" CellPadding="0" Border="0"
                        AutoGenerateColumns="false" runat="server" onrowcommand="GridView1_RowCommand" >
                        <Columns>
                            <asp:BoundField DataField="VENUE_ID" HeaderText="ID" />
                            <asp:BoundField DataField="VENUE_NAME" HeaderText="Venue Name" />
                            <asp:BoundField DataField="COMPLETE_ADDRESS" HeaderText="Address" />
                            <asp:BoundField DataField="City_Name" HeaderText="City" />
                            <asp:BoundField DataField="CITY_ID" HeaderText="City" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden" />

                            <asp:BoundField DataField="DATE_FROM" HeaderText="Date From" />
                            <asp:BoundField DataField="DATE_TO" HeaderText="Date To" />
            

                            <asp:TemplateField HeaderText="Action">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnk_edit" CausesValidation="false" CommandName="gedit"
                                        runat="server"><i class="fa fa-pencil" style="font-size:20px !important"></i>
                                    </asp:LinkButton>
                                    <%--<asp:LinkButton ID="lnk_dlt" CausesValidation="false" CommandName="gdlt"
                                        OnClientClick="return confirm('Are you sure to delete?')" runat="server"><i
                                            class="fa fa-trash" style="font-size:20px !important"></i></asp:LinkButton>
                                        --%>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle CssClass="footerStyle" />
                        <HeaderStyle CssClass="headerStyle" />
                        <RowStyle CssClass="rowStyle" />
                    </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">
                        $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                    </script>

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