<%@ page title="" language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" inherits="Masters_TA_UI_Transaction_MyProfileTrans, App_Web_o5fa5rsn" %>

<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">
    <script src="../plugins/datepicker/jquery-1.11.1.min.js"></script>
    <script language="javascript" src="../js/jquery.autocomplete.js" type="text/javascript"></script>
    <script src="../plugins/datepicker/bootstrap-datepicker.js"></script>
    <script src="../js/Lookupddl.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#ctl00_BodyContentPH_txt_dobrecord').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
            $('#ctl00_BodyContentPH_txt_dob').datetimepicker({ format: document.getElementById('ctl00_BodyContentPH_Hidden1').value });
        });
    </script>
    <script type="text/javascript">
        var Errorretrievingdatafromlookup = "Error retrieving data from lookup";
        function assignValue(e, ctrl, val) {
            var keycode;
            if (window.event) keycode = window.event.keyCode;
            else if (e) keycode = e.which;
            else if (event) keycode = event.keyCode;
            else return true;
            ph = ctrl.value;
            if (ctrl.value.lastIndexOf("+") == 0 || ctrl.value.lastIndexOf("+") == -1) {
            }
            else {
                ctrl.value = ph;
                ctrl.focus();
                alert(Entervalid + val + AlertNumber);
                return false
            }
            if (!(keycode == 58 && e.value.indexOf(":") > -1)) {
                if ((keycode == 40) || (keycode == 41) || (keycode == 43) || (keycode == 45) || (keycode >= 48 && keycode <= 57) || (keycode == 8) || (keycode == 0)) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                return false;
            }
            return true;
        }
        function checkPhone(e) {
            var keycode;
            if (window.event) keycode = window.event.keyCode;
            else if (e) keycode = e.which;
            else if (event) keycode = event.keyCode;
            else return true;
            if (!(keycode == 58 && e.value.indexOf(":") > -1)) {
                if ((keycode == 40) || (keycode == 41) || (keycode == 43) || (keycode == 45) || (keycode >= 48 && keycode <= 57) || (keycode == 8) || (keycode == 0)) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else {
                return false;
            }
            return true;
        }
    </script>
    <div class="content-header">
        <h1 style="background-image: url('../dist/img/lve-san.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_HeaderMyProfileView" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <asp:HiddenField ID="Hidden1" runat="server" />
        <div class="form-horizontal">
            <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_EmployeeID" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_EmpID" runat="server" CssClass="form-control mandatory" Style="word-break: break-word"></asp:Label>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_EmployeeFirstName" runat="server"></asp:Label>
                    <%--<asp:Label ID="lbl_MiddleName" runat="server"></asp:Label>--%>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_EmpFirstName" runat="server" CssClass="form-control mandatory" Style="word-break: break-word"></asp:Label>
                    <%--<asp:Label ID="txt_MiddleName" runat="server" CssClass="form-control" Style="word-break:break-word"></asp:Label>--%>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_MiddleName" runat="server"></asp:Label>

                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_MiddleName" runat="server" CssClass="form-control" Style="word-break: break-word"></asp:Label>

                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_LastName" runat="server"></asp:Label><font color="#FF0000"></font>
                    <%--<asp:Label ID="lbl_FathersName" runat="server"></asp:Label>--%>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_LastName" runat="server" CssClass="form-control" Style="word-break: break-word"></asp:Label>
                    <%--<asp:Label ID="txt_FatherName" runat="server" CssClass="form-control" Style="word-break:break-word"></asp:Label>--%>
                </div>
            </div>
            <%--<div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_MothersName" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_MotherName" runat="server" CssClass="form-control" Style="word-break:break-word"></asp:Label>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_BloodGroup" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_BloodGroup" runat="server" CssClass="form-control" Style="word-break:break-word"></asp:Label>
                </div>
            </div>--%>
          <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_BloodGroup" runat="server"></asp:Label>
                    <%--<asp:Label ID="lbl_DateofBirth" runat="server"></asp:Label> <font color="#FF0000"></font>--%>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_BloodGroup" runat="server" CssClass="form-control" Style="word-break:break-word"></asp:Label>
                    <%--<asp:Label ID="txt_dob" CssClass="form-control" runat="server" Style="word-break:break-word"></asp:Label>--%>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_DateofBirthAsPerRec" class="control-label con-top" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_dobrecord" runat="server" CssClass="form-control" Style="word-break:break-word"></asp:Label>
                </div>
            </div>
            <%--<div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_EmailID" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_EmailID" CssClass="form-control" runat="server" Style="word-break:break-word"></asp:Label>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_PersonalMailID" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_PerEmailId" CssClass="form-control" runat="server" Style="word-break:break-word"></asp:Label>
                </div>
            </div>--%>
            <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_ContactAddress" runat="server"></asp:Label><font color="#FF0000">
                                        </font>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_ContactAddress" runat="server" CssClass="form-control" Style="word-break: break-word"></asp:Label>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_PermanentAddress" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_PermanentAddress" runat="server" CssClass="form-control" Style="word-break: break-word"></asp:Label>
                </div>
            </div>
            <%--      <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_Country" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:DropDownList ID="ddl_Country" CssClass="form-control select2" runat="server" Enabled="false">
                        <asp:ListItem Selected="True" Text="-Select-"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_State" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:DropDownList ID="ddl_State" runat="server" Enabled="false" CssClass="form-control select2">
                        <asp:ListItem Selected="True" Text="-Select-"></asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_City" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:DropDownList ID="ddl_City" CssClass="form-control select2" runat="server" Enabled="false">
                        <asp:ListItem Selected="True" Text="-Select-"></asp:ListItem>
                    </asp:DropDownList>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_District" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_District" CssClass="form-control" runat="server" ></asp:Label>
                </div>
            </div>--%>
            <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_PhoneNumber" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_PhoneNo" runat="server" CssClass="form-control" Style="word-break: break-word"></asp:Label>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:Label ID="lbl_MobileNumber" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_MobileNo" runat="server" CssClass="form-control"></asp:Label>
                </div>
            </div>
            <div class="form-group" style="display:block">
                <div class="col-md-2">
                    <asp:Label ID="lbl_Maritalstatus" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <div class="row">
                        <div class="col-md-6">
                            <asp:RadioButton ID="rbtn_Single" GroupName="MaritalStatus" runat="server" Checked="True"
                                Text="Single" CssClass="radio radio-primary" Enabled="false" />
                        </div>
                        <div class="col-md-6">
                            <asp:RadioButton ID="rbtn_Married" GroupName="MaritalStatus" runat="server" Text="Married"
                                CssClass="radio radio-primary" Enabled="false" />
                        </div>
                    </div>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-3">
                    
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_Remark" runat="server"></asp:Label><font color="#FF0000"></font>
                </div>
                <div class="col-md-3">

                    <asp:TextBox onpaste="return true" ID="txt_Remark" runat="server" CssClass="form-control"
                        MaxLength="100" onkeypress="myFunction(event)" onkeyup="return chkMaxLen(event,this,100,MaxLength);"
                        TextMode="MultiLine" Style="resize: none"></asp:TextBox>
                    <script type="text/javascript">
                        function myFunction(event) {
                            var str = document.getElementById('<%=txt_Remark.ClientID%>').value;
                             if (event.keyCode == 100) {
                                document.getElementById('<%=txt_Remark.ClientID%>').focus();
                             }
                        }
                    </script>
                </div>
                <div class="col-md-1">
                </div>
                <div class="col-md-2">
                    <asp:LinkButton ID="btnDowload_Proof" Text="Download Doc Proof" runat="server" Style="color: blue; text-decoration: underline;" OnClick="btnDowload_Proof_Click"></asp:LinkButton>
                    <%--<asp:Label ID="lbl_Religion" runat="server"></asp:Label>--%>
                </div>
                <div class="col-md-3">
                    <%--<asp:DropDownList ID="ddlReligion" runat="server" CssClass="form-control select2" Enabled="false" Style="word-break:break-word">
                        <asp:ListItem Selected="True" Text="-Select-" Value="0" ></asp:ListItem>
                    </asp:DropDownList>--%>
                </div>
            </div>

            <div class="form-group" style="display: none">
                <div class="col-md-2">
                    <asp:Label ID="lbl_SwipecardNo" runat="server"></asp:Label>
                </div>
                <div class="col-md-3">
                    <asp:Label ID="txt_SwipeCardNo" runat="server" CssClass="form-control"></asp:Label>
                </div>
            </div>
            <div class="row form-group">
            </div>
            <div class="row form-group">
                <div class="col-md-2">
                    <asp:Label ID="lbl_Status" runat="server" Text="Status"></asp:Label>
                    <asp:Label ID="lbl_Error" runat="server" Style="color: #ff0000"></asp:Label>
                </div>
                <div class="col-md-10 pad-left-0px">
                    <div class="col-md-2">
                        <asp:RadioButton ID="rbApproved" Text="Approved" runat="server" CssClass="radio radio-primary"
                            GroupName="ValStatus" AutoPostBack="true" OnCheckedChanged="rbApproved_OnCheckedChanged" />
                    </div>
                   <%-- <div class="col-md-2">
                        <asp:RadioButton ID="rbPending" Text="Pending" runat="server" CssClass="radio radio-primary"
                            GroupName="ValStatus" AutoPostBack="true" OnCheckedChanged="rbPending_OnCheckedChanged" />
                    </div>--%>
                    <div class="col-md-2">
                        <asp:RadioButton ID="rbRejected" Text="Rejected" runat="server" CssClass="radio radio-primary"
                            GroupName="ValStatus" AutoPostBack="true" OnCheckedChanged="rbRejected_OnCheckedChanged" />
                    </div>
                    <div class="col-md-1">
                    </div>
                    <div class="col-md-3">

                        <%--<a href="#" onclick="" style="color:blue; text-decoration: underline;">Download Doc Proof</a>--%>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-5">
                </div>
                <div class="col-md-6">
                    <div class="pull-right-button">
                        <asp:HiddenField ID="hdnMyProfileID" runat="server" Value="0" />
                        <asp:LinkButton ID="btn_Myprofile_Save" runat="server" CssClass="btn save-btn fa-floppy-o" OnClick="btn_Myprofile_Save_Click"></asp:LinkButton>
                        <asp:LinkButton ID="btn_Cancel" CssClass="btn save-btn fa-angle-left" runat="server"
                            CausesValidation="false" OnClick="btn_Cancel_Click"></asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

