Query_test.jsp
上传用户:nbluoke
上传日期:2013-08-09
资源大小:4851k
文件大小:21k
源码类别:

教育系统应用

开发平台:

WORD

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" %>
  2. <%@ page import="java.sql.*"%>
  3. <%@ page import="jinghua.*"%>
  4. <%@ page import="java.util.*"%>
  5. <jsp:useBean id="DBCon" class="jinghua.JinghuaConn" scope="session">
  6. </jsp:useBean>
  7. <%!Connection con;
  8. class Test{
  9.     String id;
  10.     String name;
  11.     String grade;
  12.     String time;
  13.     String totalMark;
  14.     String testclass;
  15.     public String toString(){
  16.         String temp="";
  17.         temp="<br> id="+id+"<br> name="+name;
  18.         return temp;
  19.    }
  20. };
  21. boolean debug=false;
  22. Statement stmt=null;
  23. ResultSet rs=null;
  24. String sql="";
  25. String sqlCon=null;
  26. int testNumber=0;
  27. int EveryPage=5;//每页显示的记录数;
  28. int OnPage=1; //当前显示的页数;
  29. int Total=0;//记录的总数;
  30. int TotalPage=0;//记录的总页数;
  31. %>
  32. <%
  33. ArrayList testSet=new ArrayList();
  34. try{
  35.     con=DBCon.getConnection();
  36. %>
  37. <%
  38. //构造查询条件
  39. //String query_grade=(String)session.getAttribute("query_grade");
  40. //String query_sub=(String)session.getAttribute("query_sub");
  41. //String query_knowpoint=(String)session.getAttribute("query_knowpoint");
  42. //String query_testtype=(String)session.getAttribute("query_testtype");
  43. //String errorpad_errorcount=(String)session.getAttribute("errorpad_errorcount");
  44. sqlCon="";
  45. String query_grade=request.getParameter("Grade");
  46. String query_sub=request.getParameter("Subject");
  47. String query_knowpoint=request.getParameter("KnowPoint");
  48. String query_testtype=request.getParameter("testtype");
  49. if(query_grade!=null)
  50. {
  51.     session.setAttribute("query_grade",query_grade);
  52. }
  53. else
  54. {
  55.     query_grade=(String)session.getAttribute("query_grade");
  56. }
  57. if(query_sub!=null)
  58. {
  59.     session.setAttribute("query_sub",query_sub);
  60. }else
  61. {
  62.     query_sub=(String)session.getAttribute("query_sub");
  63. }
  64. if(query_knowpoint!=null)
  65. {
  66.     session.setAttribute("query_knowpoint",query_knowpoint);
  67. }
  68. else
  69. {
  70.     query_knowpoint=(String)session.getAttribute("query_knowpoint");
  71. }
  72. if(query_testtype!=null)
  73. {
  74.     session.setAttribute("query_testtype",query_testtype);
  75. }
  76. else
  77. {
  78.     query_testtype=(String)session.getAttribute("query_testtype");
  79. }
  80. if(query_grade==null)
  81.     query_grade="all";
  82. if(query_sub==null)
  83.     query_sub="all";
  84. if(query_knowpoint==null)
  85.     query_knowpoint="all";
  86. if(query_testtype==null)
  87.     query_testtype="2";
  88. if(debug){
  89.     out.print("<br>grade="+query_grade+
  90.     "<br>sub="+query_sub+
  91.     "<br>knowpoint="+query_knowpoint+
  92.     "<br>testtype="+query_testtype
  93.     );
  94. }
  95. sqlCon="";
  96. int itesttype=Integer.parseInt(query_testtype);
  97. switch (itesttype){
  98.     case 2://单元测试
  99. sqlCon=" (test.status<>3)";
  100.          if(query_grade!=null){
  101.             if(!query_grade.equals("all")){
  102.                 if(query_grade.equals("c")){
  103.                     if(sqlCon.equals(""))
  104.                         sqlCon=" (test.gradenote='c1' OR test.gradenote='c2' OR test.gradenote='c3')";
  105.                     else
  106.                         sqlCon=sqlCon+ " AND "+" (test.gradenote='c1' OR test.gradenote='c2' OR test.gradenote='c3')";
  107.                 }else if(query_grade.equals("g")){
  108.                     if(sqlCon.equals(""))
  109.                         sqlCon=" (test.gradenote='g1' OR test.gradenote='g2' OR test.gradenote='g3l' OR test.gradenote='g3w')";
  110.                     else
  111.                         sqlCon=sqlCon+ " AND "+" (test.gradenote='g1' OR test.gradenote='g2' OR test.gradenote='g3l' OR test.gradenote='gw3')";
  112.                 }
  113.             else
  114.                 if(sqlCon.equals(""))
  115. sqlCon=" (test.gradenote='"+query_grade+"')";
  116.                 else
  117.                     sqlCon=sqlCon+" AND "+" (test.gradenote='"+query_grade+"')";
  118.             }
  119.         }
  120.         if(debug)   out.println("<br>grade sql="+sqlCon);
  121.         if(query_sub!=null){
  122.         if(!query_sub.equals("all")){
  123.             if (!sqlCon.equals(""))
  124.                 sqlCon=sqlCon +" AND (test.subid="+query_sub+")";
  125.             else
  126.                 sqlCon=" (test.subid="+query_sub+")";
  127.             }
  128.         }
  129.         if(debug)    out.println("<br>subject 4"+sqlCon);
  130.         if(query_knowpoint!=null){
  131.             if(!query_knowpoint.equals("all")){
  132.                 if(!sqlCon.equals(""))
  133.                     sqlCon=sqlCon+" AND(test.knowpointid1="+query_knowpoint +
  134.                         " OR test.knowpointid2="+query_knowpoint+
  135.                         " OR test.knowpointid3="+query_knowpoint+")";
  136.                 else
  137.                     sqlCon=" (test.knowpointid1="+query_knowpoint +
  138.                         " OR test.knowpointid2="+query_knowpoint+
  139.                         " OR test.knowpointid3="+query_knowpoint+")";
  140.             }
  141.         }
  142.         if(debug)    out.println("<br>knowpoint sql="+sqlCon);
  143.         sql="SELECT   `test`.`id`,  `grade`.`Name` AS `gradename`,"+
  144.             "  `test`.`title` AS `testname`,  `test`.`mark`,  `test`.`date` AS `testdate`"+
  145.             "  FROM  `test`  LEFT OUTER JOIN `grade` ON (`test`.`gradenote` = `grade`.`note`)";
  146.         if(!sqlCon.equals("")) sql=sql+" WHERE "+sqlCon;
  147.         sql=sql+" ORDER BY  `test`.`gradenote`,`test`.`subid`,`test`.`id`";
  148.         if(debug) out.println("<br>test sql="+sql);
  149.         stmt=con.createStatement();
  150.         rs=stmt.executeQuery(sql);
  151.         while(rs.next()){
  152.             Test t=new Test();
  153.             t.id=rs.getString("id");
  154.             //<a href="Query_test_mn.jsp" target="_self">test</a>
  155.             t.name="<a href="+"Query_test_unit.jsp?testID="+t.id+" target="_self">"+
  156.                         rs.getString("testname")+"</a>";
  157.             t.grade=rs.getString("gradename");
  158.             t.totalMark=rs.getString("mark");
  159.             t.testclass="单元测试";
  160.             t.time=rs.getString("testdate");
  161.             testSet.add(t);
  162.         }
  163.         rs.close();
  164.         stmt.close();
  165.         break;
  166.     case 3://模拟测试
  167.         if(query_grade!=null){
  168.             if(!query_grade.equals("all")){
  169.                 if(query_grade.equals("c")){
  170.                     if(sqlCon.equals(""))
  171.                         sqlCon=" (mn_test.grade_note='c1' OR mn_test.grade_note='c2' OR mn_test.grade_note='c3')";
  172.                     else
  173.                         sqlCon=sqlCon+" AND "+" (mn_test.grade_note='c1' OR mn_test.grade_note='c2' OR mn_test.grade_note='c3')";
  174.                 }else if(query_grade.equals("g")){
  175.                     if(sqlCon.equals(""))
  176.                         sqlCon=" (mn_test.grade_note='g1' OR mn_test.grade_note='g2' OR mn_test.grade_note='g3l' OR mn_test.grade_note='g3w')";
  177.                     else
  178.                         sqlCon=sqlCon+" AND "+" (mn_test.grade_note='g1' OR mn_test.grade_note='g2' OR mn_test.grade_note='g3l' OR mn_test.grade_note='g3w')";
  179.                 }
  180.             else  if(sqlCon.equals(""))
  181.                     sqlCon=" (mn_test.grade_note='"+query_grade+"')";
  182.                 else
  183.                     sqlCon=sqlCon+" AND "+" (mn_test.grade_note='"+query_grade+"')";
  184.             }
  185.         }
  186.         if(debug)   out.println("<br>grade sql="+sqlCon);
  187.         sql="SELECT   `mn_test`.`id`,  `mn_test`.`name` AS `testname`,"+
  188.             "  `grade`.`Name` AS `gradename`,  `mn_test`.`mntotalmark`,"+
  189.             "  CONCAT(`mn_test`.`begin_date`,"至",  `mn_test`.`end_date`) as testtime FROM  `mn_test`"+
  190.             "  LEFT OUTER JOIN `grade` ON (`mn_test`.`grade_note` = `grade`.`note`)";
  191.         if(!sqlCon.equals("")) sql=sql+" WHERE "+sqlCon;
  192.         sql=sql+" ORDER BY  `mn_test`.`grade_note`,`mn_test`.`begin_date`";
  193.         stmt=con.createStatement();
  194.         rs=stmt.executeQuery(sql);
  195.         while(rs.next()){
  196.             Test t=new Test();
  197.             t.id=rs.getString("id");
  198.             //<a href="Query_test_mn.jsp" target="_self">test</a>
  199.             t.name="<a href="+"Query_test_mn.jsp?mnID="+t.id+" target="_self">"+
  200.                         rs.getString("testname")+"</a>";
  201.             t.grade=rs.getString("gradename");
  202.             t.totalMark=rs.getString("mntotalmark");
  203.             t.testclass="模拟考试";
  204.             t.time=rs.getString("testtime");
  205.             testSet.add(t);
  206.         }
  207.         rs.close();
  208.         stmt.close();
  209.         break;
  210.     default:
  211. }
  212. if(debug)
  213.     out.println("<br>at last sql="+sql);
  214. //rs.last();//移到最后一条记录;
  215. //Total=rs.getRow();//记录的总数;
  216. //TotalPage=(Total%EveryPage==0)?(Total/EveryPage):(Total/EveryPage+1);
  217. %>
  218. <!--年级,科目,知识点三个下拉列表框联动-->
  219. <%
  220. out.print(Tools.sub_know(con));
  221. out.print(Tools.grade_sub(con));
  222. %>
  223. <script language="JavaScript">
  224. function changegs(locationid){
  225. document.myform.Subject.length =1;
  226.         document.myform.KnowPoint.length =1;
  227.         var locationid=locationid;
  228.         var i;
  229.         for (i=0;i < gscount; i++){
  230.             if (grade_sub[i][0] == locationid) {
  231.             document.myform.Subject.options[document.myform.Subject.length] = new Option(grade_sub[i][2], grade_sub[i][1]);
  232.             }
  233. }
  234. }
  235. function changesk(locationid){
  236. document.myform.KnowPoint.length =1;
  237. var locationid=locationid;
  238. var i;
  239. for (i=0;i < gskcount; i++){
  240. if (grade_sub_know[i][1] == locationid){
  241. document.myform.KnowPoint.options[document.myform.KnowPoint.length] = new Option(grade_sub_know[i][3], grade_sub_know[i][2]);
  242. }
  243. }
  244. }
  245. function delit(myform)
  246. {
  247.   if (confirm("将删除所有选择的知识点数据?"))
  248.   {
  249.     myform.action="errorpaddel.jsp";
  250.     myfrom.target="_self";
  251.     myform.submit();
  252.   }
  253. }
  254. function del_check()
  255. {
  256. var count = errorpad.elements.length;
  257. var noSelect = true;
  258.   for(var i=0;i<count;i++)
  259.   {
  260.      if(errorpad.elements[i].checked)
  261.      {
  262.              noSelect = false;
  263.       break;
  264. }
  265.    }
  266. if(noSelect == true)
  267. {
  268.     alert("您还没有选择要删除的错题!");
  269.     return(false);
  270.  }
  271.    else
  272.    {
  273.          if(confirm("将删除所有选择的错题吗?"))
  274.          {
  275.                 document.errorpad.method = "POST";
  276.                 document.errorpad.action = "errorpad_del.jsp";
  277.                 document.errorpad.target="_self";
  278.                 document.errorpad.submit();
  279.          }
  280.          else
  281.          {
  282.                 document.form3.method = "GET";
  283.                 document.form3.action = "";
  284. }
  285.          }
  286.          return false;
  287. }
  288. function addrate_check()
  289. {
  290. var count = errorpad.elements.length;
  291. var noSelect = true;
  292.   for(var i=0;i<count;i++)
  293.   {
  294.      if(errorpad.elements[i].checked)
  295.      {
  296.              noSelect = false;
  297.       break;
  298. }
  299.    }
  300. if(noSelect == true)
  301. {
  302.     alert("您还没有选择要增加错误级别的错题!");
  303.     return(false);
  304.  }
  305.    else
  306.    {
  307.          if(confirm("增加所有选择的错题的错误级别吗?"))
  308.          {
  309.                 document.errorpad.method = "POST";
  310.                 document.errorpad.action = "errorpad_addrate.jsp";
  311.                 document.errorpad.target="_self";
  312.                 document.errorpad.submit();
  313.          }
  314.          else
  315.          {
  316.                 document.errorpad.method = "GET";
  317.                 document.errorpad.action = "";
  318. }
  319.          }
  320.          return false;
  321. }
  322. function decrate_check()
  323. {
  324. var count = errorpad.elements.length;
  325. var noSelect = true;
  326.   for(var i=0;i<count;i++)
  327.   {
  328.      if(errorpad.elements[i].checked)
  329.      {
  330.              noSelect = false;
  331.       break;
  332. }
  333.    }
  334. if(noSelect == true)
  335. {
  336.     alert("您还没有选择要降低错误级别的错题!");
  337.     return(false);
  338.  }
  339.    else
  340.    {
  341.          if(confirm("降低所有选择的错题的错误级别吗?"))
  342.          {
  343.                 document.errorpad.method = "POST";
  344.                 document.errorpad.action = "errorpad_decrate.jsp";
  345.                 document.errorpad.target="_self";
  346.                 document.errorpad.submit();
  347.          }
  348.          else
  349.          {
  350.                 document.errorpad.method = "GET";
  351.                 document.errorpad.action = "";
  352. }
  353.          }
  354.          return false;
  355. }
  356. function subform(stract)
  357. {
  358. switch (stract){
  359. case "del":
  360.             del_check();
  361. break;
  362. case "addrate":
  363.             addrate_check();
  364. break;
  365. case "decrate":
  366. decrate_check();
  367. break;
  368.         case "test":
  369.             selectid();
  370.             break;
  371. case "print":
  372. printerror();
  373.             break;
  374. }
  375. }
  376. function selectid(){
  377.     var winpoint=window.open('','err_test_type','height=240,width=470,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
  378.     var toppos=(window.screen.height-240)/2;
  379.     var leftpos=(window.screen.width-470)/2;
  380.     winpoint.moveTo(toppos,leftpos);
  381.     winpoint.focus();
  382.     document.errorpad.method="POST";
  383.     document.errorpad.action="err_test_type.jsp";
  384.     document.errorpad.target="err_test_type";
  385.     document.errorpad.submit();
  386. }
  387. function printerror(){
  388.     var winpoint=window.open('','err_print_type','height=240,width=520,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
  389.     var toppos=(window.screen.height-240)/2;
  390.     var leftpos=(window.screen.width-470)/2;
  391.     winpoint.moveTo(toppos,leftpos);
  392.     winpoint.focus();
  393.     document.errorpad.method="POST";
  394.     document.errorpad.action="err_print_type.jsp";
  395.     document.errorpad.target="err_print_type";
  396.     document.errorpad.submit();
  397. }
  398. function openDetail(var1){
  399.     var winpoint=window.open('err_query_detail.jsp?id='+var1,'newwindow','height=400,width=300,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
  400.     winpoint.focus();
  401. }
  402. function InitMyform(){
  403.     document.myform.Grade.value='<%=query_grade%>';
  404.     changegs(document.myform.Grade.options[document.myform.Grade.selectedIndex].value);
  405.     document.myform.Subject.value='<%=query_sub%>';
  406.     changesk(document.myform.Subject.options[document.myform.Subject.selectedIndex].value);
  407.     document.myform.KnowPoint.value='<%=query_knowpoint%>';
  408.     document.myform.testtype.value='<%=query_testtype%>';
  409. }
  410. </script>
  411. <HTML>
  412. <HEAD>
  413. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  414. <TITLE>精华学堂-考试查询</TITLE>
  415. <SCRIPT language=JavaScript>
  416. <!--
  417. function SymError()
  418. {
  419.   return true;
  420. }
  421. window.onerror = SymError;
  422. //-->
  423. </SCRIPT>
  424. <!-- saved from url=(0041)http://jsptestonline.cosoft.org.cn/senior/none_xt.jsp -->
  425. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
  426. href="../errorpad/style/style.css" type=text/css rel=stylesheet>
  427. <SCRIPT src=""></SCRIPT>
  428. <SCRIPT src=""></SCRIPT>
  429. <SCRIPT src=""></SCRIPT>
  430. <SCRIPT src=""></SCRIPT>
  431. <SCRIPT src=""></SCRIPT>
  432. <META content="MSHTML 6.00.2462.0" name=GENERATOR>
  433. <link rel="stylesheet" type="text/css" href="../css.css">
  434. </HEAD>
  435. <BODY bgColor=#ffffff text=#000000 onLoad="InitMyform()">
  436. <CENTER>
  437. <TABLE cellSpacing=0 cellPadding=0 width=650 border=0>
  438.   <TBODY>
  439.   <TR>
  440.           <TD><IMG height=27 src="../errorpad/images/test_pop_01.gif" width=102></TD>
  441.           <TD align=right><IMG height=27 src="../errorpad/images/test_pop_02.gif"
  442.       width=134></TD>
  443.         </TR></TBODY></TABLE>
  444.   <strong><font color="#3366FF" size="+2" face="黑体">精华学堂试卷查询</font></strong>
  445.   <!--begin test -->
  446.   <FORM action=Query_test.jsp method=post name=myform target="_self" id="myform">
  447.     <TABLE width=100% height="60" border=0 cellPadding=0 cellSpacing=0>
  448.       <TBODY>
  449.         <TR>
  450.           <TD height="75"  align=middle>
  451.             <table width="600" height="56" border="1" align="center" cellspacing="1" bordercolor="#799AE1" id="AutoNumber3" style="border-collapse: collapse">
  452.               <tr>
  453.                 <td width="100" height="52" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8">
  454.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  455.                     <tr>
  456.                       <td>年&nbsp;级:</td>
  457.                     </tr>
  458.                     <tr>
  459.                       <td height="24" nowrap> <select id=select30 name=Grade onclick="changegs(document.myform.Grade.options[document.myform.Grade.selectedIndex].value)" size="1">
  460.                           <option value="all" selected>-全 部-</option>
  461.                           <%Tools.showGradeOption(con,out);%>
  462.                         </select> </td>
  463.                     </tr>
  464.                   </table>
  465.                   &nbsp; </td>
  466.                 <td width="88" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8">
  467.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  468.                     <tr>
  469.                       <td nowrap>科&nbsp;目:</td>
  470.                     </tr>
  471.                     <tr>
  472.                       <td nowrap> <select id=select29 name=Subject onclick="changesk(document.myform.Subject.options[document.myform.Subject.selectedIndex].value)"
  473. size="1">
  474.                           <option value="all" selected>全 部</option>
  475.                         </select> </td>
  476.                     </tr>
  477.                   </table>
  478.                   <strong> </strong> </td>
  479.                 <td width="187" align="center" valign="baseline" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8">
  480.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  481.                     <tr>
  482.                       <td nowrap>知识点:</td>
  483.                     </tr>
  484.                     <tr>
  485.                       <td nowrap> <select name=KnowPoint id="select31">
  486.                           <option value="all" selected>----全 部----</option>
  487.                         </select> </td>
  488.                     </tr>
  489.                   </table></td>
  490.                 <td width="104" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8">
  491.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  492.                     <tr>
  493.                       <td nowrap>考试类型:</td>
  494.                     </tr>
  495.                     <tr>
  496.                       <td nowrap> <select name="testtype" id="select8">
  497.                           <option value="2" selected>单元测试</option>
  498.                           <option value="3">模拟测试 </option>
  499.                         </select> </td>
  500.                     </tr>
  501.                   </table></td>
  502.                 <td width="111" align="center" valign="baseline" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8"><input type="submit"  class="s03" name="Submit" value="查询"></td>
  503.               </tr>
  504.             </table>
  505.             </TD>
  506.         </TR>
  507.       </TBODY>
  508.     </TABLE>
  509. </FORM>
  510.  <%if (testSet.size()>0){
  511.  %>
  512.   <FORM method="post" name="errorpad" id="errorpad">
  513.     <TABLE width=600 border=1 align=center cellSpacing=1 bordercolor="#799AE1" style="border-collapse: collapse">
  514.       <TBODY>
  515.         <TR>
  516.           <td width="587" height=22 bgColor=#E3E3E3 class=l> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  517.               <tr>
  518.                 <td width="41" height="20" nowrap><div align="center"><strong>序号</strong></div></td>
  519.                 <td width="50" nowrap><div align="center"><strong>年级</strong></div></td>
  520.                 <td width="190" nowrap> <div align="left"><strong>考试名称</strong></div></td>
  521.                 <td width="149" nowrap><div align="center"><strong>考试发布时间</strong></div></td>
  522.                 <td width="78" nowrap><div align="center"><strong>考试类型</strong></div></td>
  523.                 <td width="84" nowrap><div align="center"><strong>总分</strong></div></td>
  524.               </tr>
  525.             </table></td>
  526.         </TR>
  527. <%          Iterator iter = testSet.listIterator();
  528.             int order=0;
  529.             while (iter.hasNext()) {
  530.                 Test t = (Test) iter.next();
  531.                 order++;
  532. %>
  533.             <TR>
  534.           <td width="587" height=22 class=l> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  535.               <tr>
  536.                 <td width="41" height="20" nowrap><div align="center"><%=order%>.</div></td>
  537.                 <td width="48" nowrap><div align="center"><%=t.grade%></div></td>
  538.                 <td width="190" nowrap> <div align="left"><%=t.name%></div></td>
  539.                 <td width="153" nowrap><div align="center"><%=t.time%></div></td>
  540.                 <td width="77" nowrap><div align="center"><%=t.testclass%></div></td>
  541.                 <td width="83" nowrap> <div align="center"><%=t.totalMark%></div></td>
  542.               </tr>
  543.             </table></td>
  544.         </TR>
  545. <%
  546.             }
  547. %>
  548.       </TBODY>
  549.     </TABLE>
  550.     <p>
  551. <input name="stu_id" type="hidden" id="studentid2" value="">
  552. </FORM>
  553. <%}
  554. else{
  555.    %>
  556.   <table width="77%" border="0" cellspacing="0" cellpadding="0">
  557.     <tr>
  558.       <td width="33%"><img src="images/pic_notice.gif" width="150" height="150"></td>
  559.       <td width="67%" align="center" valign="middle" nowrap>
  560.         <div align="center"><font size="+2">没有查询到满足条件的数据!</font></div></td>
  561.     </tr>
  562.   </table>
  563.    <%
  564. }
  565. %>
  566.   <!--end test -->
  567.   <!--begin bottom -->
  568.   <!--end bottom -->
  569. </CENTER>
  570. </BODY>
  571. </HTML>
  572. <%}
  573. catch(SQLException se){
  574.     out.println("<br>sql="+sql);
  575.     out.println("<br>"+se.toString());
  576. }
  577. catch(Exception e){
  578.     out.print(e.toString());
  579. }
  580. finally{
  581.     DBCon.dropConnection();
  582. }
  583. %>