genpaper.jsp
资源名称:examasp.rar [点击查看]
上传用户:hjt198082
上传日期:2015-04-16
资源大小:95k
文件大小:2k
源码类别:
MySQL数据库
开发平台:
Java
- <%@page contentType="text/html;charset=GBK"%>
- <%@page import="java.sql.*"%>
- <%@ include file="/public/checkvalidadmin.jsp"%>
- <%@ include file="/public/checkvalidadmin8.jsp"%>
- <jsp:useBean id="conn" scope="page" class="test.ConnOracle"/>
- <%!
- ResultSet rs = null;
- String sql = "";
- %>
- <%
- sql = "select * from test_classinfo";
- try {
- rs = conn.executeQuery( sql );
- }catch(Exception ee) {
- out.println("<center>");
- out.println("访问课程信息出错!请将以下信息告知系统管理员。<br>");
- out.println(ee.toString() + "<br>");
- out.println("<a href=javascript:history.back()>单击这里返回</a>");
- out.println("</center>");
- }
- if(!rs.next()) {
- out.println("数据库中没有课程信息,无法进行组卷操作!");
- return;
- }
- %>
- <HTML>
- <HEAD>
- <title>动态生成试卷</title>
- <link rel="stylesheet" href="../public/style.css">
- </HEAD>
- <BODY class="ss">
- <br><br><br><br><br><br>
- <center>
- <form action="../servlet/GenPaperServlet" method="post">
- 请选择对应的班级:
- <select name=classid>
- <%
- do {
- out.println("<option value=" + rs.getString("classid") + ">" + rs.getString("classname") + "</option>");
- }while(rs.next());
- %>
- </select>
- 请选择生成的试卷份数:
- <select name="paper_num">
- <option value=1>1</option>
- <option value=2>2</option>
- <option value=3>3</option>
- <option value=4>4</option>
- <option value=5>5</option>
- </select>
- <br><br><br><br><br><br><br>
- <input type="submit" value="开始生成试卷">
- <input type="reset" value="重新选择">
- </form>
- </center>
- </BODY>
- </HTML>