<?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>
<head profile="http://www.w3.org/2005/10/profile">
<link rel="icon" 
      type="image/png" 
      href="https://bkms.com.ng/portal/check_Coll/blc_logo.png">

  <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>BRITISH LEARNER'S COLLEGE, OWERRI</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">
  #newlogo {	float: left;
	height: 124px;
	width: 100%;
	text-align: left;
}
  .style12 {color: #FFFF00}
  .style13 {color: #0000FF}
  .style14 {color: #FFFFFF}
  .style15 {color: #660099}
  .style16 {color: #660066}
  .style17 {color: #00FF00}
  .style18 {color: #0066FF}
  .style19 {color: #66FFCC}
  .style20 {color: #005AFF}
  .style21 {font-size: 100px; font-weight: bold; }
.style22 {font-family: vivaldi; color: #990033;}
  .style23 {
	color: #004466;
	font-weight: bold;
}
  .style24 {color: #FF0000}
.style26 {color: Yellow}
  </style>
</head>

<body style="background: Green">
 <center><BR><BR>
       <div align="center" class="style21"><img src="BLC_Banner.png
" alt="School Logo" width="75%" height="75%" align="middle" /></div>
 </center>
  <div class="card-header" style=" background:  Green; color: yellow; font-weight: bold; text-align: center"><span class="style26">STUDENT RESULT CENTRE (LOGIN)</span><br><span style="color:white">
        [
        From JSS 1 - SSS 3 Classes]</span> <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="Admission/Reg No. Eg. BKMS0000123" name="username" class="form-control" type="text" autofocus autocomplete="off" required>
                                            </li><br>
                                            <li><i class="fa fa-key"></i>
                                                <input placeholder="Enter Access Key as 3333" name="password" class="form-control" type="password" autocomplete="off" required>
                                            </li><br>
                                            <li>
                                              <Center><input type="submit" class="btn btn-block" style="background:  Green; border: 2px solid green; /* Green */ padding: 14px; width: 20%; color: #B3D9FF; font-weight: bold; font-size: 22px; text-align: center" name="signin" value="Sign-In"></Center>
                                            </li>
                                            </form>
                                        </ul>
    <div style="text-align: center"><strong><a href="https://dataswiftd.com.ng" style=" color:  #dd6262"><span style="text-align: center"><img style="border-radius:100px" src="../datalogo.jpg" width="125" height="35" alt="DataSwift" longdesc="https://dataswift.com.ng"></span><br>
										</a><a href="https://dataswift.com.ng/">Proudly Powered by<strong> DataSwift</strong></a><br>
                                        <span class="style24" style="color:white">For Support: +234-803-292-9756</a></span></strong></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 style="color:white">
  <class="style23" style="text-align: center">    <small id="copyright"></small>

    <script>
        // Get the current year
        const currentYear = new Date().getFullYear();

        // Define the start year
        const startYear = 2021;

        // Create the copyright text
        const copyrightText = `Copyright © ${startYear}-${currentYear} BRITISH LEARNER'S COLLEGE, OWERRI, IMO STATE: All Rights Reserved!`;

        // Set the text to the small element
        document.getElementById('copyright').textContent = copyrightText;
    </script>
</center>
</body>
</html>
