<?
include "../inc/config.php";
include "../../inc/inc.php";
?>
<html>
<head>
<title></title>
<link href="../css/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
<!-- jinhaobi.com Baidu tongji analytics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a9f67843137ac498d8fea7cdfbab9eaa";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body class="iframe-right-body">
<table border="0" align="center" cellpadding="6" cellspacing="0" class="table-width">
<tr class="h-dashed">
<td>当前位置:<A href="../right.php">桌面</A> > 控制面版 > 修改密码</td>
<td align="right" nowrap><a href="../thirdhtml/help.html"><img width="20" height="20" align="absmiddle" border="0" src="../images/icon-help.gif"/> 寻求帮助</a></td>
</tr>
</table>
<br>
<table width="100%" border="0">
<tr>
<td class="title2">【修改密码】</td>
</tr>
</table>
<table width="100%" height="20" border="0">
<tr>
<td> </td>
<td align="right"> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td height="95" align="center"> <span class="style2">
<?
$psw=$_POST['psw'];
$result=mysql_query("select * from user where account='".$_SESSION['Account']."'");
$rs=mysql_fetch_array($result);
$psw02=$rs['psw'];
if($psw==$psw02)
{
//修改记录
$sql="UPDATE user SET psw='".$_POST['newpsw']."' where account='".$_SESSION['Account']."'";
$result=mysql_query($sql);
if($result){
echo "修改成功!";
}
}
else
{
echo "您输入的旧密码错误!";
}
?>
</span>[<a href="ModifySystemPwd.php">返回</a>]</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="right"></td>
</tr>
</table>
<p> </p>
</body>
</html>