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

📄 add_class.asp

📁 一个学生管理系统 ASP+ACCE
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
	response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
	response.end
end if
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>添加班级信息</title>
<link rel="stylesheet" href="style.css">
</head>


<body topmargin="0">
<!--#include file="top.asp"-->
<div align="center">
  <center>
<table width="738" height="35">
  <td background="images/top_1.jpg">&nbsp; <a href="class_manager.asp">班级信息列表</a> 
    | <a href="add_class.asp">添加班级信息</a> | <a href="search_class.asp">查询班级信息</a>
     | <a href="add_test.asp">添加考试信息</table>
  </center>
</div>

<div align="center">
  <table border="0" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
    <tr>
      <td width="100%">
        <form method="POST" action="add_class1.asp">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="2">
                <p align="center">添加班级信息</td>
            </tr>
            <tr>
              <td width="37%" align="right">班级名称:</td>
              <td width="63%" align="left"><input type="text" name="stclass" size="20"></td>
            </tr>
            <tr>
              <td width="37%" align="right">班级人数:</td>
              <td width="63%" align="left"><input type="text" name="class_number" size="20" value="0"></td>
            </tr>
            <tr>
              <td width="100%" colspan="2">
                <p align="center"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></td>
            </tr>
            </table>
          </form>
        </td>
      </tr>
    </table>
</div>

<%
set rs=server.createobject("adodb.recordset")
sql="select top 10 * from class order by id desc"
rs.open sql,conn,1,1
%>
<div align="center">
  <center> 
  <table border="1" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">
   <tr>
     <td width="100%" colspan="2">最新添加的班级列表(10条)</td>
   </tr>  
   </table>
  <table border="1" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">   
  <tr>
      <td width="99" align="center">序号</td>
      <td width="99" align="center">班级名称</td>
      <td width="100" align="center">班级人数</td>
      <td width="50" align="center">修改</td>
      <td width="50" align="center">删除</td>
    </tr>
  <%if not rs.eof then%>
  <%do while not rs.eof%>    
    <tr>
      <td width="99" align="center"><%=rs("id")%></td>
      <td width="99" align="center"><%=rs("stclass")%></td>
      <td width="100" align="center"><%=rs("class_number")%></td>
      <td width="50" align="center"><a href="mod_class.asp?id=<%=rs("id")%>">修改</a></td>
      <td width="50" align="center"><a href="del_class.asp?id=<%=rs("id")%>">删除</a></td>
    </tr>
    <%rs.movenext%>
    <%loop%>
    <%else%>
    <tr>
      <td width="388" colspan="5"><marquee>暂无班级添加</marquee></td>
    </tr>
<%end if%>
  </table>
  </center>
</div>
<p></p>
</body>







⌨️ 快捷键说明

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