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

📄 system.asp

📁 党的知识考试
💻 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 id="&session("adminid"))
if request("ctype")="edit" then
set rsedit=conn.execute ("update admin set 账号='"&trim(request("t1"))&"',密码='"&trim(request("pwd"))&"' where id="&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 4.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 class=test1>系统管理</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="#CBEFDC" width="100">帐号</td>
      <td align="center" bgcolor="#CBEFDC" width="150"> 
      <input type="text" name="t1" size="12" class="line" value=<%=rs("账号")%>></td>
    </tr>
    <tr>
      <td align="right" bgcolor="#CBEFDC" width="100">密码</td>
      <td align="center" bgcolor="#CBEFDC"> 
      <input type="text" name="pwd" size="12" class="line" value=<%=rs("密码")%>></td>
    </tr>
    <tr>
      <td colspan="2" align="center">
      <input type="button" value="修改帐号" name="B1" onclick="check()"></td>
    </tr>
    </table></form>
  </center>
</div>

</body>

</html>

⌨️ 快捷键说明

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