-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrecoverfacultypassword.php
58 lines (56 loc) · 2.46 KB
/
recoverfacultypassword.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
<?php
$error=$_GET['ErrorID'];//posting it to a variable after checking is it numeric or not
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Recover Password</title>
<link rel="stylesheet" type="text/css" href="css/loginstyle.css" />
<link rel="shortcut icon" href="images/favicon.ico" /><!-- inserting the favicon for the site -->
<script src="js/login/modernizr.custom.63321.js"></script>
<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style><![endif]-->
</head>
<body>
<div class="container">
<header>
<h1><strong>MSIS</strong> Recover Password</h1> <!--Heading of the Page -->
<h2>Password Recovery for Teacher/Coordinator/Attendant</h2> <!-- User Types who can login through this form -->
</header>
<section class="main"> <!--main panel of the page -->
<form class="form-1" method="POST" action="recover_facultypassword_action.php">
<p class="field"> <!--username field -->
<input type="email" name="facultyUsername" id="facultyUsername" placeholder="[email protected]" required/>
<i class="icon-user icon-large"></i> <!-- user logo -->
</p><br/>
<p class="field"><!-- Select user type either Faculty or non-faculty or administrator -->
<label> Select Type:</label><!-- Users of the System-->
<select name="facultyType" id="facultyType">
<option value="teacher" selected="">Teacher</option><!--setting background value for the action page -->
<option value="coordinator">Coordinator</option>
<option value="attendant">Attendant</option>
</select>
</p>
<br/>
<p>
<font color="red">
<?php if(is_numeric($error) && $error==1)
echo "Error: Invalid Username!";
if($error==2 && is_numeric($error))
echo "Error: Empty fields are not allowed!";
if($error==5 && is_numeric($error))
echo "Success: Password has been emailed.";
?>
</p><br/>
<p class="submit">
<button type="submit" name="submit"><i class="icon-arrow-right icon-large"></i></button> <!-- Submit Form Button -->
</p>
<p align="center">
<a href="clogin.php"><input type="button" class="GoButton" value="GoBack"/></a>
</p>
</form>
</section>
</div>
</body>
</html>