📄 teacher.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>教师信息界面|毕业设计选题系统</title>
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
</head>
<BODY leftMargin=0 topMargin=0 marginwidth="0">
<!--#include file=../top.asp-->
<!--#include file=top.asp-->
<div align="center"><td><table width="768" border="0" bgcolor="#FFFFFF"><tr><td><div align="left">
<%
Dim GID
GID = Request.QueryString("id")
Dim conn
Set conn=Server.CreateObject("ADODB.RecordSet")
conn.ActiveConnection = "DSN=hw;User ID=sa"
conn.Source = "select * from dbo.teacher where tea_group = '"&GID&"' ORDER BY tea_lv DESC"
conn.CursorType = 0
conn.LockType = 1
conn.Open()
If conn.eof or conn.bof Then
Response.Write("请求错误,未找到该条目。<br><a href='../index.asp'>点击此处返回首页</a>")
Else
Response.Write("<p>本小组成员信息</p>")
do while not conn.EOF
response.Write "<p>姓名:"&conn("tea_name")&"<br>电话:"&conn("tea_tel")&"<br>邮件:"&conn("tea_email")&"</p>"
conn.MoveNext
Loop
Response.Write("<p>本小组选题情况</p>")
Dim conn2
Set conn2=Server.CreateObject("ADODB.RecordSet")
conn2.ActiveConnection = "DSN=hw;User ID=sa"
conn2.Source = "select * from dbo.works where works_group = '"&GID&"' ORDER BY works_state"
conn2.CursorType = 0
conn2.LockType = 1
conn2.Open()
%>
<table width="700" border="0">
<tr>
<td>题目名称</td>
<td>面向专业</td>
<td>题目状态</td>
</tr>
<%
do while not conn2.EOF
If conn2("works_state") = 1 Then
conn2.MoveNext
Else
%>
<tr>
<td><a href="show.asp?id=<% Response.Write(conn2("works_id")) %>" title="<% Response.Write(conn2("works_content")) %>"><% Response.Write(conn2("works_title")) %></a></td>
<td><% Response.Write(conn2("works_speciality")) %></td>
<td>
<%
If conn2("works_state") = 2 Then Response.Write("<a href='list.asp'>待选</a>") End If
If conn2("works_state") = 3 Then Response.Write("已选") End If
%>
</td>
<%
conn2.MoveNext
End If
Loop
%>
</tr>
</table>
<%
Set conn2 = Nothing
conn.Close()
Set conn = Nothing
End If
%>
</div></td></tr></table></td></div>
<!--#include file=botton.asp-->
<!--#include file=../botton.asp-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -