xlcx.jsp
上传用户:qingzhou
上传日期:2013-04-21
资源大小:733k
文件大小:28k
- <%@ page import="java.awt.*,java.awt.image.*,java.util.*,javax.imageio.*" %>
- <%@ page import ="gxhpjx.*" %>
- <%@ page import ="magick.*" %>
- <%@ page import ="magick.util.*" %>
- <%@ page import ="java.net.*" %>
- <%
- String appPath = "c:\tomcat5.0\webapps\hpjx\";//应用在Tomcat中的路径
- //Administrator为你当前要登录的用户名称,如果你当前登录的用户名为dodo,则需要将administrator改为dodo,你也可以确认一下下面这个目录是否确实在你的硬盘上存在
- String findPath = "c:\Documents and Settings\administrator\Local Settings\Temporary Internet Files\Content.IE5\";
- int times = 1;
- int finished = 0;//非结束
- int interval = 360000;//默认刷新时间
- if(session.getAttribute("times") != null){
- times = Integer.parseInt((String)session.getAttribute("times"))+1;
- }
- session.setAttribute("times",String.valueOf(times));//保存奇偶状态
- if(session.getAttribute("interval") != null){//刷新间隔
- interval = Integer.parseInt((String)session.getAttribute("interval"));
- }
- if(session.getAttribute("finished") != null){
- finished = Integer.parseInt((String)session.getAttribute("finished"));//用于判断是否达到查询范围末尾
- }
- if (request.getParameter("XXMC")!= null)//学校名称
- session.setAttribute("XXMC",request.getParameter("XXMC"));
- else {
- session.setAttribute("XXMC",session.getAttribute("XXMC"));
- }
- if (request.getParameter("BXLX")!= null)//办学类型
- session.setAttribute("BXLX",request.getParameter("BXLX"));
- else {
- session.setAttribute("BXLX",session.getAttribute("BXLX"));
- }
- if (request.getParameter("PYCC")!= null)//培养层次
- session.setAttribute("PYCC",request.getParameter("PYCC"));
- else {
- session.setAttribute("PYCC",session.getAttribute("PYCC"));
- }
- if (request.getParameter("RANGE_FROM")!= null)//起始范围
- session.setAttribute("RANGE_FROM",request.getParameter("RANGE_FROM"));
- else {
- session.setAttribute("RANGE_FROM",session.getAttribute("RANGE_FROM"));
- }
- if (request.getParameter("XM")!= null)//姓名
- session.setAttribute("XM",request.getParameter("XM"));
- else {
- session.setAttribute("XM",session.getAttribute("XM"));
- }
-
- if (request.getParameter("CYRS")!= null)//查阅人数
- session.setAttribute("CYRS",request.getParameter("CYRS"));
- else {
- session.setAttribute("CYRS",session.getAttribute("CYRS"));
- }
- if (request.getParameter("ZSBH")!= null)//证书编号
- session.setAttribute("ZSBH",request.getParameter("ZSBH"));
- else {
- session.setAttribute("ZSBH",session.getAttribute("ZSBH"));
- }
- %>
- <HTML>
- <HEAD>
- <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE, MUST-REVALIDATE">
- <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE">
- <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
- <META HTTP-EQUIV="EXPIRES" CONTENT="0">
- <meta http-equiv="refresh" content="<%
- out.print(interval);//刷新时间
- %>; url=xlcx.jsp">
- <TITLE>中国高等教育学生信息网</TITLE>
- <link href=/theme/style.css rel="stylesheet" type="text/css">
- <style type="text/css">
- .input1 {
- background-color:#FFFFFF
- }
- .input2 {
- background-color:#FFFFFF
- }
- .sty {
- line-height:22px;
- font-family:"宋体"
- }
- </style>
- <script language="JavaScript">
- if (self!=top)
- {
- top.location=self.location;
- }
- </script>
- <style type="text/css">
- <!--
- //A:link { text-decoration:color:red}
- //A:visited {text-decoration:color:red}
- //A:hover {text-decoration:}
- A.title1:link {
- FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none
- }
- A.title1:visited {
- FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none
- }
- A.title1:active {
- FONT-SIZE: 9pt; COLOR: #000000; TEXT-DECORATION: none
- }
- A.title1:hover {
- FONT-SIZE: 9pt; COLOR: red; TEXT-DECORATION: none
- }
-
- body {font-family:"宋体","serif";font-size:13pt}
- td {font-family:"宋体","serif";font-size:10pt}
- p {font-size:9pt;line-height:150%}
- .unnamed1 { COLOR: #8693a8; FONT-SIZE: 12px; TEXT-DECORATION: none
- }
- .unnamed2 { BORDER-BOTTOM: #666666 1px solid; BORDER-LEFT: #666666 1px solid; BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid
- }
- .style8 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #353535; }
- .style9 {color: #353535}
- .style10 {
- font-size: 14pt;
- color: #FF0000;
- }
- .style12 {color: #FF00FF}
- -->
- </style>
- <script language="JavaScript">
- <!--
- function cxm()
- {}
- //-->
- </script>
- <script language="JavaScript" type="text/JavaScript">
- function dealSubmit(){
- <%
- if (times>=1){
- session.setAttribute("interval",String.valueOf(1));//刷新时间 1s
- out.print("document.formXueLi.action=self.location;");
- out.print("document.formXueLi.target='_self';");
- out.print("document.formXueLi.submit();");//自提交,计算验证码
- }
- %>
- }
- function autoSubmit(){
- <%
- if (times>=2){
- if (times%2==0){ //偶数次
- out.print("document.formXueLi.action='http://www.chsi.com.cn/xlcx/result.jsp';");
- out.print("document.formXueLi.target='_blank';");
- out.print("document.formXueLi.submit();");//提交给chsi网站
- }else{
- out.print("document.formXueLi.action=self.location;");
- out.print("document.formXueLi.target='_self';");
- out.print("document.formXueLi.submit();");//自提交,计算验证码
- }
- }
- %>
- }
- function xlcx()
- {
- if(document.formXueLi.freeQuery.checked==true)
- {
- document.formXueLi.QueryID.disabled=true;
- document.formXueLi.QueryID.value="免费查询(数据正在上报中)";
- document.formXueLi.QueryID.className="input2";
-
- }
- else
- {
- document.formXueLi.QueryID.disabled=false;
- document.formXueLi.QueryID.value="";
- document.formXueLi.QueryID.className="input1";
- }
- }
- //-->
- </script>
- </HEAD>
- <body topmargin="0" bottommargin="0" onLoad="autoSubmit();">
-
- <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="bgcolor1">
- <!--DWLayoutTable-->
- <tr>
- <td colspan="3" valign="top">
- </td>
- </tr>
- <tr>
- <td colspan="3" valign="top">
- </td>
- </tr>
- <tr>
- <td width="170" rowspan="2" valign="top" height="100%">
- <TABLE class=bgcolor2 height="100%" cellSpacing=0 cellPadding=0 width=170
- border=0>
- <TBODY>
- <TR>
- <td width="560" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
- <!--DWLayoutTable-->
- <tr>
- <td width="550" height="335" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <!--DWLayoutTable-->
- <tr>
- <td width="540" height="24" class="channel_nv"></td>
- </tr>
- <tr>
- <td height="1""></td>
- </tr>
- <tr>
- <td height="67" align="center" valign="middle"><div align="center"><img src="xlcx.gif" width="245" height="14"></div></td>
- </tr>
- <tr>
- <td height="1" align="center" valign="middle"></td>
- </tr>
- <tr>
- <td height="160" valign="middle" class="news_content"><table width="406" border="0" align="center" cellpadding="0" cellspacing="0">
- <form method="POST" name="formXueLi" onSubmit="dealSubmit()">
- <tr>
- <td width="21%" height="26"><span class="style8">学校名称:</span></td>
- <td height="26"><select name="XXMC" size="1" id="xxmc" style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
- <option value='10003' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10003")) out.print("selected");
- %>>清华大学</option>
- <option value='10001' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10001")) out.print("selected");
- %>>北京大学</option>
-
- <option value='10002' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10002")) out.print("selected");
- %>>中国人民大学</option>
- <option value='10019' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10019")) out.print("selected");
- %>>中国农业大学</option>
-
- <option value='10080' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10080")) out.print("selected");
- %>>河北工业大学</option>
- <option value='10532' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10532")) out.print("selected");
- %>>湖南大学</option>
- <option value='10112' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10112")) out.print("selected");
- %>>太原理工大学</option>
- <option value='10533' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10533")) out.print("selected");
- %>>中南大学</option>
- <option value='10542' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10542")) out.print("selected");
- %>>湖南师范大学</option>
- <option value='10126' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10126")) out.print("selected");
- %>>内蒙古大学</option>
- <option value='10140' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10140")) out.print("selected");
- %>>辽宁大学</option>
- <option value='10217' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10217")) out.print("selected");
- %>>哈尔滨工程大学</option>
- <option value='10559' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10559")) out.print("selected");
- %>>暨南大学</option>
- <option value='10145' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10145")) out.print("selected");
- %>>东北大学</option>
- <option value='10255' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10255")) out.print("selected");
- %>>东华大学</option>
- <option value='10290' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10290")) out.print("selected");
- %>>中国矿业大学</option>
- <option value='10294' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10294")) out.print("selected");
- %>>河海大学</option>
- <option value='10295' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10295")) out.print("selected");
- %>>江南大学</option>
- <option value='10357' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10357")) out.print("selected");
- %>>安徽大学</option>
- <option value='10384' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10384")) out.print("selected");
- %>>厦门大学</option>
- <option value='10425' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10425")) out.print("selected");
- %>>石油大学</option>
- <option value='10497' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10497")) out.print("selected");
- %>>武汉理工大学</option>
- <option value='10386' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10386")) out.print("selected");
- %>>福州大学</option>
- <option value='10403' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10403")) out.print("selected");
- %>>南昌大学</option>
- <option value='10027' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10027")) out.print("selected");
- %>>北京师范大学</option>
- <option value='10030' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10030")) out.print("selected");
- %>>北京外国语大学</option>
- <option value='10422' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10422")) out.print("selected");
- %>>山东大学</option>
- <option value='10423' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10423")) out.print("selected");
- %>>青岛海洋大学</option>
- <option value='10459' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10459")) out.print("selected");
- %>>郑州大学</option>
- <option value='10487' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10487")) out.print("selected");
- %>>华中科技大学</option>
- <option value='10013' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10013")) out.print("selected");
- %>>北京邮电大学</option>
- <option value='10755' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10755")) out.print("selected");
- %>>新疆大学</option>
- <option value='10141' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10141")) out.print("selected");
- %>>大连理工大学</option>
- <option value='10673' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10673")) out.print("selected");
- %>>云南大学</option>
- <option value='10255' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10255")) out.print("selected");
- %>>东华大学</option>
- <option value='10707' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10707")) out.print("selected");
- %>>长安大学</option>
- <option value='10284' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10284")) out.print("selected");
- %>>南京大学</option>
- <option value='10290' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10290")) out.print("selected");
- %>>中国矿业大学</option>
- <option value='10294' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10294")) out.print("selected");
- %>>河海大学</option>
- <option value='10184' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10184")) out.print("selected");
- %>>延边大学</option>
- <option value='10532' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10532")) out.print("selected");
- %>>湖南大学</option>
- <option value='10593' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10593")) out.print("selected");
- %>>广西大学</option>
- <option value='10611' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10611")) out.print("selected");
- %>>重庆大学</option>
- <option value='10007' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10007")) out.print("selected");
- %>>北京理工大学</option>
- <option value='10008' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10008")) out.print("selected");
- %>>北京科技大学</option>
- <option value='10459' <% if(session.getAttribute("XXMC")!= null)
- if (session.getAttribute("XXMC").equals("10459")) out.print("selected");
- %>>郑州大学</option>
- </select><span class="style10">*</span> </td>
- <td width="2%" height="26"> </td>
- <td width="4%" height="26"> </td>
- </tr>
- <tr>
- <td height="26"><span class="style9">办学类型:</span></td>
- <td height="26"><select name="BXLX" size="1" id="BXLX" style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
- <option value="1" <% if(session.getAttribute("BXLX")!= null)
- if (session.getAttribute("BXLX").equals("1")) out.print("selected");
- %>>普通高等教育</option>
- <option value="2" <% if(session.getAttribute("BXLX")!= null)
- if (session.getAttribute("BXLX").equals("2")) out.print("selected");
- %>>成人高等教育</option>
- <option value="9" <% if(session.getAttribute("BXLX")!= null)
- if (session.getAttribute("BXLX").equals("9")) out.print("selected");
- %>>外国留学生教育</option>
- </select>
- <span class="style10">*</span></td>
- <td height="26"> </td>
- <td height="26"> </td>
- </tr>
- <tr>
- <td height="26"><span class="style9">毕业年份:</span></td>
- <td height="26"><select name="BYNF" size="1" style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
- <option value="2005">2005</option>
- </select>
- <span class="style10">*</span></td>
- <td height="26"> </td>
- <td height="26"> </td>
- </tr>
- <tr>
- <td height="26"><span class="style9">培养层次:</span></td>
- <td height="26"><select name="PYCC" size="1" style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
- <option value="05" <% if(session.getAttribute("PYCC")!= null)
- if (session.getAttribute("PYCC").equals("05")) out.print("selected");
- %>>本科生</option>
- <option value="06" <% if(session.getAttribute("PYCC")!= null)
- if (session.getAttribute("PYCC").equals("06")) out.print("selected");
- %>>专科生</option>
- <option value="02" <% if(session.getAttribute("PYCC")!= null)
- if (session.getAttribute("PYCC").equals("02")) out.print("selected");
- %>>硕士研究生</option>
- <option value="01" <% if(session.getAttribute("PYCC")!= null)
- if (session.getAttribute("PYCC").equals("01")) out.print("selected");
- %>>博士研究生</option></select>
- <span class="style10">*</span></td>
- <td height="26"> </td>
- <td height="26"> </td>
- </tr>
- <tr>
- <td height="26"><span class="style9">初始编号:</span></td>
- <td height="26"><input name="RANGE_FROM" type="text" class="input"
- value="<% if(session.getAttribute("RANGE_FROM") != null)
- out.print(session.getAttribute("RANGE_FROM"));
- else out.print("000001");
- %>" size="6" maxlength="6">
- <span class="style10">*</span>(仅后6位,如000001)</td>
- <td height="26"> </td>
- <td height="26"> </td>
- </tr>
- <tr>
- <td height="26">查阅人数:</td>
- <td height="26"><select name="CYRS" size="1" style="BACKGROUND-COLOR: #d9dcff; COLOR: rgb(0,0,128); FONT-SIZE: 9pt">
- <option value="10" <% if(session.getAttribute("CYRS")!= null)
- if (session.getAttribute("CYRS").equals("10")) out.print("selected");
- %>>10人</option>
- <option value="300" <% if(session.getAttribute("CYRS")!= null)
- if (session.getAttribute("CYRS").equals("300")) out.print("selected");
- %>>300人</option>
- <option value="500" <% if(session.getAttribute("CYRS")!= null)
- if (session.getAttribute("CYRS").equals("500")) out.print("selected");
- %>>500人</option>
- <option value="1000" <% if(session.getAttribute("CYRS")!= null)
- if (session.getAttribute("CYRS").equals("1000")) out.print("selected");
- %>>1000人</option>
- <option value="5000" <% if(session.getAttribute("CYRS")!= null)
- if (session.getAttribute("CYRS").equals("5000")) out.print("selected");
- %>>5000人</option>
- <option value="10000" <% if(session.getAttribute("CYRS")!= null)
- if (session.getAttribute("CYRS").equals("10000")) out.print("selected");
- %>>10000人</option>
- </select>
- <span class="style10">*</span></td>
- <td height="26"> </td>
- <td height="26"> </td>
- </tr>
- <tr>
- <td height="26"><span class="style8">学生姓名: </span></td>
- <td height="26"><input name="XM" maxlength="22" type="text" size="22" class="input"
- value="<% if(session.getAttribute("XM") != null)
- out.print(session.getAttribute("XM"));
- %>">
- <span class="style10">*</span>(过滤姓名,如陈)</td>
- <td height="26"> </td>
- <td height="26"> </td>
- </tr>
- <tr>
- <td height="26"><span class="style8">证书编号: </span></td>
- <td height="26">
- <script>
- document.write("<input name='ZSBH' maxlength='22' bgcolor='#C0C0C0' type='text' size='22' value='")
- document.write(document.formXueLi.XXMC.value)
- document.write(document.formXueLi.BXLX.value)
- document.write(document.formXueLi.BYNF.value)
- document.write(document.formXueLi.PYCC.value)
- <%
- //遍历证书编号及姓名 如:陈妍 10703 1 2005 06 000995 陈园园 123621200506002132
- long certno_start = 8000001;//编号范围起始值,首位无效8000390
- if(session.getAttribute("RANGE_FROM") != null){
- certno_start = 8000000 + Long.parseLong((String)session.getAttribute("RANGE_FROM"));
- }
- long certno_p = certno_start;//编号默认指针
- if(session.getAttribute("certno_p") != null){
- int delta = 0;
- if (times%2 ==0){
- delta = 1;//偶数次时加1
- }
- certno_p = Long.parseLong((String)session.getAttribute("certno_p"))+delta;
-
- session.setAttribute("finished",String.valueOf(certno_p-certno_start));//返回当前翻阅数
- if(session.getAttribute("CYRS")!= null){
- if (certno_p >= Long.parseLong((String)session.getAttribute("CYRS")) + certno_start) {
- session.setAttribute("interval","360000");//无穷大
- }
- }
- }
- String p = String.valueOf(certno_p);
- session.setAttribute("certno_p",p);//保存当前指针
- out.print("document.write("" + p.substring(1) + "")");//去掉首位,输出编号
- %>
- document.write("'>")
- </script> </td>
- <td height="26"> </td>
- <td height="26"> </td>
- </tr>
-
- <tr>
- <td height="26"><span class="style8">查询码: </span></td>
- <td height="26" width="73%"><input name="QueryID" maxlength="15" type="text" size="8" class="input" disabled=true value="数据已上报">
- <input name="freeQuery" type="checkbox" checked value="1" style="border:#FFFFFF solid 0px;height:16px" onClick="xlcx();">
- <span class="style12"><font size=2>应届</font></span></td>
- </tr>
- <tr>
- <td height="26"><span class="style8">验证码:</span></td>
- <td height="26"><input name="CHKNUM" value="<%
- double r = Math.random()*10000;//随机数
- if (times%2==0){
- //r = Double.parseDouble((String)session.getAttribute("r"));//取出随机数
- VerifiDecoder vd = new VerifiDecoder();
- String templatePath = appPath + "template\";//本地存储路径
- String fileInCache = "ValidatorIMG";//要查找的验证码图片文件名,不带后缀:ValidatorIMG
-
- //验证码在缓冲中的文件名,是由系统动态指定的,如:ValidatorIMG[2].jpg
- String findFileName = null;
- String inputPath = appPath + "temp\";
- String inputFileName = "ValidatorIMG_"+ r +".jpg";
- String inputPathFile = inputPath + inputFileName;
- String[] res = vd.findFile(findPath,fileInCache,inputPathFile);//查找并转移缓冲中验证码图片
- findPath = findPath + res[0] + "\" + "\";//首位是Content.IE5中存储有验证码图片的子目录名
- findFileName = res[1];
-
- //后台处理验证码
- //URL url = new URL("http://www.chsi.com.cn/ValidatorIMG.JPG?ID=" + r);
- out.print(vd.facade(templatePath,inputPath,inputFileName));
- }else {
- out.print("检测中…");
- }
- %>" type="text" id="CHKNUM" size="4" maxlength="4">
-
- <%
- if (times%2==1){
- //r = Math.random()*10000;//奇数次时产生随机数
- out.print("<img border=0 align=center src=http://www.chsi.com.cn/ValidatorIMG.JPG?ID=" + r + ">");
- }else {
- //out.print("<img border=0 align=center src="temp/ValidatorIMG_"+ r +".jpg">");
- }
- %> </td>
- </tr>
- <tr>
- <td height="30" colspan="2"><font color=#CC9900 size =2>
- <%out.print("<br>编号:"+ session.getAttribute("ZSBH") + " 已翻阅:"+finished+" 刷新时间:"+interval+"秒");%>
- </font></td>
- </tr>
- <tr>
- <td height="30" colspan="2"><span class="style12">注意: </span><span class="style10">*</span><span class="style12">为可修改项</span></td>
- </tr>
- <tr>
- <td height="39"> </td>
- <td height="39" align="center" valign="bottom">
- <input name="Submit1" type="submit" class="button1" <%if(times > 2) out.print("disabled=true"); %> value="开 始"> </td>
- </tr>
- <!--用JavaScript写隐藏域,在后续页面判断是否支持JavaScript-->
- <script language="javascript">document.write("<input type=hidden name=javascript value=9746>");</script>
- </form>
- </table></td>
- </tr>
- <tr>
- <td height="1" align="left" valign="top" class="news_source"><!--DWLayoutEmptyCell--> </td>
- </tr>
- <tr>
- <td height="110" class="sty"></td>
- </tr>
- <tr>
- <td height="340" valign="middle"></td>
- <td width="20"></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="28"></td>
- <td> </td>
- </tr>
- </table>
-
- </body>
-
- </HTML>