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

📄 option2.jsp

📁 高等院校计算机专业毕业设计指导及开发实例丛书-网络考试系统
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
@import url("_notes/ccc");
-->
</style>
</HEAD>
<BODY BGCOLOR=#0D85A6 BACKGROUND="images/bg.gif" >
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="db" scope="page" class="exam.exam"/>
<%
int pnum;
int a;
String sbnum=request.getParameter("sbnum");
session.putValue("kname",sbnum);
String phead= new String(request.getParameter("phead").getBytes("8859_1"));
String wproper=request.getParameter("wproper");
String dep=request.getParameter("dep");
String wnum=(String) session.getValue("wnum");
String sql1="select max(pnum) as a from pap where sbnum='"+sbnum+"'";
ResultSet rs1=db.executeQuery(sql1);
if(rs1.next()){
int su=0;
su=rs1.getInt("a");
pnum=su+1;
rs1.close();
}
else{
rs1.close();
pnum=1;
}
String sql2="insert into pap(sbnum,pnum,phead,dep,wproper,wnum)values('"+sbnum+"','"+pnum+"','"+phead+"','"+dep+"','"+wproper+"','"+wnum+"')";
db.executeUpdate(sql2);
%>
<br>
<br>
<TABLE WIDTH=750 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
  <TR>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=231 HEIGHT=1></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=75 HEIGHT=1></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=105 HEIGHT=1></TD>
		<TD>
			<IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1></TD>
	</TR>
	<TR>
		<TD COLSPAN=4>
			<IMG SRC="images/temp_01.jpg" WIDTH=420 HEIGHT=15></TD>
		<TD COLSPAN=4>
			<IMG SRC="images/temp_02.jpg" WIDTH=330 HEIGHT=15></TD>
	</TR>
	<TR>
		<TD COLSPAN=8>
			<IMG SRC="images/temp_03.jpg" WIDTH=750 HEIGHT=5></TD>
	</TR>
	<TR>
		
    <TD> 
      <table width="230" border="0" cellspacing="0" cellpadding="0" height="226" background="images/left_top.jpg">
        <tr>
          <td width="230" height="192">&nbsp;</td>
        </tr>
        <tr> 
          <td width="230"> 
            <div align="center"><font color="#990000"><a href="" onClick="history.back();">返回</a></font></div>
          </td>
        </tr>
      </table>
    </TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/temp_05.jpg" WIDTH=4 HEIGHT=455></TD>
		
    <TD COLSPAN=5 ROWSPAN=2> 
      <table width="510" border="0" cellspacing="0" cellpadding="0" height="455" background="images/main_bg.jpg">
        <tr>
          <td width="510">
            <table width="510" border="0" cellspacing="0" cellpadding="0" height="455">
              <tr> 
                <td width="510" height="78"> 
                  <div align="center"><img src="images/blank_banner.gif" width="468" height="60"></div>
                </td>
              </tr>
              <tr> 
                <td>
                  <div align="center">
                    <table width="464" height="261" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center" valign="top"> 
                          <table width="343" height="82" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              <td><div align="center" class="ccc">请选择试卷生成的方式</div></td>
                            </tr>
                          </table>
                          <form name="form1" method="post" action="answer.jsp">
                            <input type="submit" name="Submit" value="自定义试卷" onmouseover="ObjOver('※自定义试卷※就是根据您※自己的要求※随意的制作※问题!!!※',this)">
                            <input type="hidden" name="pnum" value="<%=pnum%>">
                          </form> 
						  
						  <script language="JScript">
var str="",bor=0;
function ObjOver(obj,even){
 MailObjBox.style.display="";
 MailObj.innerHTML="";
 bor=0;
 ChS(obj);
 function even.onmouseout(){
  MailObjBox.style.display="none";
  MailObjBox.style.width="0";
  MailObjBox.style.height="0";
  }
 }
function ChS(obj){
 if(MailObjBox.style.pixelWidth<200){MailObjBox.style.pixelWidth+=2;MailObjBox.style.pixelHeight++;setTimeout("ChS('"+obj+"')",5);
  }
 else{str=obj;WrS();
  }
 }
function WrS(){
 if(bor<str.length){
  MailObj.innerHTML="<font color=#000000>"+str.slice(0,bor).replace(/※/g,'<br>')+"</font>"+"<font color=#ffffff>"+str.slice(bor,bor+1).replace(/※/g,'<br>')+"</font>";
  bor++;
  setTimeout(WrS,100);
  }
 }
</script>
                            <div style="position:absolute; width:0; height:0; border:1 solid black; background:#cccccc; font-size:9pt; display:none; overflow:hidden; filter:alpha(opacity=80); left: 674px; top: 309px;" id="MailObjBox"> 
                              <div style="width:100%;height:100" id="MailObj">a</div>
                            </div>
						  <br>
  <form name="form2" method="post" action="random.jsp">
                            <input type="submit" name="Submit2" value="随机生成试卷" onmouseover="ObjOver('※随机生成试卷※就是您自己设※定抽题策略,※系统自动生成※试卷!!!!※',this)">
							<input type="hidden" name="pnum" value="<%=pnum%>">
                          </form></td>
                      </tr>
                    </table>
                  </div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </TD>
		<TD ROWSPAN=2>
			<IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
	</TR>
	<TR>
		
    <TD> 
      <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
        <tr>
          <td width="231">
            <div align="center"></div>
          </td>
        </tr>
      </table>
    </TD>
	</TR>
	<TR>
		<TD COLSPAN=8>
			<IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
	</TR>
	<TR>
		<TD COLSPAN=8>
			<IMG SRC="images/temp_10.jpg" WIDTH=750 HEIGHT=20></TD>
		    <TD> 
	</TR>
</TABLE>
</BODY>
</HTML>

⌨️ 快捷键说明

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