<%@ Page Language="C#" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" CodeBehind="OpenJobPortal.aspx.cs" Inherits="HRMS.Portal.OpenJobPortal" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/ThemeScrips/a_data/bootstrap.css" rel="stylesheet" />
    <link href="/ThemeScrips/a_data/bootstrap-reset.css" rel="stylesheet" />
    <link href="/ThemeScrips/font-awesome-4.3.0/css/font-awesome.min.css" rel="stylesheet"
        type="text/css" />
    <link href="/ThemeScrips/a_data/jquery.css" rel="stylesheet" type="text/css" media="screen" />
    <link rel="stylesheet" href="/ThemeScrips/a_data/owl.css" type="text/css" />
    <link href="/ThemeScrips/a_data/datetimepicker.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/ThemeScrips/a_data/datetimepicker.css" />
    <!--right slidebar-->
    <link href="/ThemeScrips/a_data/slidebars.css" rel="stylesheet" />
    <!-- Custom styles for this template -->
    <link href="/ThemeScrips/a_data/style.css" rel="stylesheet" />
    <link href="/ThemeScrips/a_data/style-responsive.css" rel="stylesheet" />
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>
      <script src="js/respond.min.js"></script>
    <![endif]-->
    <!-- GridView Datatable CSS -->
    <link rel="stylesheet" type="text/css" href="/ThemeScrips/Datatables/media/css/demo_page.css" />
    <link href="/ThemeScrips/Datatables/media/css/demo_table.css" rel="stylesheet" type="text/css" />
    <%--<link href="/ThemeScrips/Datatables/media/css/demo_table_jui.css" rel="stylesheet" type="text/css" />--%>
    <style type="text/css">
        .jqstooltip {
            position: absolute;
            left: 0px;
            top: 0px;
            display: block;
            visibility: hidden;
            background: rgb(0, 0, 0) transparent;
            background-color: rgba(0,0,0,0.6);
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
            -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
            color: white;
            font: 10px arial, san serif;
            text-align: left;
            white-space: nowrap;
            border: 1px solid white;
            z-index: 10000;
        }





        .jqsfield {
            color: white;
            padding: 5px 5px 8px 5px;
            font: 10px arial, san serif;
            text-align: left;
        }
    </style>



    <script src="/ThemeScrips/a_data/config.js" type="text/javascript"></script>
    <script type="text/javascript" src="/ThemeScrips/a_data/en.js"></script>
    <script type="text/javascript" src="/ThemeScrips/a_data/styles.js"></script>

    <script src="/ThemeScrips/a_data/config.js" type="text/javascript"></script>
    <script type="text/javascript" src="/ThemeScrips/a_data/en.js"></script>
    <script type="text/javascript" src="/ThemeScrips/a_data/styles.js"></script>



    <script src="/ThemeScrips/a_data/jquery_004.js"></script>
    <script src="/ThemeScrips/a_data/bootstrap.js"></script>
    <script type="text/javascript" src="/ThemeScrips/a_data/jquery.searchabledropdown-1.0.8.min.js"></script>
    <script class="include" type="text/javascript" src="/ThemeScrips/a_data/jquery_007.js"></script>
    <script src="/ThemeScrips/a_data/jquery_003.js"></script>
    <script src="/ThemeScrips/a_data/jquery_002.js" type="text/javascript"></script>
    <script src="/ThemeScrips/a_data/jquery_006.js" type="text/javascript"></script>
    <script src="/ThemeScrips/a_data/jquery_005.js"></script>
    <script src="/ThemeScrips/a_data/owl.js"></script>
    <script src="/ThemeScrips/a_data/jquery.js"></script>
    <script src="/ThemeScrips/a_data/respond.js"></script>
    <!--right slidebar-->
    <script src="/ThemeScrips/a_data/slidebars.js"></script>
    <!--common script for all pages-->
    <script src="/ThemeScrips/a_data/common-scripts.js"></script>

</head>
<body>
    <form id="form1" 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"></span>
                            <div class="row">
                                <div class="col-md-6">
                                    <img width="203" height="40" class="img-responsive" src="../Images/logo-dark.png" />
                                </div>

                                <div class="col-md-6" style="padding-top: 25px">
                                    <asp:LinkButton ID="lnk" runat="server" CssClass="btn btn-primary pull-right" Text="Sign In"></asp:LinkButton>
                                </div>
                            </div>
                        </header>
                    </section>
                </div>

            </div>


            <div class="row">
                <div class="col-md-6 col-md-offset-1">
                    <div class="panel panel-default" style="border-radius: 10px; border: groove;">
                        <br />
                        <div class="row">
                            <div class="col-md-3 col-md-offset-1">
                                <label class="control-label">Personal Information</label>
                            </div>
                        </div>
                        <br />
                        <div class="row">
                            <div class="col-md-2  col-md-offset-1">
                                <label class="control-label">First Name</label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9 col-md-offset-1">
                                <asp:HiddenField ID="hid_acc" runat="server" />
                                <asp:TextBox ID="txt_fname" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>



                        <div class="row" style="padding-top: 15px">
                            <div class="col-md-2  col-md-offset-1">
                                <label class="control-label">Last Name</label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9 col-md-offset-1">
                                <asp:TextBox ID="txt_lname" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>




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




                        <div class="row" style="padding-top: 15px">
                            <div class="col-md-2  col-md-offset-1">
                                <label class="control-label">Mobile No.</label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9 col-md-offset-1">
                                <asp:TextBox ID="txt_mob" runat="server" CssClass="form-control"></asp:TextBox>
                            </div>
                        </div>




                        <div class="row" style="padding-top: 15px">
                            <div class="col-md-2  col-md-offset-1">
                                <label class="control-label">Job Type</label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9 col-md-offset-1">
                                <asp:DropDownList ID="ddl_job" runat="server" CssClass="form-control select2"></asp:DropDownList>
                            </div>
                        </div>




                        <div class="row" style="padding-top: 15px">
                            <div class="col-md-2  col-md-offset-1">
                                <label class="control-label">Location</label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-9 col-md-offset-1">
                                <asp:DropDownList ID="ddl_loc" runat="server" CssClass="form-control select2"></asp:DropDownList>
                            </div>
                        </div>

                        <div class="row" style="padding-top: 15px">
                            <div class="col-md-3 col-md-offset-1">
                                <asp:Button ID="btn_sv" runat="server" CssClass="btn btn-info" Text="Save" OnClick="btn_sv_Click" />
                            </div>

                        </div>


                        <br />
                        <br />

                        <div class="row">
                            <div class="col-md-8 col-md-offset-1">
                                <h5>Work Experience</h5>
                                <hr style="margin-bottom: 10px !important; margin-top: 0px !important;" />
                            </div>

                            <div class="col-md-2" style="padding-top:24px">
                                <asp:LinkButton ID="lnk_add" runat="server" CommandName="gadd_we" OnClick="lnk_add_Click"><i class="fa fa-plus" style="font-size:20px !important;"></i></asp:LinkButton>

                            </div>
                        </div>

                     



                        <asp:Repeater ID="rpt_wrk_exp" runat="server">
                            <ItemTemplate>
                                <div class="row">
                                    <div class="col-md-2 col-md-offset-1">
                                        <label class="control-label col-md-offset-1">Job Title</label>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-9 col-md-offset-1">
                                        <asp:HiddenField ID="hid_cnd_exp" runat="server" Value='<%#Bind("CANDIDATE_EXP_ID")%>' />
                                        <asp:TextBox ID="txt_jb_title" runat="server" CssClass="form-control" Text='<%#Bind("JOB_TITLE") %>'></asp:TextBox>
                                    </div>
                                </div>


                                <div class="row" style="padding-top: 15px">
                                    <div class="col-md-2 col-md-offset-1">
                                        <label class="control-label col-md-offset-1">Company</label>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-9 col-md-offset-1">
                                        <asp:TextBox ID="txt_cmpny" runat="server" CssClass="form-control" Text='<%#Bind("COMPANY_NAME") %>'></asp:TextBox>
                                    </div>
                                </div>


                                <div class="row" style="padding-top: 15px">
                                    <div class="col-md-2 col-md-offset-1">
                                        <label class="control-label col-md-offset-1">City</label>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-9 col-md-offset-1">
                                        <asp:TextBox ID="txt_city" runat="server" CssClass="form-control" Text='<%#Bind("CITY_NAME") %>'></asp:TextBox>
                                    </div>
                                </div>


                                <div class="row" style="padding-top: 15px">
                                    <div class="col-md-2 col-md-offset-1">
                                        <label class="control-label col-md-offset-1">From Date</label>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-9 col-md-offset-1">
                                        <asp:TextBox ID="txt_fdate" runat="server" CssClass="form-control" Text='<%#Bind("FROM_DATE") %>'></asp:TextBox>
                                    </div>
                                </div>



                                <div class="row" style="padding-top: 15px">
                                    <div class="col-md-2 col-md-offset-1">
                                        <label class="control-label col-md-offset-1">To Date</label>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-9 col-md-offset-1">
                                        <asp:TextBox ID="txt_todt" runat="server" CssClass="form-control" Text='<%#Bind("TO_DATE") %>'></asp:TextBox>
                                    </div>
                                </div>



                                <div class="row" style="padding-top: 15px">
                                    <div class="col-md-2 col-md-offset-1">
                                        <label class="control-label col-md-offset-1">Description</label>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-md-9 col-md-offset-1">
                                        <asp:TextBox ID="txt_desc" runat="server" CssClass="form-control" Text='<%#Bind("DESCRIPTION") %>'></asp:TextBox>
                                    </div>
                                </div>
                            </ItemTemplate>


                            

                        </asp:Repeater>


                        
                        <div class="row" style="padding-top:10px">
                            <div class="col-md-8 col-md-offset-1">
                                <h5>Education</h5>
                                <hr style="margin-bottom: 10px !important; margin-top: 0px !important;" />
                            </div>

                            <div class="col-md-2" style="padding-top:24px">
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="gadd_exp"><i class="fa fa-plus" style="font-size:20px !important;"></i></asp:LinkButton>
                            </div>
                        </div>



                             <div class="row" style="padding-top:10px">
                            <div class="col-md-8 col-md-offset-1">
                                <h5>Skills</h5>
                                <hr style="margin-bottom: 10px !important; margin-top: 0px !important;" />
                            </div>

                            <div class="col-md-2" style="padding-top:24px">
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="gadd_exp"><i class="fa fa-plus" style="font-size:20px !important;"></i></asp:LinkButton>
                            </div>
                        </div>



                         <div class="row" style="padding-top:10px">
                            <div class="col-md-8 col-md-offset-1">
                                <h5>Certifications / Licenses</h5>
                                <hr style="margin-bottom: 10px !important; margin-top: 0px !important;" />
                            </div>

                            <div class="col-md-2" style="padding-top:24px">
                                <asp:LinkButton ID="LinkButton3" runat="server" CommandName="gadd_exp"><i class="fa fa-plus" style="font-size:20px !important;"></i></asp:LinkButton>
                            </div>
                        </div>

                        <br />
                    </div>



                </div>
            </div>


            <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">
                <div class="col-md-offset-1">
                    <div style="width: 90%; overflow: scroll">
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
                            CssClass="table table-striped table-bordered table-hover" CellPadding="0" Width="90%" OnRowCommand="GridView2_RowCommand">
                            <Columns>


                                <asp:TemplateField HeaderText="Job Title" ControlStyle-Width="280px" ItemStyle-Width="280px">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hid_cnd_exp" runat="server" Value='<%#Bind("CANDIDATE_EXP_ID")%>' />
                                        <asp:TextBox ID="txt_job_title" runat="server" CssClass="form-control" Text='<%#Bind("JOB_TITLE") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_job_title" ControlToValidate="txt_job_title" ErrorMessage="Job Title is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                           
                                <asp:TemplateField HeaderText="Company" ControlStyle-Width="280px" ItemStyle-Width="280px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_cmp_nm" runat="server" CssClass="form-control" Text='<%#Bind("COMPANY_NAME") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_cmp_nm" ControlToValidate="txt_cmp_nm" ErrorMessage="Company is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="City" ControlStyle-Width="150px" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_city" runat="server" CssClass="form-control" Text='<%#Bind("CITY_NAME") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_city" ControlToValidate="txt_city" ErrorMessage="City is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="From Date" ControlStyle-Width="120px" ItemStyle-Width="120px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_frm_dt" runat="server" CssClass="form-control datetime" Text='<%# Bind("FROM_DATE") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_frm_dt" ControlToValidate="txt_frm_dt" ErrorMessage="From Date is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>


                                <asp:TemplateField HeaderText="To Date" ControlStyle-Width="120px" ItemStyle-Width="120px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_to_dt" runat="server" CssClass="form-control datetime" Text='<%# Bind("TO_DATE") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>



                                <asp:TemplateField HeaderText="Description" ControlStyle-Width="300px" ItemStyle-Width="300px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_desc" runat="server" CssClass="form-control" Text='<%# Bind("DESCRIPTION") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="linkedit" runat="server" Visible="false" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important;"></i></asp:LinkButton>
                                        <asp:LinkButton ID="lnk_add" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" CommandName="gadd"><i class="fa fa-plus" style="font-size:20px !important;"></i></asp:LinkButton>
                                        <asp:LinkButton ID="linkdlt" Visible="false" CausesValidation="false" CommandName="gDelete" runat="server" 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>
                            <%--<FooterStyle CssClass="footerStyle" />
                                    <HeaderStyle CssClass="headerStyle" />
                                    <RowStyle CssClass="rowStyle" />--%>
                        </asp:GridView>
                    </div>
                </div>
            </div>



            <hr />
            <div class="row">
                <div class="col-md-3 col-md-offset-1">
                    <h4>Education</h4>
                </div>
            </div>


            <div class="row">
                <div class="col-md-offset-1">
                    <div style="width: 90%; overflow: scroll">
                        <asp:GridView ID="grd_edu" runat="server" AutoGenerateColumns="False"
                            CssClass="table table-striped table-bordered table-hover" CellPadding="0" Width="90%" OnRowCommand="grd_edu_RowCommand">
                            <Columns>
                                <asp:TemplateField HeaderText="Level Of Education" ControlStyle-Width="280px" ItemStyle-Width="280px">
                                    <ItemTemplate>
                                        <asp:HiddenField ID="hid_edu" runat="server" Value='<%#Bind("CANDIDATE_EDUCATION_ID") %>' />
                                        <asp:TextBox ID="txt_lvl_of_edu" runat="server" CssClass="form-control" Text='<%#Bind("LEVEL_OF_EDUCATION") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_lvl_of_edu" ControlToValidate="txt_lvl_of_edu" ErrorMessage="Company is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Field Of Study" ControlStyle-Width="150px" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_fld_of_stdy" runat="server" CssClass="form-control" Text='<%#Bind("FIELD_OF_STUDY") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_fld_of_stdy" ControlToValidate="txt_fld_of_stdy" ErrorMessage="City is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="School" ControlStyle-Width="150px" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_schol" runat="server" CssClass="form-control" Text='<%#Bind("SCHOOL") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_schol" ControlToValidate="txt_schol" ErrorMessage="City is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Location" ControlStyle-Width="150px" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_schol_loc" runat="server" CssClass="form-control" Text='<%#Bind("SCHOOL_LOCATION") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_schol_loc" ControlToValidate="txt_schol_loc" ErrorMessage="City is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="From Date" ControlStyle-Width="120px" ItemStyle-Width="120px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_frm_dt" runat="server" CssClass="form-control datetime" Text='<%# Bind("FROM_DATE") %>'></asp:TextBox>
                                        <asp:RequiredFieldValidator SetFocusOnError="true" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" ID="req_frm_dt" ControlToValidate="txt_frm_dt" ErrorMessage="From Date is Required!" />
                                    </ItemTemplate>
                                </asp:TemplateField>


                                <asp:TemplateField HeaderText="To Date" ControlStyle-Width="120px" ItemStyle-Width="120px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_to_dt" runat="server" CssClass="form-control datetime" Text='<%# Bind("TO_DATE") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>


                                <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="linkedit" runat="server" Visible="false" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important;"></i></asp:LinkButton>
                                        <asp:LinkButton ID="lnk_add" ValidationGroup='<%#"add_"+Container.DataItemIndex %>' runat="server" CommandName="gadd"><i class="fa fa-plus" style="font-size:20px !important;"></i></asp:LinkButton>
                                        <asp:LinkButton ID="linkdlt" Visible="false" CausesValidation="false" CommandName="gDelete" runat="server" 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>
                            <%--<FooterStyle CssClass="footerStyle" />
                                    <HeaderStyle CssClass="headerStyle" />
                                    <RowStyle CssClass="rowStyle" />--%>
                        </asp:GridView>
                    </div>
                </div>
            </div>










        </div>
    </form>
</body>
</html>
