⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geuseredit.asp

📁 目前人力资源管理系统的发展已经相对成熟
💻 ASP
字号:
<!--#include file=DataBase/conn.asp-->
<%
if request("post")<>"" then

if request("userpwd")="" then
response.Write("<script language=javascript>alert('密码必须填写');location='javascript:history.go(-1)'</script>")
response.End()
end if
if request("userpwd")<>request("userpwd2") then
response.Write("<script language=javascript>alert('两次输入密码不一致');location='javascript:history.go(-1)'</script>")
response.End()
end if

'修改用户
set rsa=server.CreateObject("adodb.recordset")
sqla="select * from tb_User where username='"&session("admin_name")&"'"
rsa.open sqla,conn,1,3

rsa("username")=request("username")
rsa("userpwd")=request("userpwd")

rsa.update
rsa.close
response.Write("<script language=javascript>alert('修改成功!')</script>")
end if
'用户
set rsy=server.CreateObject("adodb.recordset")
sqly="select * from tb_User where username='"&session("admin_name")&"'"
rsy.open sqly,conn,1,1 
 
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
<script language="javascript">
function more()
{
var id=form1.nameid.value;
      window.open("employeeopen.asp?id="+id,"","width=450,height=450,toolbar=no,location=no,status=no,menubar=no");
}
</script>
<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
.style2 {color: #0000FF}
.style3 {color: #FF0000}
-->
</style></head>

<body topmargin="0">
<form name="form1" method="post" action="">
  <table width="550" border="0" align="center">
    <tr>
      <td width="55%" height="30"> - <span class="style3">个人管理</span>→<span class="style2">信息检索</span>→<font color="#FF0000">个人密码修改</font></td>
    </tr>
  </table>
  <table width="468" height="150"  border="0" align="center" cellspacing="1">
    <tr align="center">
      <td height="27" colspan="2">个人密码修改</td>
    </tr>
    <tr>
      <td width="32%" height="28"><div align="right">用户名:</div></td>
      <td width="68%">&nbsp;<input name="username" type="text" class="wenben" id="username" value="<%=rsy("username")%>" readonly="true">
        <input name="post" type="hidden" id="post" value="true"></td>
    </tr>
    <tr>
      <td height="28"><div align="right">密码:</div></td>
      <td>&nbsp;<input name="userpwd" type="password" class="wenben" id="userpwd" value="<%=rsy("userpwd")%>"></td>
    </tr>
    <tr>
      <td height="28" align="right">确认密码:</td>
      <td>&nbsp;<input name="userpwd2" type="password" class="wenben" id="userpwd2" value="<%=rsy("userpwd")%>"></td>
    </tr>
    <tr align="center">
      <td colspan="2"><input name="Submit" type="submit" class="botton" value="提交">
       
        <input name="Submit2" type="reset" class="botton" value="重置">
         
        <input name="Submit4" type="button" class="botton" onClick="location='userguan.asp'" value="返回"></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -