<!DOCTYPE html>
<html lang="en">

<!-- Mirrored from swlabs.co/edugate/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 04 Jul 2020 12:32:19 GMT -->
<head><title>COE Hostel | Login</title>
    <link rel="shortcut icon" href="images/coe.png" type="image/x-icon" />
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- LIBRARY FONT-->
    <link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,400italic,700,900,300">
    <link type="text/css" rel="stylesheet" href="assets/font/font-icon/font-awesome-4.4.0/css/font-awesome.css">
    <link type="text/css" rel="stylesheet" href="assets/font/font-icon/font-svg/css/Glyphter.css">
    <!-- LIBRARY CSS-->
    <link type="text/css" rel="stylesheet" href="assets/libs/animate/animate.css">
    <link type="text/css" rel="stylesheet" href="assets/libs/bootstrap-3.3.5/css/bootstrap.css">
    <link type="text/css" rel="stylesheet" href="assets/libs/owl-carousel-2.0/assets/owl.carousel.css">
    <link type="text/css" rel="stylesheet" href="assets/libs/selectbox/css/jquery.selectbox.css">
    <link type="text/css" rel="stylesheet" href="assets/libs/fancybox/css/jquery.fancybox.css">
    <link type="text/css" rel="stylesheet" href="assets/libs/fancybox/css/jquery.fancybox-buttons.css">
    <link type="text/css" rel="stylesheet" href="assets/libs/media-element/build/mediaelementplayer.min.css">
    <!-- STYLE CSS    --><!--link(type="text/css", rel='stylesheet', href='assets/css/color-1.css', id="color-skins")-->
    <link type="text/css" rel="stylesheet" href="#" id="color-skins">
    <script src="assets/libs/jquery/jquery-2.1.4.min.js"></script>
    <script src="assets/libs/js-cookie/js.cookie.js"></script>
    <script>if ((Cookies.get('color-skin') != undefined) && (Cookies.get('color-skin') != 'color-1')) {
        $('#color-skins').attr('href', 'assets/css/' + Cookies.get('color-skin') + '.css');
    } else if ((Cookies.get('color-skin') == undefined) || (Cookies.get('color-skin') == 'color-1')) {
        $('#color-skins').attr('href', 'assets/css/color-1.css');
    }



    </script>

    <link type="text/css" rel="stylesheet" href="assets/css/sweet_alert2.css">
  	<link type="text/css" rel="stylesheet" href="assets/css/sweetalert2.min.css">

  	<script src="assets/js/sweetalert.js"></script>
  	<script src="assets/js/sweetalert2.min.js"></script>
</head>
<body><!-- HEADER-->


<!-- WRAPPER-->
<div id="wrapper-content"><!-- PAGE WRAPPER-->
    <div id="page-wrapper" ><!-- MAIN CONTENT-->
        <div class="main-content"><!-- CONTENT-->
            <div class="content">
                <div class="page-login rlp" style="padding-top:-200px;">
                    <div class="container" style="padding-top:-200px;">
                        <div class="login-wrapper rlp-wrapper" style="padding-top:-200px;">
                            <div class="login-table rlp-table"><a href="index"><img src="images/coe.png" alt="logo" style="width:150px;"> </a>
								<form id="login_form" method="POST">
                                <div class="login-title rlp-title">login to your Accommodation Portal!</div>
                                <div id="login_out">
								</div>
                                <div class="login-form bg-w-form rlp-form">
                                    <div class="row">
                                        <div class="col-md-12"><label for="regemail" class="control-label form-label">Student Number <span class="highlight">*</span></label><input name="appNumber" type="text" placeholder="Matric Number" class="form-control form-input" required /><!--p.help-block Warning !--></div>
                                        <div class="col-md-12"><label for="regpassword" class="control-label form-label">Password <span class="highlight">*</span></label><input name="password" type="password" placeholder="Password" class="form-control form-input" required /><!-- p.help-block Warning !--></div>
                                    </div>
                                </div>
                                <div class="login-submit">
                                    <button type="submit"  class="btn btn-login btn-green"><span>sign in</span></button>

                                    <button type="button" onclick="window.location.href='apply?token=<?php echo md5(1);?>'" class="btn btn-login btn-green"><span>Apply Now!</span></button>
                                </div>
								</form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
     $(document).ready(function(e){



		$("#login_form").submit(function(event){
			event.preventDefault(); //prevent default action
			var post_url = "includes/php/ajax_login.php"; //get form action url
			var request_method = $(this).attr("method"); //get form GET/POST method

			$("#login_out").html('<div style="margin-top:10px"><center>Login, please wait...<br/><img src="images/ajax-loader1.gif" width="10%"/></center></div>');

			var form_data = new FormData(this); //Creates new FormData object


				$.ajax({
					url : post_url,
					type: request_method,
					data : form_data,
					contentType: false,
					cache: false,
					processData:false
				}).done(function(response){ //

					if(response==1){
						$("body").load("dashboard").hide().fadeIn(1500).delay(6000);
//or

					window.location.href = "dashboard.php?sms=profile";

					}else{

					$("#login_out").html(response);


					}
				});

		});
});
    </script>
    <!-- BUTTON BACK TO TOP-->
    <div id="back-top"><a href="#top"><i class="fa fa-angle-double-up"></i></a></div>
</div>
<!-- FOOTER-->
<footer></footer>
<!-- THEME SETTING-->

<!-- LOADING--><!-- JAVASCRIPT LIBS-->
<script>if ((Cookies.get('color-skin') != undefined) && (Cookies.get('color-skin') != 'color-1')) {
    $('.logo .header-logo img').attr('src', 'assets/images/coe-' + Cookies.get('color-skin') + '.png');
} else if ((Cookies.get('color-skin') == undefined) || (Cookies.get('color-skin') == 'color-1')) {
    $('.logo .header-logo img').attr('src', 'assets/images/coe.png');
}</script>
<script src="assets/libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<script src="assets/libs/smooth-scroll/jquery-smoothscroll.js"></script>
<script src="assets/libs/owl-carousel-2.0/owl.carousel.min.js"></script>
<script src="assets/libs/appear/jquery.appear.js"></script>
<script src="assets/libs/count-to/jquery.countTo.js"></script>
<script src="assets/libs/wow-js/wow.min.js"></script>
<script src="assets/libs/selectbox/js/jquery.selectbox-0.2.min.js"></script>
<script src="assets/libs/fancybox/js/jquery.fancybox.js"></script>
<script src="assets/libs/fancybox/js/jquery.fancybox-buttons.js"></script>
<!-- MAIN JS-->
<script src="assets/js/main.js"></script>
<!-- LOADING SCRIPTS FOR PAGE--></body>

<!-- Mirrored from swlabs.co/edugate/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Sat, 04 Jul 2020 12:32:19 GMT -->
</html>
