📄 password.php
字号:
<?php
include_once( "inc/auth.php" );
echo "<html>\r\n<head>\r\n<title>修改密码</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"><script src=\"/inc/js/module.js\"></script>\r\n<script language=\"javascript\">\r\nfunction CheckForm()\r\n{\r\n if(document.form1.fax_pass_old.value==\"\")\r\n { \r\n alert(\"原密码不能为空!\");\r\n return (false);\r\n }\r\n \r\n if(document.form1.fax_pass_new.value==\"\")\r\n { \r\n alert(\"新密码不能为空!\");\r\n return (false);\r\n }\r\n \r\n if(document.form1.fax_pass_new_confirm.value==\"\")\r\n { \r\n alert(\"确认密码不能为空!\");\r\n return (false);\r\n }\r\n \r\n if(document.form1.fax_pass_new.value!=document.form1.fax_pass_new_confirm.value)\r\n { \r\n alert(\"新密码和确认密码不同!\");\r\n return (false);\r\n }\r\n return (true);\r\n}\r\n</script>\r\n</head>\r\n<body class=\"bodycolor\" topmargin=\"5\" onLoad=\"document.form1.fax_pass_old.focus();\">\r\n";
if ( $id != "" )
{
$Tquery = "select PASSWORD from EFAX_ACCOUNT where NAME='".$id."'";
$Tcursor = exequery( $connection, $Tquery );
if ( $ROW = mysql_fetch_array( $Tcursor ) )
{
$PASSWORD = $ROW['PASSWORD'];
}
}
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/menu/infofind.gif\" align=\"absmiddle\"><span class=\"big3\">修改密码</span><br>\r\n </td>\r\n </tr>\r\n</table>\r\n<br>\r\n";
if ( $LOGIN_USER_PRIV != "1" )
{
message( "提示", "您没有相应的权限。" );
exit( );
}
echo "<form action=\"accountadmin.php\" method=\"post\" name=\"form1\" onSubmit=\"return CheckForm();\">\r\n<table class=\"TableBlock\" align=\"center\" width=\"500\">\r\n <tr>\r\n <td nowrap class=\"TableContent\" align=\"center\">帐户名称:</td>\r\n <td class=\"TableData\">";
echo $id;
echo "</td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\" align=\"center\">原密码:</td>\r\n <td class=\"TableData\"><input type=\"password\" name=\"fax_pass_old\" size=\"25\" maxlength=\"200\" class=\"BigInput\" value=\"\"> <span style=\"color: #ff0033\">*</span></td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\" align=\"center\">新密码:</td>\r\n <td class=\"TableData\"><input type=\"password\" name=\"fax_pass_new\" size=\"25\" maxlength=\"200\" class=\"BigInput\" value=\"\"> <span style=\"color: #ff0033\">*</span>长度应在10位以内</td>\r\n </tr>\r\n <tr>\r\n <td nowrap class=\"TableContent\" align=\"center\">确认密码:</td>\r\n <td class=\"TableData\"><input type=\"password\" name=\"fax_pass_new_confirm\" size=\"25\" maxlength=\"200\" class=\"BigInput\" value=\"\"> <span style=\"color: #ff0033\">*</span>长度应在10位以内</td>\r\n </tr>\r\n</table>\r\n<br><div align=\"center\">\r\n<input type=\"hidden\" name=\"Flag\" value=\"password\">\r\n<input type=\"hidden\" name=\"fax_user\" value=\"";
echo $id;
echo "\">\r\n<input type=\"submit\" value=\"确定\" class=\"BigButton\"> \r\n<input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='accountadmin.php'\">\r\n</form>\r\n<body>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -