usermodify.asp
来自「《实例精粹ASP》中部分源代码」· ASP 代码 · 共 81 行
ASP
81 行
<!--#include file = "include/sysbase.asp"-->
<%
dim rsObj,strSQL
set rsObj = Server.CreateObject("ADODB.RecordSet")
strSQL = "SELECT * FROM Admins WHERE Account = '"&RealString(Request.QueryString("userId")) & "'"
'Response.Write strSQL
'Response.End
rsObj.Open strSQL, conn, adOpenKeyset, adLockReadOnly
if not (rsObj.eof or err) then
%>
<html>
<head>
<title>管理员管理</title>
<meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<link rel = "stylesheet" href = "include/main.css" type = "text/css">
<script language = Javascript>
<!--
function deleteMe(){
if (confirm("确定删除?可是恢复不了的啊。") == 1){
window.location = "userDel.asp?userID=<%=RealString(Request.QueryString("userId"))%>";
}
}
//-->
</script>
</head>
<body text = "#000000">
<br>
<br>
<br>
<br>
<form method = "post" action = "userModifySave.asp" name = "form1">
<table width = "98%" border = "1" bordercolordark = #9CC7EF bordercolorlight = #145AA0 cellspacing = "0" cellpadding = "4" align = "center">
<tbody>
<tr>
<td colspan = 2 height = "18" bgcolor = "#4296E7">
<p align = "center"><font color = "#ffffff">管理员管理</font></p>
</td>
</tr>
<tr>
<td width = 84 align = "right" height = "25" nowrap>
<div align = "right">管理员帐号:</div>
</td>
<td width = "361" height = "25">
<input type = "text" name = "userID" size = "20" value = "<%=rsObj("Account")%>" readOnly>
</td>
</tr>
<tr>
<td width = 84 align = "right" height = "25" nowrap>
<div align = "right">管理员姓名:</div>
</td>
<td width = "361" height = "25">
<input type = "text" name = "name" size = "20" value = "<%=rsObj("name")%>">
</td>
</tr>
<tr>
<td width = 84 align = "right" height = "26" nowrap>
<div align = "right">管理员密码:</div>
</td>
<td width = "361" height = "26">
<input type = "checkbox" name = "modifyPassword" value = "1">
<font color = "#FF0000">修改密码</font>
<input type = "password" name = "password1" size = "12">
<input type = "password" name = "password2" size = "12">
</td>
</tr>
<tr>
<td colspan = "2" align = "right" height = "26" nowrap bgcolor = "#4296E7">
<div align = "center">
<input type = "button" name = "Submit" value = "删除" onClick = "deleteMe()">
<input type = "submit" name = "Submit2" value = "修改">
<input type = "button" name = "Submit3" value = "返回" onClick = "window.location = '<%=Session("adminOldUrl")%>'">
</div>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
<%end if %>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?