📄 cj_lr.asp
字号:
<!--#include file="chkadmin.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<title>学生成绩管理系统</title>
</head>
<%
Dim cj(100)
classid=Request.Form("classid")
classname=Request.Form("classname")
subid=Request.Form("subid")
jecid=Request("jecid")
set fs=server.createobject("adodb.recordset")
fs.open "select * from [sub] where id="&subid,conn,1,1
subname=fs("sub")
fs.close
%>
<body>
<div align="center">
<center>
<form method="post" action="cj_lr_ok.asp">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#ffffff" width="100%" height="87">
<tr>
<td width="100%" background="../Images/admin_table_bg.gif" height="24" colspan="2">
<p align="center"> <b><font color="#FFFFFF"><%=classname%>班<%=jecname%>-<%=subname%>科成绩录入</font></b></td>
</tr>
<tr>
<td width="6%" height="20" bgcolor="#D9E6FF">姓 名</td>
<td width="118%" height="20" bgcolor="#D9E6FF">成 绩</td>
</tr>
<%
fs.open "select * from [stu]",conn,1,1
i=0
If fs.RecordCount=0 then
Else
Do while not fs.eof
If fs("classid")=Cint(classid) Then
i=i+1
%>
<tr>
<td width="6%" height="19" bgcolor="#D9E6FF"><%=i%>. <%=fs("name")%>
<input type="hidden" name="<%=Cstr("nm"&i)%>" value="<%=fs("id")%>"></td>
<td width="118%" height="19" bgcolor="#D9E6FF">
<input type="text" name="<%=Cstr("cj"&i)%>" size="5"></td>
</tr>
<%
End If
fs.MoveNext
Loop
End If
fs.Close
Set fs=nothing
%>
<tr>
<td width="16%" bgcolor="#D9E6FF" height="21">
</td>
<td width="84%" bgcolor="#D9E6FF" height="21">
<input type="hidden" value="<%=i%>" name="i">
<input type="hidden" value="<%=classid%>" name="classid">
<input type="hidden" value="<%=jecid%>" name="jecid">
<input type="hidden" value="<%=subid%>" name="subid">
<input type="submit" value="提交成绩" name="B1"></td>
</tr>
</table>
</form>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -