⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 outexam.jsp

📁 一个很实用的在线考试系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@ page import="com.study.database.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="javax.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>在线考试系统</title>
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  <style type="text/css">
	<!--
	body,td,th {
		font-size: 9pt;
	}
	-->
  </style>
  </head>
  
  <body>
    <form name="form1" method="post" action="simpleoutsave.jsp">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width='20%'><%@ include file = "left.jsp" %></td>
          <td width='80%'>
          <br>
          <br>
          <table width="100%" border="0" cellspacing="1" cellpadding="1"  bgColor=#595959>
            <tr>
              <td height="25" colspan="2" bgcolor="#FFFFFF">在线考试系统-选择考试</td>
            </tr>
            <tr bgColor=#d1face>
              <td width="17%" height="25" >选择试卷编号:</td>
              <td width="83%"><select name="papertitle" id="papertitle">
              <%
			    	DBConnectionManage db = new DBConnectionManage();
			    	Connection conn = db.getFreeConnection();
			    	String query = "select * from paper";
			    	Statement st = null;
			    	ResultSet rs = null;
			    	try{
			    		st = conn.createStatement();
			    		rs = st.executeQuery(query);
			    		while(rs.next()){
			    			out.println("<option value='"+rs.getString("papertitle")+"'>"+rs.getString("papertitle")+"</option>");
			    		}
			    	}catch(Exception ex){
			    		
			    	}finally{
			    		st.close();
			    		rs.close();
			    		conn.close();
			    	}
		      %>
              </select></td>
            </tr>
            <tr bgcolor="#FFFFFF">
              <td colspan="2" align="center"><input type="submit" name="Submit" value="提交">&nbsp;&nbsp;
              <input type="reset" name="Submit2" value="重置"></td>
            </tr>
          </table></td>
        </tr>
      </table>
      </form>
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -