?? 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 + -