rulelistfors.asp
来自「《动态网页设计基础教程》,胡杰,科学出版社」· ASP 代码 · 共 103 行
ASP
103 行
<!-- #include file="adoconn.asp" -->
<html>
<head>
<link rel="stylesheet" href="comCSS.css">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>教学评价表</title>
<base target="rbottom">
<meta name="Microsoft Border" content="t, default">
</head>
<body ><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td>
<p align="left"> </p>
</td></tr><!--msnavigation--></table><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top">
<%
Dim sql
Dim reccount
Dim fieldi,recordi
Dim Yeartoyear,Term
IF request.form("B1")="查询" THEN
Session("Yeartoyear")=request.form("D1") & "至" & request.form("D2")
Session("Term")=request.form("D3")
END IF
SQL="select * from TestRules where Yeartoyear='" & Session("Yeartoyear") & "' AND term='" & Session("term") & "' ORDER BY kind,CategoryID"
Set rs=GetRecordset(sql)
IF not rs.eof then
Reccount=rs.RecordCount
END IF
%>
<form method="post">
<table border=0 cellspacing="0">
<tr>
<td><font face="华文行楷" size="4" color="#FF0000"><b>教学评价表 </b></font> [ 记录总数:<%=Reccount%>]</td>
</table>
<div align="left">
<table border="1" width="821">
<tr bgcolor=#ccccc7>
<td width="139" colspan="2" align="center">
<p align="right"><font color="#000080"><b> 评价项目 </b></font>
</td>
<td width="298" align="center">
<p align="center"><font color="#000080"><b>评分标准</b></font></p>
</td>
<td width="71" align="center"><font color="#000080"><b>分值</b></font></td>
<td width="64" align="center"><font color="#000080"><b>权重</b></font></td>
<td width="71" align="center"><font color="#000080"><b>打分者</b></font></td>
<td width="98" align="center"><font color="#000080"><b>适应学年</b></font></td>
<td width="34" align="center"><font color="#000080"><b>适应学期</b></font></td>
</tr>
<%for recordi=1 to Reccount
if rs.Eof then Exit for
if recordi mod 2=0 then
color="#ddddd7"
else
color="#eeeeef"
end if
response.write ("<tr bgcolor=" + color +">")
%>
<td width="20"><input type="hidden" name="Selected" value="<%=rs(1) %>"></td>
<td width="113"><% =rs(1) %></td>
<td width="298"><% =rs(2) %></td>
<td width="71"><% =rs(3) %></td>
<td width="64"><% =rs(4) %></td>
<td width="71"><% =rs(5) %></td>
<td width="98"><% =rs(6) %></td>
<td width="34"><% =rs(7) %></td>
<%response.write ("</tr>")%>
<% rs.movenext%>
<%next%>
</table>
</div>
<%
Set rs=nothing
Set Adoconn=nothing
%>
<p>
<a href="javascript:history.back(2)">返回</a>
</p>
</form>
<!--msnavigation--></td></tr><!--msnavigation--></table></body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?