📄 adminstudentclass1.asp
字号:
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<%
dim action
action=request.QueryString("action")
select case action
case ""
%>
<html>
<head>
<title>教务管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body style="background-color: #799AE1">
<table class="tableBorder" width="887" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="6" align="center" background="images/admin_bg_1.gif" height="25"><b><font color="#ffffff">教务管理—</font></b><font color="#FFFFFF"><b>学生管理</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#E8F1FF" align="center" colspan="6" height="25">
<font color="#0000FF">输入查询条件</font></td>
</tr>
<form name="searchstudent" method="post" action="adminstudentclass1.asp">
<tr>
<td bgcolor="#E8F1FF" align="center" colspan="1">按学生查询:</td>
<td bgcolor="#E8F1FF" align="left" colspan="4">
学号:<input class="wenbenkuang" name="num" type="text" id="Topic" size="10"></td>
<td bgcolor="#E8F1FF" align="center" colspan="1">
<input class="go-wenbenkuang" name="submit" value=查询 type=submit>
</td>
</tr>
</form>
<tr>
<td width="100%" bgcolor="#E8F1FF" align="center" colspan="6" height="25">
<font color="#0000FF">查询结果</font></td>
</tr>
<tr>
<td width="12%" bgcolor="#E8F1FF" align="center">课程代码</td>
<td width="13%" bgcolor="#E8F1FF" align="center">
课程名称</td>
<td width="10%" bgcolor="#E8F1FF" align="center">
任课教师</td>
<td width="8%" bgcolor="#E8F1FF" align="center">
教室</td>
<td width="41%" bgcolor="#E8F1FF" align="center">
时间</td>
<td width="15%" bgcolor="#E8F1FF" align="center"> </td>
</tr>
<%
num=request("num")
set rs=server.CreateObject("adodb.recordset")
sql="select Jw_teaclass.*,Jw_stuclass.* from Jw_stuclass,Jw_teaclass where Jw_stuclass.studentNum = '" & num & "' and Jw_teaclass.ID = Jw_stuclass.teacherclassID"
rs.open sql,conn,1,3
if rs.RecordCount=0 then
%>
<tr>
<td width="100%" bgcolor="#E8F1FF" align="center" colspan="7"><font color=red>无记录</font></td>
</tr>
<%
else
do while not rs.eof
%>
<tr>
<td width="12%" bgcolor="#E8F1FF" align="center"><% =rs("Num")%></td>
<td width="13%" bgcolor="#E8F1FF" align="center"><% =rs("Name")%></td>
<td width="10%" bgcolor="#E8F1FF" align="center"><% =rs("teacher")%></td>
<td width="8%" bgcolor="#E8F1FF" align="center"><% =rs("classroom")%></td>
<td width="41%" bgcolor="#E8F1FF" align="center"><% =rs("sj")%></td>
<td width="15%" bgcolor="#E8F1FF" align="center"><a href="adminstudentclass1.asp?action=del&ID=<% =rs("classID")%>">删除</a></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
%>
</table>
<%
case "del"
id=request("ID")
conn.execute "delete from Jw_stuclass where classID="&id
conn.close
set conn=nothing
response.redirect "ok.asp?ok=删除学生课程"
end select
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -