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

📄 user_modify.asp

📁 对学校物资管理系统的一份设计
💻 ASP
字号:
<!--#include file = "Startup.asp"-->
<!-- #include file="Function.asp" -->
<%
call adminer()
call Header()
Call ComeUrl()
Call adminqx()

%>
<%
dim username,password,id
set ors=server.createobject("adodb.recordset") 
ssql="select * from admin where id="&trim(request("id"))
ors.open ssql,oconn,1,1
id=trim(request("id"))
%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台管理</title>
	<Script Language=JavaScript>
	
	// 表单提交客户端检测
	function doSubmit(){
	if (document.myform.password.value==""){
			alert("密码不能为空!");
			return false;
		}
		if (document.myform.password.value != document.myform.password1.value){
			alert("密码与确认密码不同!");
			return false;
		}
		document.myform.submit();
	}
	</Script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="350" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#DEDFDE">
  <form name="myform" method="post" action="user_modifysave.asp" onSubmit="return doSubmit();">
  <input name="id" type="hidden" id="active" value="<%=id%>">
    <tr bgcolor="#F7F7F7">
      <td colspan="2"><div align="center"><strong><font color="#FF0000">管 理 员 修 改 </font></strong></div></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td width="93">管理员名称:</td>
      <td width="234"><font color="ff0000"><%=ors("username")%></font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>管理员密码:</td>
      <td><input name="password" type="password" class="INPUT" id="password"></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>确认密码 :</td>
      <td><input name="password1" type="password" class="INPUT" id="password1"></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td colspan="2"><div align="center">
      <input name="userclass" type="radio" value="0" <%If oRs("userclass")=0 Then%>checked<%End If%>>
  财务管理员  
      <input name="userclass" type="radio" value="2" <%If oRs("userclass")=2 Then%>checked<%End If%>>
          校区管理员<br>
          <input name="userclass" type="radio" value="3" <%If oRs("userclass")=3 Then%>checked<%End If%>>
  机房管理员   
  <input type="radio" name="userclass" value="1" <%If oRs("userclass")=1 Then%>checked<%End If%>>
  超级管理员</div></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td colspan="2"><div align="center">
          <input type="submit" name="Submit" value=" 提 交 " class="INPUT">
           
          <input type="reset" name="Submit2" value=" 重 置 "class="INPUT">
      </div></td>
    </tr>
  </form>
</table>
</body>
</html>
<%
ors.close
set ors=nothing  
oconn.close
set oconn=nothing
%>

⌨️ 快捷键说明

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