📄 system.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<%if session("adminid")="" then
%>
<script language=javascript>
window.top.navigate("index.asp");
</script>
<%response.end
end if
%>
<script language=javascript>
function check()
{
if (document.form1.t1.value=="")
{alert("请输入账号!");
document.form1.t1.focus();
return false;
}
if (document.form1.pwd.value=="")
{alert("请输入密码!");
document.form1.pwd.focus();
return false;
}
document.form1.ctype.value="edit";
document.form1.submit();
}
</script>
<%set rs=conn.execute("select * from admin where admin="&session("adminid"))
if request("ctype")="edit" then
set rsedit=conn.execute ("update admin set admin='"&trim(request("t1"))&"',adminpassword='"&trim(request("pwd"))&"' where admin="&session("adminid")&"")
%>
<script language=javascript>
alert("修改成功!");
var now=new Date();
window.navigate("system.asp?time="+now.getTime());
</script>
<%end if %>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网上考试系统</title>
<link rel="stylesheet" type="text/css" href="../css.css">
</head>
<body topmargin="0" leftmargin="0">
<p>
<p align="center"><font face="隶书" size="6">系统管理</font></p>
<div align="center">
<center>
<form name=form1 action="">
<input type="hidden" name="ctype" >
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="250">
<tr>
<td align="right" bgcolor="#EFEFF7" width="100">帐号</td>
<td align="center" bgcolor="#EFEFF7" width="150">
<%=rs("admin")%></td>
</tr>
<tr>
<td align="right" bgcolor="#EFEFF7" width="100">密码</td>
<td align="center" bgcolor="#EFEFF7">
<input type="text" name="pwd" size="12" class="line" value=<%=rs("adminpassword")%>></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="修改帐号" name="B1" onclick="check()" style="width: 80; height: 22; border-style: solid; border-width: 1px; background-color: #FFFFFF"></td>
</tr>
</table></form>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -