<?php

	require_once('source/session.php');
	require_once('source/error.php');
	require_once('source/dbconfig.php');
	require_once('source/function.php');
	
	if($SESS_FULLNAME_USER){
		$msg = "Welcome, $SESS_FULLNAME_USER!";
	}
	else if($_SESSION['msg'] == "activated"){
		$msg = "Email Verification is Successful!<br>Sign in to Your Dashboard";
	}
	else if($_GET['msg'] == "inactive"){
		$msg = "Are you a new member? Check youremail to activate your account Now! For a blocked participant, write to support.";
	}
	
	if($_SESSION['msg'] == "duplicate")
	{
		$msg = "Email already registered, please try another.";
	}            
	else if($_SESSION['msg'] == "signup")
	{
		$msg = "Account Registered successfully.";
	}            
	else if($_SESSION['msg'] == "captcha")
	{
		$msg = "Incorrect Captcha.";
	}            
	else if($_SESSION['msg'] == "samp")
	{
		$msg = "Samp request found, please try again.";
	}            
	else if($_SESSION['msg'] == "failed")
	{
		$msg = "Invalid Email Password Combination.";
	}            
	else if($_SESSION['msg'] == "forget")
	{
		$msg = "<h5 class='alert alert-success text-center'>New password has been sent to your verified email.";
	}            
?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
  <title>STUDENT LOGIN: Gilford Memorial Schools</title>
  <!-- Bootstrap core CSS-->
  <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <!-- Custom fonts for this template-->
  <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  <!-- Custom styles for this template-->
  <link href="css/sb-admin.css" rel="stylesheet">
  <style type="text/css">
  .card.card-login.mx-auto.mt-5 .card-body ul form {
	text-align: center;
}
  </style>
  <link href="InactivePage.css" rel="stylesheet" type="text/css">
  <style type="text/css">
  body,td,th {
	color: #FF0000;
}
  </style>
</head>

<body style="background: white">
 <center>
   <span class="col-lg-12"><img src='image/sch_logo.png' alt="Gilford School Banner" width='778' height="126" style=' margin-left: auto; margin-right: auto; display: block'/></span>
 </center>
  <div class="card card-login mx-auto mt-5">
    <div class="card-header" style=" background:  orange; color: white; font-weight: bold; text-align: center">STUDENT LOGIN<br>
        (
        Sign In As a Student)<br> 
      <small><?php echo  $msg; ?></small></div>
      <div class="card-body">
      
                                        <ul style="list-style-type: none">
                                            <form method="post" action="exe_signin.php" enctype="multipart/form-data">
                                            <li><i class="fa fa-envelope"></i>
                                                <input placeholder="Enter Username" name="username" class="form-control" type="text" autofocus autocomplete="off" required>
                                            </li>
                                            <span class="Inactivecolumn">INACTIVE! </span><br>
                                            Pay your fees  and Login again
                                            <br>
                                            <li><i class="fa fa-key"></i>
                                                <input placeholder="Enter Password" name="password" class="form-control" type="password" autocomplete="off" required>
                                            </li><br>
                                            <li>
                                              <input type="submit" class="btn btn-block" style="background:  orange; color: #B3D9FF; font-weight: bold; text-align: center" name="signin" value="Sign-In">
                                            </li>
                                            </form>
                                        </ul>
                                        <div class="fa-plug" style="text-align: center"><br>
										For Support: <a href="forget.php" style=" color:  #dd6262">+234-803-292-9756<br>
										</a>Powered By DataSwift Limited, Nigeria</div>
      </div>
    </div>
</div>
    </div>
  <!-- Bootstrap core JavaScript-->
  <script src="vendor/jquery/jquery.min.js"></script>
  <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  <!-- Core plugin JavaScript-->
  <script src="vendor/jquery-easing/jquery.easing.min.js"></script>

<center>
  <p style="text-align: center">&nbsp;</p>
  <p style="text-align: center"><img src="../datalogo.jpg" width="121" height="57" alt="DataSwift" longdesc="https://dataswiftlimited.com"><a href="register.php" style=" color:  #dd6262"></a></p>
  <p style="text-align: center"><small><strong>Copyright © 2017-2018 Gilford Memorial Schools: All Rights Reserved!</strong></small></p>
</center><br></body>

</html>
