Dushyan
Dushyan
php
include 'Includes/dbcon.php';
session_start();
?>
<!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="">
<link href="img/logo/attnlg.jpg" rel="icon">
<title>Login</title>
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet"
type="text/css">
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"
type="text/css">
<link href="css/ruang-admin.min.css" rel="stylesheet">
</head>
<?php
if(isset($_POST['login'])){
$userType = $_POST['userType'];
$username = $_POST['username'];
$password = $_POST['password'];
$password = md5($password);
if($userType == "Administrator"){
$_SESSION['userId'] = $rows['Id'];
$_SESSION['firstName'] = $rows['firstName'];
$_SESSION['lastName'] = $rows['lastName'];
$_SESSION['emailAddress'] = $rows['emailAddress'];
else{
$_SESSION['userId'] = $rows['Id'];
$_SESSION['firstName'] = $rows['firstName'];
$_SESSION['lastName'] = $rows['lastName'];
$_SESSION['emailAddress'] = $rows['emailAddress'];
$_SESSION['classId'] = $rows['classId'];
$_SESSION['classArmId'] = $rows['classArmId'];
else{
}
}
else{
}
}
?>
<!-- <hr>
<a href="index.html" class="btn btn-google btn-block">
<i class="fab fa-google fa-fw"></i> Login with Google
</a>
<a href="index.html" class="btn btn-facebook btn-block">
<i class="fab fa-facebook-f fa-fw"></i> Login with Facebook
</a> -->
<div class="text-center">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Login Content -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="js/ruang-admin.min.js"></script>
</body>
</html>