【php开源代码栏目提醒】:以下是网学会员为您推荐的php开源代码-adminch.php,希望本篇文章对您学习有所帮助。
<meta name="generator" content="Namo WebEditor(Trial)">
<? if($_SESSION[Admin]<="2"){echo("<meta http-equiv=refresh content=\"0;URL=Login.php\"></meta>");}
else
{
$sql="select * from Users where Users_id='$_GET[Users_id]'";
$result=my
sql_query($sql,$link);
$row=
mysql_fetch_array($result);
?>
<script>
function chpaswfrom()
{
if (document.chpasw.Users_password.value == ""){alert("");return false}
else if (document.chpasw.Check_password.value == ""){alert("");return false}
else{return true}
}
</script>
<table width="100%" border="0">
<tr align="right">
<td colspan="2" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;"><a href="admin.php?about=User"></a></td>
</tr>
<form name="chpasw" onsubmit="return chpaswfrom()" method="post" action="Users/UserSave.php">
<input name="chpasw_password" type="hidden" value="1">
<input name="Users_id" type="hidden" value="<?=$_GET[Users_id]?>">
<input name="admin" type="hidden" value="1">
<tr>
<td align="right" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;border-top-width: 1px;border-right-width: 1px;border-top-style: solid;border-right-style: solid;border-top-color: #000000;border-right-color: #000000;" bgcolor="#B0D9FF"></td>
<td align="left" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-width: 1px;border-left-style: solid;border-left-color: #000000;"><input type="pass
word" name="Users_password"></td>
</tr>
<tr>
<td align="right" style="border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #000000;border-top-width: 1px;border-right-width: 1px;border-top-style: solid;border-right-style: solid;border-top-color: #000000;border-right-color: #000000;" bgcolor="#B0D9FF"></td>
<td align="left" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-width: 1px;border-left-style: solid;border-left-color: #000000;"> <input type="password" name="Check_password"></td>
</tr>
<tr>
<td colspan="2" align="center" style="border-top: 1px solid #000000;border-bottom: 1px solid #000000;"><input type="submit" value=""><input type="reset" value=""></td>
</tr>
</form>
</table>
<?
}
?>