xlcx.jsp
上传用户:qingzhou
上传日期:2013-04-21
资源大小:733k
文件大小:28k
源码类别:

破解

开发平台:

Java

  1. <%@ page import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*" %>
  2. <%@ page import ="gxhpjx.*" %>
  3. <%@ page import ="magick.*" %>
  4. <%@ page import ="magick.util.*" %>
  5. <%@ page import ="java.net.*" %>
  6. <%
  7. String appPath = "c:\tomcat5.0\webapps\hpjx\";//应用在Tomcat中的路径
  8. //Administrator为你当前要登录的用户名称,如果你当前登录的用户名为dodo,则需要将administrator改为dodo,你也可以确认一下下面这个目录是否确实在你的硬盘上存在
  9. String findPath = "c:\Documents and Settings\administrator\Local Settings\Temporary Internet Files\Content.IE5\";
  10. int times = 1;
  11. int finished = 0;//非结束
  12. int interval = 360000;//默认刷新时间
  13. if(session.getAttribute("times") != null){
  14. times = Integer.parseInt((String)session.getAttribute("times"))+1;
  15. }
  16. session.setAttribute("times",String.valueOf(times));//保存奇偶状态
  17. if(session.getAttribute("interval") != null){//刷新间隔
  18. interval = Integer.parseInt((String)session.getAttribute("interval"));
  19. }
  20. if(session.getAttribute("finished") != null){
  21. finished = Integer.parseInt((String)session.getAttribute("finished"));//用于判断是否达到查询范围末尾
  22. }
  23. if (request.getParameter("XXMC")!= null)//学校名称
  24. session.setAttribute("XXMC",request.getParameter("XXMC"));
  25. else {
  26. session.setAttribute("XXMC",session.getAttribute("XXMC"));
  27. }
  28. if (request.getParameter("BXLX")!= null)//办学类型
  29. session.setAttribute("BXLX",request.getParameter("BXLX"));
  30. else {
  31. session.setAttribute("BXLX",session.getAttribute("BXLX"));
  32. }
  33. if (request.getParameter("PYCC")!= null)//培养层次
  34. session.setAttribute("PYCC",request.getParameter("PYCC"));
  35. else {
  36. session.setAttribute("PYCC",session.getAttribute("PYCC"));
  37. }
  38. if (request.getParameter("RANGE_FROM")!= null)//起始范围
  39. session.setAttribute("RANGE_FROM",request.getParameter("RANGE_FROM"));
  40. else {
  41. session.setAttribute("RANGE_FROM",session.getAttribute("RANGE_FROM"));
  42. }
  43. if (request.getParameter("XM")!= null)//姓名
  44. session.setAttribute("XM",request.getParameter("XM"));
  45. else {
  46. session.setAttribute("XM",session.getAttribute("XM"));
  47. }
  48. if (request.getParameter("CYRS")!= null)//查阅人数
  49. session.setAttribute("CYRS",request.getParameter("CYRS"));
  50. else {
  51. session.setAttribute("CYRS",session.getAttribute("CYRS"));
  52. }
  53. if (request.getParameter("ZSBH")!= null)//证书编号
  54. session.setAttribute("ZSBH",request.getParameter("ZSBH"));
  55. else {
  56. session.setAttribute("ZSBH",session.getAttribute("ZSBH"));
  57. }
  58. %>
  59. <HTML>
  60. <HEAD>
  61. <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE, MUST-REVALIDATE">
  62. <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE">
  63. <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
  64. <META HTTP-EQUIV="EXPIRES" CONTENT="0">
  65. <meta http-equiv="refresh" content="<%
  66.     out.print(interval);//刷新时间
  67. %>; url=xlcx.jsp">
  68. <TITLE>中国高等教育学生信息网</TITLE>
  69. <link href=/theme/style.css rel="stylesheet" type="text/css">
  70. <style type="text/css">
  71. .input1 {
  72. background-color:#FFFFFF
  73. }
  74. .input2 {
  75. background-color:#FFFFFF
  76. }
  77. .sty {
  78. line-height:22px;
  79. font-family:"宋体"
  80. }
  81. </style>
  82. <script language="JavaScript">
  83. if (self!=top)
  84. {
  85. top.location=self.location;
  86. }
  87. </script>
  88. <style type="text/css">
  89. <!--
  90.   //A:link { text-decoration:color:red}
  91.   //A:visited {text-decoration:color:red}
  92.   //A:hover {text-decoration:}
  93. A.title1:link {
  94. FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none
  95. }
  96. A.title1:visited {
  97. FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none
  98. }
  99. A.title1:active {
  100. FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none
  101. }
  102. A.title1:hover {
  103. FONT-SIZE: 9pt; COLOR: red; TEXT-DECORATION: none
  104. }
  105. body {font-family:"宋体","serif";font-size:13pt}
  106. td   {font-family:"宋体","serif";font-size:10pt}
  107. p    {font-size:9pt;line-height:150%}
  108. .unnamed1 { COLOR: #8693a8; FONT-SIZE: 12px; TEXT-DECORATION: none
  109. }
  110. .unnamed2 { BORDER-BOTTOM: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid
  111. }
  112. .style8 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #353535; }
  113. .style9 {color: #353535}
  114. .style10 {
  115. font-size: 14pt;
  116. color: #FF0000;
  117. }
  118. .style12 {color: #FF00FF}
  119. -->
  120. </style>
  121. <script language="JavaScript">
  122. <!--
  123. function cxm()
  124. {}
  125. //-->
  126. </script>
  127. <script language="JavaScript" type="text/JavaScript">
  128.  function dealSubmit(){
  129. <% 
  130. if (times>=1){
  131. session.setAttribute("interval",String.valueOf(1));//刷新时间 1s
  132. out.print("document.formXueLi.action=self.location;");
  133. out.print("document.formXueLi.target='_self';");
  134. out.print("document.formXueLi.submit();");//自提交,计算验证码
  135. }
  136. %>
  137.  }
  138.  function autoSubmit(){
  139. <%
  140. if (times>=2){
  141. if (times%2==0){ //偶数次
  142. out.print("document.formXueLi.action='http://www.chsi.com.cn/xlcx/result.jsp';");
  143. out.print("document.formXueLi.target='_blank';");
  144. out.print("document.formXueLi.submit();");//提交给chsi网站
  145. }else{
  146. out.print("document.formXueLi.action=self.location;");
  147. out.print("document.formXueLi.target='_self';");
  148.     out.print("document.formXueLi.submit();");//自提交,计算验证码
  149.  }
  150. }
  151.  %>
  152.  } 
  153. function xlcx()
  154. {
  155. if(document.formXueLi.freeQuery.checked==true)
  156. {
  157. document.formXueLi.QueryID.disabled=true;
  158. document.formXueLi.QueryID.value="免费查询(数据正在上报中)";
  159. document.formXueLi.QueryID.className="input2"; 
  160.  
  161. }
  162. else
  163. {
  164. document.formXueLi.QueryID.disabled=false;
  165. document.formXueLi.QueryID.value="";
  166. document.formXueLi.QueryID.className="input1";
  167. }
  168. }
  169. //-->
  170. </script>
  171. </HEAD>
  172. <body topmargin="0" bottommargin="0" onLoad="autoSubmit();">
  173. <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="bgcolor1">
  174.   <!--DWLayoutTable-->
  175.   <tr>
  176.     <td colspan="3" valign="top">
  177. </td>
  178.   </tr>
  179.     <tr>
  180.     <td colspan="3" valign="top">
  181. </td>
  182.   </tr>
  183.   <tr>
  184.     <td width="170" rowspan="2" valign="top" height="100%">
  185. <TABLE class=bgcolor2 height="100%" cellSpacing=0 cellPadding=0 width=170 
  186. border=0>
  187. <TBODY>
  188. <TR>
  189.     <td width="560" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  190.       <!--DWLayoutTable-->
  191.       <tr>
  192.         <td width="550" height="335" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  193.             <!--DWLayoutTable-->
  194.             <tr>
  195.               <td width="540" height="24" class="channel_nv"></td>
  196.             </tr>
  197.             <tr>
  198.               <td height="1""></td>
  199.             </tr>
  200.             <tr>
  201.               <td height="67" align="center" valign="middle"><div align="center"><img src="xlcx.gif" width="245" height="14"></div></td>
  202.             </tr>
  203.             <tr>
  204.               <td height="1" align="center" valign="middle"></td>
  205.             </tr>
  206.             <tr>
  207.               <td height="160" valign="middle" class="news_content"><table width="406" border="0" align="center" cellpadding="0" cellspacing="0">
  208.                   <form method="POST" name="formXueLi" onSubmit="dealSubmit()">
  209.                     <tr>
  210.                       <td width="21%" height="26"><span class="style8">学校名称:</span></td>
  211.                       <td height="26"><select name="XXMC" size="1" id="xxmc" style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
  212.  <option value='10003' <% if(session.getAttribute("XXMC")!= null)
  213. if (session.getAttribute("XXMC").equals("10003")) out.print("selected");
  214. %>>清华大学</option>
  215.  <option value='10001' <% if(session.getAttribute("XXMC")!= null)
  216. if (session.getAttribute("XXMC").equals("10001")) out.print("selected");
  217. %>>北京大学</option>
  218.  <option value='10002' <% if(session.getAttribute("XXMC")!= null)
  219. if (session.getAttribute("XXMC").equals("10002")) out.print("selected");
  220. %>>中国人民大学</option>
  221.  <option value='10019' <% if(session.getAttribute("XXMC")!= null)
  222. if (session.getAttribute("XXMC").equals("10019")) out.print("selected");
  223. %>>中国农业大学</option>
  224.                         
  225.   <option value='10080' <% if(session.getAttribute("XXMC")!= null)
  226. if (session.getAttribute("XXMC").equals("10080")) out.print("selected");
  227. %>>河北工业大学</option>
  228.  <option value='10532' <% if(session.getAttribute("XXMC")!= null)
  229. if (session.getAttribute("XXMC").equals("10532")) out.print("selected");
  230. %>>湖南大学</option>
  231.  <option value='10112' <% if(session.getAttribute("XXMC")!= null)
  232. if (session.getAttribute("XXMC").equals("10112")) out.print("selected");
  233. %>>太原理工大学</option>
  234.  <option value='10533' <% if(session.getAttribute("XXMC")!= null)
  235. if (session.getAttribute("XXMC").equals("10533")) out.print("selected");
  236. %>>中南大学</option>
  237.  <option value='10542' <% if(session.getAttribute("XXMC")!= null)
  238. if (session.getAttribute("XXMC").equals("10542")) out.print("selected");
  239. %>>湖南师范大学</option>
  240.  <option value='10126' <% if(session.getAttribute("XXMC")!= null)
  241. if (session.getAttribute("XXMC").equals("10126")) out.print("selected");
  242. %>>内蒙古大学</option>
  243.  <option value='10140' <% if(session.getAttribute("XXMC")!= null)
  244. if (session.getAttribute("XXMC").equals("10140")) out.print("selected");
  245. %>>辽宁大学</option>
  246.  <option value='10217' <% if(session.getAttribute("XXMC")!= null)
  247. if (session.getAttribute("XXMC").equals("10217")) out.print("selected");
  248. %>>哈尔滨工程大学</option>
  249.  <option value='10559' <% if(session.getAttribute("XXMC")!= null)
  250. if (session.getAttribute("XXMC").equals("10559")) out.print("selected");
  251. %>>暨南大学</option>
  252.  <option value='10145' <% if(session.getAttribute("XXMC")!= null)
  253. if (session.getAttribute("XXMC").equals("10145")) out.print("selected");
  254. %>>东北大学</option>
  255.  <option value='10255' <% if(session.getAttribute("XXMC")!= null)
  256. if (session.getAttribute("XXMC").equals("10255")) out.print("selected");
  257. %>>东华大学</option>
  258.  <option value='10290' <% if(session.getAttribute("XXMC")!= null)
  259. if (session.getAttribute("XXMC").equals("10290")) out.print("selected");
  260. %>>中国矿业大学</option>
  261.  <option value='10294' <% if(session.getAttribute("XXMC")!= null)
  262. if (session.getAttribute("XXMC").equals("10294")) out.print("selected");
  263. %>>河海大学</option>
  264.  <option value='10295' <% if(session.getAttribute("XXMC")!= null)
  265. if (session.getAttribute("XXMC").equals("10295")) out.print("selected");
  266. %>>江南大学</option>
  267.  <option value='10357' <% if(session.getAttribute("XXMC")!= null)
  268. if (session.getAttribute("XXMC").equals("10357")) out.print("selected");
  269. %>>安徽大学</option>
  270.  <option value='10384' <% if(session.getAttribute("XXMC")!= null)
  271. if (session.getAttribute("XXMC").equals("10384")) out.print("selected");
  272. %>>厦门大学</option>
  273.  <option value='10425' <% if(session.getAttribute("XXMC")!= null)
  274. if (session.getAttribute("XXMC").equals("10425")) out.print("selected");
  275. %>>石油大学</option>
  276.  <option value='10497' <% if(session.getAttribute("XXMC")!= null)
  277. if (session.getAttribute("XXMC").equals("10497")) out.print("selected");
  278. %>>武汉理工大学</option>
  279.  <option value='10386' <% if(session.getAttribute("XXMC")!= null)
  280. if (session.getAttribute("XXMC").equals("10386")) out.print("selected");
  281. %>>福州大学</option>
  282.  <option value='10403' <% if(session.getAttribute("XXMC")!= null)
  283. if (session.getAttribute("XXMC").equals("10403")) out.print("selected");
  284. %>>南昌大学</option>
  285.  <option value='10027' <% if(session.getAttribute("XXMC")!= null)
  286. if (session.getAttribute("XXMC").equals("10027")) out.print("selected");
  287. %>>北京师范大学</option>
  288.  <option value='10030' <% if(session.getAttribute("XXMC")!= null)
  289. if (session.getAttribute("XXMC").equals("10030")) out.print("selected");
  290. %>>北京外国语大学</option>
  291.  <option value='10422' <% if(session.getAttribute("XXMC")!= null)
  292. if (session.getAttribute("XXMC").equals("10422")) out.print("selected");
  293. %>>山东大学</option>
  294.  <option value='10423' <% if(session.getAttribute("XXMC")!= null)
  295. if (session.getAttribute("XXMC").equals("10423")) out.print("selected");
  296. %>>青岛海洋大学</option>
  297.  <option value='10459' <% if(session.getAttribute("XXMC")!= null)
  298. if (session.getAttribute("XXMC").equals("10459")) out.print("selected");
  299. %>>郑州大学</option>
  300.  <option value='10487' <% if(session.getAttribute("XXMC")!= null)
  301. if (session.getAttribute("XXMC").equals("10487")) out.print("selected");
  302. %>>华中科技大学</option>
  303.  <option value='10013' <% if(session.getAttribute("XXMC")!= null)
  304. if (session.getAttribute("XXMC").equals("10013")) out.print("selected");
  305. %>>北京邮电大学</option>
  306.  <option value='10755' <% if(session.getAttribute("XXMC")!= null)
  307. if (session.getAttribute("XXMC").equals("10755")) out.print("selected");
  308. %>>新疆大学</option>
  309.  <option value='10141' <% if(session.getAttribute("XXMC")!= null)
  310. if (session.getAttribute("XXMC").equals("10141")) out.print("selected");
  311. %>>大连理工大学</option>
  312.  <option value='10673' <% if(session.getAttribute("XXMC")!= null)
  313. if (session.getAttribute("XXMC").equals("10673")) out.print("selected");
  314. %>>云南大学</option>
  315.  <option value='10255' <% if(session.getAttribute("XXMC")!= null)
  316. if (session.getAttribute("XXMC").equals("10255")) out.print("selected");
  317. %>>东华大学</option>
  318.  <option value='10707' <% if(session.getAttribute("XXMC")!= null)
  319. if (session.getAttribute("XXMC").equals("10707")) out.print("selected");
  320. %>>长安大学</option>
  321.  <option value='10284' <% if(session.getAttribute("XXMC")!= null)
  322. if (session.getAttribute("XXMC").equals("10284")) out.print("selected");
  323. %>>南京大学</option>
  324.  <option value='10290' <% if(session.getAttribute("XXMC")!= null)
  325. if (session.getAttribute("XXMC").equals("10290")) out.print("selected");
  326. %>>中国矿业大学</option>
  327.  <option value='10294' <% if(session.getAttribute("XXMC")!= null)
  328. if (session.getAttribute("XXMC").equals("10294")) out.print("selected");
  329. %>>河海大学</option>
  330.  <option value='10184' <% if(session.getAttribute("XXMC")!= null)
  331. if (session.getAttribute("XXMC").equals("10184")) out.print("selected");
  332. %>>延边大学</option>
  333.  <option value='10532' <% if(session.getAttribute("XXMC")!= null)
  334. if (session.getAttribute("XXMC").equals("10532")) out.print("selected");
  335. %>>湖南大学</option>
  336.  <option value='10593' <% if(session.getAttribute("XXMC")!= null)
  337. if (session.getAttribute("XXMC").equals("10593")) out.print("selected");
  338. %>>广西大学</option>
  339.  <option value='10611' <% if(session.getAttribute("XXMC")!= null)
  340. if (session.getAttribute("XXMC").equals("10611")) out.print("selected");
  341. %>>重庆大学</option>
  342.  <option value='10007' <% if(session.getAttribute("XXMC")!= null)
  343. if (session.getAttribute("XXMC").equals("10007")) out.print("selected");
  344. %>>北京理工大学</option>
  345.  <option value='10008' <% if(session.getAttribute("XXMC")!= null)
  346. if (session.getAttribute("XXMC").equals("10008")) out.print("selected");
  347. %>>北京科技大学</option>
  348.  <option value='10459' <% if(session.getAttribute("XXMC")!= null)
  349. if (session.getAttribute("XXMC").equals("10459")) out.print("selected");
  350. %>>郑州大学</option>
  351.                         </select><span class="style10">*</span> </td>
  352.                       <td width="2%" height="26">&nbsp;</td>
  353.                       <td width="4%" height="26">&nbsp;</td>
  354.                     </tr>
  355.                     <tr>
  356.                       <td height="26"><span class="style9">办学类型:</span></td>
  357.                       <td height="26"><select name="BXLX" size="1" id="BXLX"   style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
  358.                         <option value="1" <% if(session.getAttribute("BXLX")!= null)
  359. if (session.getAttribute("BXLX").equals("1")) out.print("selected");
  360. %>>普通高等教育</option>
  361.                         <option value="2" <% if(session.getAttribute("BXLX")!= null)
  362. if (session.getAttribute("BXLX").equals("2")) out.print("selected");
  363. %>>成人高等教育</option>
  364.                         <option value="9" <% if(session.getAttribute("BXLX")!= null)
  365. if (session.getAttribute("BXLX").equals("9")) out.print("selected");
  366. %>>外国留学生教育</option>
  367.                                                                                                               </select>
  368.                         <span class="style10">*</span></td>
  369.                       <td height="26">&nbsp;</td>
  370.                       <td height="26">&nbsp;</td>
  371.                     </tr>
  372.                     <tr>
  373.                       <td height="26"><span class="style9">毕业年份:</span></td>
  374.                       <td height="26"><select name="BYNF" size="1"   style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
  375.                         <option value="2005">2005</option>
  376.                                             </select>
  377.                         <span class="style10">*</span></td>
  378.                       <td height="26">&nbsp;</td>
  379.                       <td height="26">&nbsp;</td>
  380.                     </tr>
  381.                     <tr>
  382.                       <td height="26"><span class="style9">培养层次:</span></td>
  383.                       <td height="26"><select name="PYCC" size="1"   style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">                       
  384.                         <option value="05"  <% if(session.getAttribute("PYCC")!= null)
  385. if (session.getAttribute("PYCC").equals("05")) out.print("selected");
  386. %>>本科生</option>
  387.                         <option value="06"  <% if(session.getAttribute("PYCC")!= null)
  388. if (session.getAttribute("PYCC").equals("06")) out.print("selected");
  389. %>>专科生</option>
  390.     <option value="02"  <% if(session.getAttribute("PYCC")!= null)
  391. if (session.getAttribute("PYCC").equals("02")) out.print("selected");
  392. %>>硕士研究生</option>
  393. <option value="01" <% if(session.getAttribute("PYCC")!= null)
  394. if (session.getAttribute("PYCC").equals("01")) out.print("selected");
  395. %>>博士研究生</option></select>
  396.                         <span class="style10">*</span></td>
  397.                       <td height="26">&nbsp;</td>
  398.                       <td height="26">&nbsp;</td>
  399.                     </tr>
  400.                     <tr>
  401.                       <td height="26"><span class="style9">初始编号:</span></td>
  402.                       <td height="26"><input name="RANGE_FROM" type="text" class="input"
  403.   value="<% if(session.getAttribute("RANGE_FROM") != null)
  404. out.print(session.getAttribute("RANGE_FROM"));
  405. else out.print("000001");
  406. %>" size="6" maxlength="6">
  407.                         <span class="style10">*</span>(仅后6位,如000001)</td>
  408.                       <td height="26">&nbsp;</td>
  409.                       <td height="26">&nbsp;</td>
  410.                     </tr>
  411.                     <tr>
  412.                       <td height="26">查阅人数:</td>
  413.                       <td height="26"><select name="CYRS" size="1"   style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
  414.                          <option value="10" <% if(session.getAttribute("CYRS")!= null)
  415. if (session.getAttribute("CYRS").equals("10")) out.print("selected");
  416. %>>10人</option>
  417.  <option value="300" <% if(session.getAttribute("CYRS")!= null)
  418. if (session.getAttribute("CYRS").equals("300")) out.print("selected");
  419. %>>300人</option>
  420.                          <option value="500" <% if(session.getAttribute("CYRS")!= null)
  421. if (session.getAttribute("CYRS").equals("500")) out.print("selected");
  422. %>>500人</option>
  423.                          <option value="1000" <% if(session.getAttribute("CYRS")!= null)
  424. if (session.getAttribute("CYRS").equals("1000")) out.print("selected");
  425. %>>1000人</option>
  426.                          <option value="5000" <% if(session.getAttribute("CYRS")!= null)
  427. if (session.getAttribute("CYRS").equals("5000")) out.print("selected");
  428. %>>5000人</option>
  429.                          <option value="10000" <% if(session.getAttribute("CYRS")!= null)
  430. if (session.getAttribute("CYRS").equals("10000")) out.print("selected");
  431. %>>10000人</option>
  432.                       </select>
  433.                         <span class="style10">*</span></td>
  434.                       <td height="26">&nbsp;</td>
  435.                       <td height="26">&nbsp;</td>
  436.                     </tr>
  437.                     <tr>
  438.                       <td height="26"><span class="style8">学生姓名:&nbsp;&nbsp;</span></td>
  439.                       <td height="26"><input name="XM" maxlength="22" type="text" size="22" class="input"
  440.   value="<% if(session.getAttribute("XM") != null)
  441. out.print(session.getAttribute("XM"));  
  442. %>">
  443.                         <span class="style10">*</span>(过滤姓名,如陈)</td>
  444.                       <td height="26">&nbsp;</td>
  445.                       <td height="26">&nbsp;</td>
  446.                     </tr>
  447.                     <tr>
  448.                       <td height="26"><span class="style8">证书编号:&nbsp;&nbsp;</span></td>
  449.                       <td height="26">
  450.   <script>
  451.   document.write("<input name='ZSBH' maxlength='22' bgcolor='#C0C0C0' type='text' size='22'  value='")
  452.   document.write(document.formXueLi.XXMC.value)
  453.      document.write(document.formXueLi.BXLX.value)
  454.   document.write(document.formXueLi.BYNF.value)
  455.   document.write(document.formXueLi.PYCC.value)
  456.        <%
  457.     //遍历证书编号及姓名 如:陈妍 10703 1 2005 06 000995 陈园园 123621200506002132
  458. long certno_start = 8000001;//编号范围起始值,首位无效8000390
  459. if(session.getAttribute("RANGE_FROM") != null){
  460. certno_start =  8000000 + Long.parseLong((String)session.getAttribute("RANGE_FROM"));
  461. }
  462. long certno_p = certno_start;//编号默认指针
  463. if(session.getAttribute("certno_p") != null){
  464. int delta = 0;
  465. if (times%2 ==0){
  466. delta = 1;//偶数次时加1
  467. }
  468. certno_p = Long.parseLong((String)session.getAttribute("certno_p"))+delta;
  469. session.setAttribute("finished",String.valueOf(certno_p-certno_start));//返回当前翻阅数
  470. if(session.getAttribute("CYRS")!= null){
  471. if (certno_p >=  Long.parseLong((String)session.getAttribute("CYRS")) + certno_start) {
  472. session.setAttribute("interval","360000");//无穷大
  473. }
  474. }
  475. }
  476. String p = String.valueOf(certno_p);
  477. session.setAttribute("certno_p",p);//保存当前指针
  478. out.print("document.write("" + p.substring(1) + "")");//去掉首位,输出编号
  479.   %>
  480.      document.write("'>")
  481.   </script>   </td>
  482.                       <td height="26">&nbsp;</td>
  483.                       <td height="26">&nbsp;</td>
  484.                     </tr>
  485.                     
  486.                     <tr>
  487.                       <td height="26"><span class="style8">查询码:&nbsp;&nbsp;</span></td>
  488.                       <td height="26" width="73%"><input name="QueryID" maxlength="15" type="text" size="8" class="input" disabled=true value="数据已上报">
  489.                           <input name="freeQuery" type="checkbox" checked value="1" style="border:#FFFFFF solid 0px;height:16px" onClick="xlcx();">
  490.                           <span class="style12"><font size=2>应届</font></span></td>
  491.                     </tr>
  492.                     <tr>
  493.                       <td height="26"><span class="style8">验证码:</span></td>
  494.                       <td height="26"><input name="CHKNUM" value="<%
  495.     double r = Math.random()*10000;//随机数
  496. if (times%2==0){
  497. //r = Double.parseDouble((String)session.getAttribute("r"));//取出随机数
  498. VerifiDecoder vd = new VerifiDecoder();
  499. String templatePath = appPath + "template\";//本地存储路径
  500. String fileInCache = "ValidatorIMG";//要查找的验证码图片文件名,不带后缀:ValidatorIMG
  501. //验证码在缓冲中的文件名,是由系统动态指定的,如:ValidatorIMG[2].jpg
  502. String findFileName = null;
  503. String inputPath = appPath + "temp\";
  504. String inputFileName = "ValidatorIMG_"+ r +".jpg";
  505. String inputPathFile = inputPath + inputFileName;
  506. String[] res = vd.findFile(findPath,fileInCache,inputPathFile);//查找并转移缓冲中验证码图片
  507. findPath = findPath + res[0] + "\" + "\";//首位是Content.IE5中存储有验证码图片的子目录名
  508. findFileName = res[1];
  509. //后台处理验证码
  510. //URL url = new URL("http://www.chsi.com.cn/ValidatorIMG.JPG?ID=" + r);
  511. out.print(vd.facade(templatePath,inputPath,inputFileName));
  512. }else {
  513. out.print("检测中…");
  514. }
  515.   %>" type="text" id="CHKNUM" size="4" maxlength="4">
  516.                         &nbsp;&nbsp;
  517.                         <%
  518.    if (times%2==1){
  519. //r = Math.random()*10000;//奇数次时产生随机数
  520.                     out.print("<img border=0 align=center src=http://www.chsi.com.cn/ValidatorIMG.JPG?ID=" + r + ">");
  521. }else {
  522. //out.print("<img border=0 align=center src="temp/ValidatorIMG_"+ r +".jpg">");
  523. }
  524.   %>                      </td>
  525.                     </tr>
  526.                     <tr>
  527.                       <td height="30" colspan="2"><font color=#CC9900 size =2>
  528.                         <%out.print("<br>编号:"+ session.getAttribute("ZSBH") + "&nbsp;已翻阅:"+finished+"&nbsp;刷新时间:"+interval+"秒");%>
  529.                       </font></td>
  530.                     </tr>
  531.                     <tr>
  532.                       <td height="30" colspan="2"><span class="style12">注意: </span><span class="style10">*</span><span class="style12">为可修改项</span></td>
  533.                       </tr>
  534.                     <tr>
  535.                       <td height="39">&nbsp;</td>
  536.                       <td height="39" align="center" valign="bottom">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  537.                         <input name="Submit1" type="submit" class="button1" <%if(times > 2) out.print("disabled=true"); %> value="开 始">                        &nbsp;&nbsp;&nbsp;</td>
  538.                     </tr>
  539.                     <!--用JavaScript写隐藏域,在后续页面判断是否支持JavaScript-->
  540.                     <script language="javascript">document.write("<input type=hidden name=javascript value=9746>");</script>
  541.                   </form>
  542.               </table></td>
  543.             </tr>
  544.             <tr>
  545.               <td height="1" align="left" valign="top" class="news_source"><!--DWLayoutEmptyCell-->&nbsp;</td>
  546.             </tr>
  547.             <tr>
  548.               <td height="110" class="sty"></td>
  549.             </tr>
  550.             <tr>
  551.               <td height="340" valign="middle"></td>
  552.               <td width="20"></td>
  553.             </tr>
  554.         </table></td>
  555.       </tr>
  556.       <tr>
  557.         <td height="28"></td>
  558.         <td>&nbsp;</td>
  559.       </tr>
  560.     </table>
  561.     
  562. </body>
  563.  
  564. </HTML>