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

<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">
                        Supplier Address
                          <div class="pull-right">
                            <asp:button text="Save" CssClass="btn btn-info" ID="btn_save"   ValidationGroup="save"
                                runat="server" onclick="btn_save_Click"/>
                            <asp:button text="Back" CssClass="btn btn-info" ID="btn_cancel" runat="server" onclick="btn_cancel_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">
                             <asp:HiddenField ID="hid_sup_address" runat="server" />
                                  <label class="control-label col-md-2  col-md-offset-1">Address Line 1</label>
                            <div class="col-md-4">
                                <asp:TextBox ID="txt_add1" runat="server" CssClass="form-control"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="Reqadd" ControlToValidate="txt_add1" ErrorMessage="Address is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                            </div>
                        </div>


                        <div class="row">
                            <label class="control-label col-md-2 col-md-offset-1">Address Line 2</label>
                                <div class="col-md-4">
                                    <asp:DropDownList ID="ddl" Visible="false" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                    <asp:TextBox ID="txt_add2" runat="server" CssClass="form-control"></asp:TextBox>
                                </div>
                        </div>

                         <div class="row">
                            <label class="control-label col-md-2 col-md-offset-1">Address Line 3</label>
                                <div class="col-md-4">
                                    <asp:TextBox ID="txt_add3" runat="server" CssClass="form-control"></asp:TextBox>
                                </div>

                               
                        </div>

                        <hr />

                           <div class="row">
                            <label class="control-label col-md-2">Country</label>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddl_country" runat="server" CssClass="form-control select2" AutoPostBack="true" OnSelectedIndexChanged="ddl_country_SelectedIndexChanged"></asp:DropDownList>
                                </div>

                                   <label class="control-label col-md-2">State</label>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddl_state" runat="server" CssClass="form-control select2" AutoPostBack="true" OnSelectedIndexChanged="ddl_state_SelectedIndexChanged"></asp:DropDownList>
                                </div>

                               
                        </div>


                                  <div class="row" style="padding-top:05px">
                        
                                      <label class="control-label col-md-2">City</label>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddl_city" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                </div>

                               <label class="control-label col-md-2">Province</label>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddl_province" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                </div>
                        </div>


                            <ul class="nav nav-tabs">
                                <li class="active"><a data-toggle="tab" href="#contact">Contact Details</a></li>
                            </ul>

                          <div class="tab-content">
                                <div id="Personal" class="tab-pane fade in active">
                                    <br />
                                     <div class="row">
                                        <label class="control-label col-md-1">Phone 1</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_phn1" runat="server" CssClass="form-control"></asp:TextBox>
                                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txt_phn1" ErrorMessage="Phone Number is required." setfocusonerror="true" ValidationGroup="save"></asp:RequiredFieldValidator>
                                </div>

                                          <label class="control-label col-md-1">Phone 2</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_phn2" runat="server" CssClass="form-control"></asp:TextBox>
                                </div>

                                          <label class="control-label col-md-1">Phone 3</label>
                                <div class="col-md-3">
                                    <asp:TextBox ID="txt_phn3" runat="server" CssClass="form-control"></asp:TextBox>
                                </div>
                        </div>


                                    <div class="row" style="padding-top:05px">
                                        <label class="control-label col-md-1">Email</label>
                                        <div class="col-md-3">
                                            <asp:TextBox ID="txt_email" runat="server" CssClass="form-control"></asp:TextBox>
                                        </div>

                                        <label class="control-label col-md-1">Fax</label>
                                        <div class="col-md-3">
                                            <asp:TextBox ID="txt_fax" runat="server" CssClass="form-control"></asp:TextBox>
                                        </div>

                                        <label class="control-label col-md-1">Status</label>
                                <div class="col-md-2">
                                    <asp:DropDownList ID="ddl_status" runat="server" CssClass="form-control select2"></asp:DropDownList>
                                </div>
                                    </div>

                                    <br /><br />
                                    <div class="row ">
                                         <label class="control-label col-md-2">Address Purpose</label>
                                    </div>

                                    <div class="row col-md-offset-1">
                                        <div class="col-md-2">
                                            <asp:CheckBox ID="chk_purchase" Text="Purchasing" CssClass="checkbox" runat="server" />
                                        </div>
                                         <div class="col-md-2">
                                            <asp:CheckBox ID="chk_pay" runat="server" Text="Payment" CssClass="checkbox" />
                                        </div>
                                         <div class="col-md-2">
                                            <asp:CheckBox ID="chk_rfq" runat="server" Text="RFQ Only" CssClass="checkbox" />
                                        </div>
                                    </div>
                                </div>
                          </div>
                    </div>
                </section>
            </div>
        </div>
    </div>
    <script src="../../ThemeScrips/jquery.min.js"></script>
    <link href="../../ThemeScrips/select2.min.css" rel="stylesheet" />
    <script src="../../ThemeScrips/select2.min.js"></script>
    <script>
        $('.select2').select2();
    </script>
</asp:Content>
