📄 deal_inquire_gk.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB2312" import="utility.DBConnection,java.sql.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title></title>
</head>
<body>
<table width="100%" border="1">
<tr>
<td bgcolor="#00CCFF"><div align="center">
<h1>显示高考分数查询信息</h1>
</div></td>
</tr>
<tr>
<td>
<center>
<pre>
<%
Connection con=DBConnection.getConnection();
Statement stmt=con.createStatement();
String highExamNo=request.getParameter("highExamNo");
String courseName=request.getParameter("courseName");
String stuUnifiedNo=request.getParameter("stuUnifiedNo");
boolean judge1=true;
if (highExamNo==null || highExamNo.equals("")){judge1=false;}
if (courseName==null || courseName.equals("")){judge1=false;}
if (stuUnifiedNo==null || stuUnifiedNo.equals("")){judge1=false;}
if (judge1==false)
{
%>
<center><h3>请重新打开页面输入完整信息</h3></center>
<%
}
else
{
ResultSet rs=stmt.executeQuery("select * from highExam where ((highExamNo='"
+highExamNo+"' )and (courseName='"+courseName+"') and (stuUnifiedNo='"
+stuUnifiedNo+"'))");
if (rs.next())
{
%>
<center><h3>该考生该科成绩为:<%=rs.getString("courseGrade") %></h3></center>
<%
}
else
{
%>
<center><h3>该条信息不存在</h3></center>
<%
}
}
con.close();
%>
</pre>
</center>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -