📄 tinput.jsp
字号:
<%@ page language="java" import="java.sql.*" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>教师输入成绩</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<jsp:include page="inc/head.html"/>
<body>
<jsp:useBean id="tinput" class="Beans.TinputBean">
</jsp:useBean>
<%
try
{
String type1=(String)session.getValue("type");
int t=Integer.parseInt(type1);
int test;
test=((t/2)%2);
if (test!=1) out.print("<script language='javascript'>alert('你没有这个权限!');location.href='main.jsp'</script>");
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
ResultSet rs=null;
try
{
String id=(String)session.getValue("id");
rs=tinput.getrs(id);
}
catch(Exception e)
{
response.sendRedirect("Login.jsp");
}
%>
<table width="100%" height="100%">
<tr>
<td width="25%">
<form method="POST" action="Tinset.jsp">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<table width="100%" >
<!-- MSTableType="layout" -->
<tr height="30">
<td> 课程名称</td>
<td valign="top">
<p> <select size="1" name="course">
<%
while(rs.next())
{
out.print("<option value='"+rs.getString("Course_ID")+"'>"+rs.getString("Coures_Name"));
out.print("</option>");
}
%>
</select></p></td>
</tr>
<tr height="30">
<td> 学生学号</td>
<td> <input type="text" name="id" size="20"></td>
</tr>
<tr height="30">
<td> 成绩</td>
<td> <input type="text" name="grade" size="20"></td>
</tr>
</table>
<p><input type="submit" value="提交" name="B1" style="float: right"></p>
</form>
<p> </td>
<td width="75%">
</td>
</tr>
</table>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -