www.gusucode.com > 因特达Access数据库在线管理系统 > 因特达Access数据库在线管理系统\code\access\user.asp
<!--#include file="session.asp" --> <% if request("exe")="mod" then userName=replace(Request("userName"),"'","") userName_old=session("yinteda_access_userName") if userName="" then response.write "<script>alert('用户名为空');</script>" else PassWord=EnPas(replace(trim(Request("Password")),"'","''")) yinteda_access_conn.execute("update UserManage set userName='"&userName&"',password='"&password&"' where userName='"&userName_old&"'") response.write "<script>alert('修改成功');window.close()</script>" response.end end if end if %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>因特达Access在线管理v9.0</title> <style type="text/css"> <!-- body,td,th {font-family: "宋体";font-size: 12px;} form {margin:0px;padding:0px;} textarea { border: 1px solid #7F9DB9; } a:link { text-decoration: none; color: #316AC5; } a:visited { text-decoration: none; color: #316AC5; } a:hover { text-decoration: underline; color: #FF0000; } a:active { text-decoration: none; color: #FF0000; } .fixSpan {width:150px;white-space:nowrap;word-break:keep-all;overflow:hidden;text-overflow:ellipsis;} body { margin-left: 2px; margin-top: 2px; margin-right: 2px; margin-bottom: 2px; background-color: #ECE9D8; } --> </style> <script> function chk() { if (form1.userName.value.length==0) { alert('用户名不能为空') return false; } if (form1.passWord.value.length==0) { alert('密码不能为空') return false; } if (form1.passWord.value!=form1.passWord2.value) { alert('两次密码不一样') return false; } return true; } </script> </head> <body> <form name="form1" method="post" onSubmit="return chk()" action=""> <table width="100%" border="0"> <tr> <td align="right">新用户名:</td> <td><input type="text" name="userName" id="userName" value="<%=session("yinteda_access_userName")%>"></td> </tr> <tr> <td align="right">新密码:</td> <td><input type="password" name="passWord" id="passWord"></td> </tr> <tr> <td align="right">重复密码:</td> <td><input type="password" name="passWord2" id="passWord2"></td> </tr> <tr> <td> </td> <td> <input type="submit" name="button" id="button" value="确定"> <label for="button2"></label> <input onClick="window.close()" type="button" name="button2" id="button2" value="关闭"> <input name="exe" type="hidden" id="exe" value="mod"> </td> </tr> </table> </form> </body> </html>