-
Notifications
You must be signed in to change notification settings - Fork 3
/
admin.php
60 lines (48 loc) · 1.32 KB
/
admin.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
60
<?php
session_start();
$_SESSION["login"]=false;
?>
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Course Recommendation System</title>
<link rel="stylesheet" href="style/reset.css">
<link rel='stylesheet prefetch' href='style/font.css'>
<link rel="stylesheet" href="style/style.css">
</head>
<script>
<?php if($_GET['result']=="fail"){?>
window.alert("Wrong Username/Password combination");
<?php }
?>
<?php if($_GET['result']=="sendmail"){?>
window.alert("Your Password has been sent to your Email");
<?php }
?>
</script>
<body>
<div class="pen-title">
<h1>Course Recommendation System</h1>
</div>
<!-- Form Module-->
<div class="module form-module">
<div class="toggle">
</div>
<div class="form">
<h2>Admin Account</h2>
<form action="checklogin" method="post">
<input type="text" placeholder="Roll No" name="rollno" required/>
<input type="password" placeholder="Password" name="password" required/>
<input type="hidden" name="loginmode" value="admin"/>
<button>Login</button>
</form>
</div>
<div class="cta"><a href="http://localhost/MiniProject/emailrem">Forgot your password?</a></div>
</div>
<div>
</div>
<script src='JS/jquery.js'></script>
<script src="js/index.js"></script>
</body>
</html>