@{
    ViewBag.Title = "Terms of Use";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<section class="section-py">
    <div class="container formContainer">
        <div class="row justify-content-end">
            <div class="col-md-12">
                <div class="form_rounded_box createBox bg-white activeBox">
                    <div class="mb-5">
                        <div class="text-center mb-5 display-2 fa-bold">Terms and Conditions</div>
                        <h3 class="text-center">Your certification below signifies that your application to the UPES is the product of your own work and that the information provided is complete and accurate. Dishonesty and any misrepresentation or omission of facts on this application will disqualify you from admission to University of Petroleum & Energy Studies and, if discovered after admission, will result in your admission to the program being revoked.</h3>
                        <ul>
                            <li>I hereby certify that I have provided accurate information in this application. I authorize University of Petroleum & Energy Studies (UPES) to verify my credentials. I understand that any misrepresentation or omission of facts in my application may justify denial or cancellation of admission from applied program.</li>
                            <li>I have read and understood the admission procedure & eligibility criteria of the applied program and agree to abide by those.</li>
                            <li>Mere filling up the Application form does not confirm the admission to the course. The admission process is complete only after compliance of all the requirements and verification of certificates.</li>
                            <li>Admissions will be purely on the basis of merit and candidates are strongly advised against canvassing and/or extraneous pressure on the selection process. Any candidate found guilty in above activities, the candidature is liable for immediate disqualification.</li>
                            <li>The University of Petroleum & Energy Studies reserves the right to cancel any advertised course due to insufficient admissions, enrolments or for any other reason beyond its control. In such an eventuality, full fee shall be refunded.</li>
                            <li>The University reserves the right to make changes in curricula, degree requirements, course offerings and all academic regulations at any time without assigning any reason or prior notice. The said change may apply not only to prospective students but also to those who already are enrolled in the University.</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

    </div>
</section>
<div class="overlay text-center" id="caOverlay">
    <div id="loading-img">
        <span id="loading-img-span"></span>
        <img id="loading-img-src" src="~/assets/images/loader.gif" alt="">
    </div>
</div>
<script src="assets/js/jquery-3.6.3.min.js"></script>
<script>
    $(function () {

        $('.coaching-center-div').hide();
        $(".other-coaching-div").hide();

        $("#source").change(function () {
            //$("#coachingcentre").hide();
            $('.coaching-center-div').hide();
            $("#othercoachingcentre").val('');
            //$("#othercoachingcentre").hide();
            $(".other-coaching-div").hide();

            var selSource = $("#source").val();
            if (selSource == "3") {
                //$("#coachingcentre").show();
                $('.coaching-center-div').show();

            }
            else {

                // $("#coachingcentre").hide();
                $('.coaching-center-div').hide();
                $("#othercoachingcentre").val('');
                //$("#othercoachingcentre").hide();
                $(".other-coaching-div").hide();
                $('#coachingcentre [value=0]').attr('selected', 'true');
            }
        });
        // bind other coaching center
        $("#coachingcentre").change(function () {
            $("#othercoachingcentre").val('');
            //$("#othercoachingcentre").hide();
            $(".other-coaching-div").hide();
            var selCoachingIns = $("#coachingcentre").val();
            if (selCoachingIns == "others") {
                //$("#othercoachingcentre").show();
                $(".other-coaching-div").show();

            }
            else {
                $("#othercoachingcentre").val('');
                //$("#othercoachingcentre").hide();
                $(".other-coaching-div").hide();
            }
        });

        var serviceURL = '/Home/bindenquirysource';
        $.ajax({
            url: serviceURL,
            type: "GET",
            dataType: "HTML",
            async: false,
            success: function (data) {
                //  alert(data);

                if (data != "") {


                    $("#source").html(data);

                }
                else {
                    console.log("Error:bindenquirysource")
                }
                console.log("Error:bindenquirysource2")

            }
        });


        //bind coaching institute
        var serviceCoachingURL = '/Home/bindcoaching';
        $.ajax({
            url: serviceCoachingURL,
            type: "GET",
            dataType: "HTML",
            async: false,
            success: function (data) {
                //  alert(data);

                if (data != "") {


                    $("#coachingcentre").html(data);

                }
                else {
                    console.log("err:coachingcentre");
                }
                //  alert(data);
                console.log("err:coachingcentre2");
            }
        });


        $('#lastname,#middlename,#txtfirstname').on('keydown', function (e) {
            var k = e.keyCode || e.which;
            var ok = k >= 65 && k <= 90 || // A-Z
                k >= 96 && k <= 105 || // a-z
                k >= 35 && k <= 40 || // arrows
                k == 9 || //tab
                k == 46 || //del
                k == 8 || // backspaces
                k == 32 || // spaces
                (!e.shiftKey && k >= 48 && k <= 57); // only 0-9 (ignore SHIFT options)

            if (!ok || (e.ctrlKey && e.altKey)) {
                e.preventDefault();
            }
        });
    });
</script>



