-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadminpwchange.php
121 lines (104 loc) · 2.96 KB
/
adminpwchange.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>administration password change</title>
<link href="loginmodule.css" rel="stylesheet" type="text/css" />
<style type="text/css">
fieldset.explicit-width{
width: 1%; /* Will expand to fit content */
}
fieldset.inline-block{
display: inline-block;
}
ul
{
list-style-type:none;
margin:0;
padding:0;
overflow:hidden;
border-left-color:#006666;
}
li
{
float:left;
}
a:link,a:visited
{
display:block;
width:120px;
font-weight:bold;
color:#FFFFFF;
background-color:#6666CC;
text-align:center;
padding:4px;
text-decoration:none;
text-transform:uppercase;
}
a:hover,a:active
{
background-color:#000080;
}
#nav {width:700px; margin:20;}
</style>
</head>
<body bgcolor="#99CCFF" text="#ffffff" align="center">
<?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) >0 ) {
echo '<ul class="err">';
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li>',$msg,'</li>', '<br />';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
}
?>
<div align="center">
<img align="top" src="header7.png" height="100" width="700" />
</div>
<div align="center">
<p>This is Kimathi University System. </p>
</div>
<div name="logout" align="right">
<input type="button" name="logout" value="Logout" onClick="location.href='logoutall.php'">
</div>
<hr width="20" align="center"color="#CC6600" />
<hr width="40" align="center"color="#CC6600" />
<hr width="60" align="center"color="#CC6600" />
<div align="center"><p>Only Registered Administrators can Change their Passwords</p></div>
<hr width="60" align="center"color="#CC6600" />
<hr width="40" align="center"color="#CC6600" />
<hr width="20" align="center"color="#CC6600" />
<table align="center"l width="480">
<tr><td>
<fieldset align="center" bgcolor="brown" length="">
<legend ><b>Enter:</b></legend>
<p> </p>
<form id="admpasswdchnge" name="admpasswdchnge" action='adminpwchngescript.php' method='POST'>
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<th>Old Password </th>
<td><input type="password" id='oldpasswd' name='oldpasswd' class="textfield" /></td>
</tr>
<tr>
<th>New Password</th>
<td><input type='password' id='newpasswd' name='newpasswd' class="textfield" /></td>
</tr>
<tr>
<th width="124">Confirm Password</th>
<td><input type='password' id='cfmpasswd' name='cfmpasswd' class="textfield" /></td>
</tr>
<tr>
<td> </td>
<td><input type='submit' name='submit' value='Change Password' /></td>
</tr>
</table>
</form>
<p> </p>
</fieldset>
</table>
</body>
</html>