/
login-index.php
executable file
·59 lines (55 loc) · 2.1 KB
/
login-index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/login-index.css">
<link rel="shortcut icon" href="images/sis-favicon.ico" type="image/x-icon">
<title>Login - Student Information System</title>
</head>
<body class="bg">
<div class="topnav pullUp">
<a href="#">About</a>
<a href="#">Help</a>
<a href="developed.php">Developed By</a>
</div>
<div class="logincard-bck">
<!--Only For Login card Background-->
</div>
<div class="logincard">
<form action="validate.php" method="post" autocomplete="off">
<div class="container-login-title">Login
</div>
<div class="container-input-fields">
<input type="text" placeholder="User ID" onfocus="this.placeholder = 'User ID'" onblur="this.placeholder = 'User ID'" name="uname" required="required">
<input type="password" placeholder="Password" onfocus="this.placeholder = 'Password'" onblur="this.placeholder = 'Password'" name="upass" required="required">
<button type="submit">Login</button>
<a class="login-error">
<?php
if (isset($_SESSION['login-error']))
{
echo $_SESSION['login-error'];
unset($_SESSION['login-error']);
}
if (isset($_SESSION['logedout'])) {
echo $_SESSION['logedout'];
unset($_SESSION['logedout']);
# code...
}
?>
</a>
<a href="forgotpassword.php"><img src="images/ic-fp.png" id="forgotpassword"></a>
</div>
<div class="forgotpassword" >
</div>
</form>
</div>
<div class="footer">
<p> Copyright <?=date('Y');?>. All Rights Reserved. Developed by SSA</p>
</div>
</body>
</html>
<?php
session_unset();
?>