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

📄 huser.asp

📁 图书管理系统是典型的信息管理系统(MIS),其开发主要包括后台数据库的建立和维护以及前端应用程序的开发两个方面
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="inc/config.asp"-->
<!--#include file="inc/conn.asp"--> 
<!--#include file="inc/chk.asp"--> 
<%
'如果提交表单就建立Recoredset对像
If NOT IsEmpty (Request.Form) then 
	set rs=server.CreateObject("adodb.recordset")
	'取得处理id号
	dim id
	id=request("Id")
end if


'修改后台用户资料
if NOT IsEmpty (request("Modify")) then 
	'取得Id号
	rs.Open "select * from admin where id="&id,conn,1,3
	rs("admin")=trim(request("Name"))
	if trim(request("pws"))<>"" then
		rs("password")=md5(trim(request("Pws")))
	end if


	rs.update
'rs.Close
'set rs=nothing
	call MsgBox("修改成功!","GoUrl","huser.asp")

end if


%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图书馆管理系统</title>
<link href="../style.css" rel="stylesheet" type="text/css">


</head>

<body>


<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="219" align="left" valign="top"><br>
      <!--#include file="menu.htm"-->

        <br></td><td width="561" align="left" valign="top">      
        <br>        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="../images/w.gif" width="18" height="18"></td>
            <td style="color:#415373">后台用户管理</td>
          </tr>
        </table>        <br>
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="2">
            <tr align="center" bgcolor="#FFFFFF" class="bluefont" height="20">
              <td width="23%">管理员</td>
              <td width="21%">密 码</td>
              
          <td width="31%">操 作</td>
      
            </tr>
            <%set rs=server.CreateObject("adodb.recordset")
        rs.Open "select * from admin",conn,1,1
        %>
		<form name="form2" method="post" action="">
            <tr align="center" bgcolor="#FFFFFF" height="20">
              <td><input name="Name" type="text" id="Name" value="<%=trim(rs("admin"))%>" size="12"></td>
              <td><input name="Pws" type="text" id="Pws" size="12"></td>
              
            <td> 
              <input name="Id" type="hidden" id="Id" value="<%=int(rs("id"))%>">
              <input name="Modify" type="submit" id="Modify" value="修改">
            </td>
       
            </tr>
			</form>
            <%
        rs.close
        set rs=nothing
        %>
          </table>
         <table width="231" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="24"><img src="../images/w.gif" width="18" height="18"></td>
      <td width="207" style="color:#415373">操作注意事项及说明</td>
    </tr>
          </table>          <br>          <table width="80%" border="0" align="center" cellpadding="5" cellspacing="0">
    <tr>
          <td><font color="#FF0000">
        登录密码采用MD5不可逆转方式加密,如不修改密码,请留空。
</font></td>
    </tr>
          </table></td>
  </tr>
</table>

</body>
</html>

⌨️ 快捷键说明

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