Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.144.18.59
<?php require_once('auth.php'); ?>
<?php include("header.php"); ?>
<style type="text/css">
<!--
.style2 {color: #FFFFFF; font-weight: bold; font-size: 14px; }
-->
</style>
<script LANGUAGE="JavaScript" type="text/javascript">
function validate()
{
if (document.form1.txtchaoldpassword.value.length < 1)
{
alert("Please Enter Existing Password.");
document.form1.txtchaoldpassword.focus();
return false;
}
if(document.form1.password.value != document.form1.txtchaoldpassword.value)
{
alert("Please check the Existing Password");
document.form1.txtchaoldpassword.focus();
return false;
}
if (document.form1.txtnewpassword.value.length < 1)
{
alert("Please Enter New Password.");
document.form1.txtnewpassword.focus();
return false;
}
if (document.form1.txtconfirmpassword.value.length < 1)
{
alert("Please Enter Password again.");
document.form1.txtconfirmpassword.focus();
return false;
}
if(document.form1.txtnewpassword.value != document.form1.txtconfirmpassword.value)
{
alert("Please Verify Confirm Password");
document.form1.txtconfirmpassword.focus();
return false;
}
return true;
}
</script>
<body>
<div class="cont">
<div style="width:800px; height:30px; text-align:center; margin:0 auto; padding-top:10px;">
<h3>CHANGE PASSWORD</h3>
</div>
<!--- Header Over -->
<table width="500" border="0" align="center" cellpadding="4" cellspacing="1">
<tr>
<td width="390"></td>
<td width="38" height="36" style="padding-left:5px;"><a href="adminfunction.php">Back</a></td>
<td width="44" height="36" style="padding-left:5px;"><a href="logout.php">Logout</a></td>
</tr>
</table>
<?php
include('link.php');
$a_id=$_SESSION['SESS_MEMBER_ID'];
$username=$_SESSION['SESS_USERNAME'];
$collegecode=$_SESSION['SESS_COL_CODE'];
//echo"Admin Id :".$a_id;
$yu = "select * from usertable where id='$a_id'";
$res = mysql_query($yu) or die("Query failed.....".mysql_error());
if (mysql_num_rows($res) != 0)
{
while($row = mysql_fetch_array($res))
{
?>
<form name="form1" method="post" action="change_password1.php" onSubmit="return validate();">
<input name="id" type="hidden" value="<?=$row['ID']?>">
<input name="username" type="hidden" value="<?=$row['USERNAME']?>">
<input name="password" type="hidden" value="<?=$row['FPASSWORD']?>">
<table width="500" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#999999">
<tr>
<td width="188" height="45" bgcolor="#FFFFFF" class="fieldname"><div align="left" class="style4" style="padding-left:10px;">
Current Password</div></td>
<td width="293" height="45" bgcolor="#FFFFFF" class="fieldname"><div align="left"><input type=password name="txtchaoldpassword" size="25"></div></td>
</tr>
<tr>
<td height="45" bgcolor="#FFFFFF" class="fieldname"><div align="left" class="style4" style="padding-left:10px;">Enter New Password </font></div></td>
<td height="45" bgcolor="#FFFFFF" class="fieldname"><div align="left"><input type=password name="txtnewpassword" size="25" />
</div></td>
</tr>
<tr>
<td height="45" bgcolor="#FFFFFF" class="fieldname"><div align="left" class="style4" style="padding-left:10px;">Confirm New Password</div></td>
<td height="45" bgcolor="#FFFFFF" class="fieldname"><div align="left">
<input type=password name="txtconfirmpassword" size="25"></div></td>
</tr>
<tr>
<td height="45" colspan="2" align="center" bgcolor="#FFFFFF"><input type="SUBMIT" value="SUBMIT" name="B1" style="font-family: Verdana; font-size: 14px; text-transform: uppercase; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; width:100px; background-color: #000080" /></td>
</tr>
</table>
<p> </p>
<p> </p>
</form>
<?php
}
}
?>
<?php include("footer.php"); ?>
|