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

📄 baoming.jsp

📁 考试报名系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage=""%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<HTML>
	<HEAD>
		<TITLE>
			计算机等级考试
		</TITLE>

		<STYLE type=text/css>BODY {
	FONT-SIZE: 9pt; COLOR: #330099
}
TH {
	FONT-SIZE: 9pt; COLOR: #330099
}
TD {
	FONT-SIZE: 9pt; COLOR: #330099
}
SELECT {
	FONT-SIZE: 9pt; COLOR: #330099
}
INPUT {
	FONT-SIZE: 9pt; COLOR: #330099
}
.cl {
	FONT-SIZE: 9pt; LETTER-SPACING: 1px
}
</STYLE>

		<SCRIPT language=JavaScript>


   function checkN(myString)
   {	
   		var isNumber = 0;
		for (var i = 0; i<myString.length; i++)
		{
		isNumber = 0;
		for (var j=0; j<10; j++) if ("" + j == myString.charAt(i)) isNumber = 1; 
		if ("x"== myString.charAt(i)) isNumber = 1; 
		if ("X"== myString.charAt(i)) isNumber = 1; 
		if (isNumber == 0) {return false;}
		}
		return true;
	}
  function isNumber( checkStr )
  {
      var checkOK = "0123456789";
      var allValid = true;
      for (i = 0;  i < checkStr.length;  i++)
      {
          ch = checkStr.charAt(i);
          for (j = 0;  j < checkOK.length;  j++)
              if (ch == checkOK.charAt(j))
                 break;
          if (j == checkOK.length)
          {
              allValid = false;
              break;
          }
      }
      return allValid;
  }


 function chkCityNum()
  {
      var selNo = 0;
      for (i = 0; i < document.studentpost.area_code.length; i++)
      {
          if(document.studentpost.area_code[i].selected == true)
              selNo ++;
          if( selNo > 3)
              return false;
      }
      return true;
  }

  function chkpass()
  {
      var OK = 0;
      if(document.studentpost.pass.value == document.studentpost.repass.value)
          {
            OK = 1;
          }
      if(OK == 1)
        return true;
      else
        return false;
  }

  function filter()
  {
        if(document.studentpost.name.value=="")
    {
      alert("请输入姓名!");
      document.studentpost.name.focus();
      return false;
    }

     if(document.studentpost.idcard.value=="")
    {
      alert("请输入身份证号!");
      document.studentpost.idcard.focus();
      return false;
    }
     if(document.studentpost.birth.value=="")
    {
      alert("请输入出生日期!");
      document.studentpost.birth.focus();
      return false;
    }
	if(document.studentpost.birth.value.length!=8)
    {
      alert("出生日期长度不对!");
      document.studentpost.birth.focus();
      return false;
    }
     if(document.studentpost.culture.value=="")
    {
      alert("请选择文化程度!");
      document.studentpost.culture.focus();
      return false;
    }
    if(document.studentpost.folk.value=="")
    {
      alert("请选择民族!");
      document.studentpost.folk.focus();
      return false;
    }
    if(document.studentpost.grade.value=="")
    {
      alert("请选择等级语言!");
      document.studentpost.grade.focus();
      return false;
    }

     if(document.studentpost.address.value=="")
    {
      alert("请选择考生来源!");
      document.studentpost.address.focus();
      return false;
    }
     if(document.studentpost.address1.value=="")
    {
      alert("请输入通信地址!");
      document.studentpost.address1.focus();
      return false;
    }

    if(document.studentpost.postcode.value.length<6)
    {
      alert("邮政编码没写或位数不对!");
      document.studentpost.postcode.focus();
      return false;
     } 
	 if(!isNumber(document.studentpost.postcode.value))
    {
      alert("邮政编码不是数字!");
      return false;
    }
	  
	 if(document.studentpost.phone.value=="")
    {
      alert("请输入联系电话!");
      document.studentpost.phone.focus();
      return false;
    }
	if(!isNumber(document.studentpost.phone.value))
    {
      alert("联系电话不是数字!");
      return false;
    }
	if(document.studentpost.phone.value.length<7)
    {
      alert("联系电话位数不对!");
      return false;
     } 
	
	if(!isNumber(document.studentpost.birth.value))
    {

      alert("出生日期不是数字!");
      return false;
    }
	if(document.studentpost.idcard.value.length!=15 && document.studentpost.idcard.value.length!=18)
	{ 
		alert('身份证号码长度错误');  return false; 
	}
	 
    if(!checkN(document.studentpost.idcard.value))
	{
		alert('身份证号码不全是半角数字或者x');  return false;
	 }
	
	if((document.studentpost.save[0].checked||document.studentpost.save[1].checked) && (document.studentpost.yuan.value.length<2)) 
	{
	 	alert('原准考证错误');  return false; 
	}
  
  }
</SCRIPT>

		<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
	</HEAD>
	<BODY leftMargin=0 background=baoming/wz.gif topMargin=0>
		<FORM name=studentpost action="querenAction.do" method=post>
			<DIV class=cl align=center>
				<TABLE height=600 cellSpacing=0 cellPadding=0 width=770 bgColor=#ecf3d3 border=0>
					<TBODY>
						<TR>
							<TD vAlign=top width=198 height=60>
								<TABLE height=600 cellSpacing=0 cellPadding=0 width=198 border=0>
									<TBODY>
										<TR vAlign=center>
											<TD align=middle background=baoming/891.gif height=55>&nbsp;
												
											</TD>
										</TR>
										<TR>
											<TD background=baoming/892.gif height=281>&nbsp;
												
											</TD>
										</TR>
										<TR>
											<TD background=baoming/893.gif height=131>&nbsp;
												
											</TD>
										</TR>
										<TR>
											<TD background=baoming/894.gif height=133>&nbsp;
												
											</TD>
										</TR>
									</TBODY>
								</TABLE>
							</TD>
							<TD vAlign=top width=572 height=60>
								<TABLE height=600 cellSpacing=0 cellPadding=0 width=572 border=0>
									<TBODY>
										<TR>
											<TD background=baoming/895.gif height=22>&nbsp;
												
											</TD>
										</TR>
										<TR vAlign=top>
											<TD height=539>
												<TABLE height=539 cellSpacing=0 borderColorDark=#ffffff cellPadding=0 width=572 bgColor=#f6fbff borderColorLight=#9cdaff border=1>
													<TBODY>
														<TR>
															<TD width=104>
															</TD>
															<TD vAlign=bottom width=462>
																<FONT size=4>
																	<B>
																		全国计算机等级考试报名
																	</B>
																</FONT>
																<BR>
																<FONT color=red>
																	考生应用半角填写,并保证所填信息真是准确,由于个人填写错误而影响考试,由考生自己承担责任。
																	<BR>
																	(加"*"标注的是必填项)
																</FONT>
															</TD>
														</TR>
														<TR>
															<TD>
																<FONT color=#ff3300>
																	*
																</FONT>
																姓&nbsp;&nbsp;&nbsp;&nbsp;名:
															</TD>
															<TD vAlign=top>
																<INPUT maxLength=20 size=15 name=name>
															</TD>
														</TR>
														<TR>
															<TD>
																<FONT color=#ff3300>
																	*
																</FONT>
																身份证号:
															</TD>
															<TD vAlign=top>
																<INPUT maxLength=20 size=15 name=idcard>
															</TD>
														</TR>
														<TR>
															<TD>
																<FONT color=#ff3300>
																	*
																</FONT>
																出生日期:
															</TD>
															<TD vAlign=top>
																<INPUT maxLength=20 size=15 name=birth>
															</TD>
														</TR>
														<TR>
															<TD>
																<FONT color=#ff3300>
																	*
																</FONT>
																文化程度:
															</TD>
															<TD>
																<SELECT name=culture>
																	<OPTION value="" selected>
																	</OPTION>
																	<OPTION value="1">
																		博士
																	</OPTION>
																	<OPTION value="2">
																		硕士
																	</OPTION>
																	<OPTION value="3">
																		本科
																	</OPTION>
																	<OPTION value="4">
																		大专(专科)
																	</OPTION>
																	<OPTION value="5">
																		高中(职高)
																	</OPTION>
																	<OPTION value="6">
																		中专(中技)
																	</OPTION>
																	<OPTION value="7">
																		初中
																	</OPTION>
																	<OPTION value="8">
																		初中以下
																	</OPTION>
																</SELECT>
															</TD>
														</TR>
														<TR>
															<TD height=32>
																<FONT color=#ff3300>
																	*
																</FONT>
																民&nbsp;&nbsp;&nbsp;&nbsp;族:
															</TD>
															<TD>
																<SELECT name=folk>
																	<OPTION value="" selected>
																	</OPTION>
																	<OPTION value=01>
																	</OPTION>
																	<OPTION value=02>
																		蒙古
																	</OPTION>
																	<OPTION value=03>
																	</OPTION>
																	<OPTION value=04>
																	</OPTION>
																	<OPTION value=05>
																		维吾尔
																	</OPTION>
																	<OPTION value=06>
																	</OPTION>
																	<OPTION value=07>
																	</OPTION>
																	<OPTION value=08>
																	</OPTION>
																	<OPTION value=09>
																		布依
																	</OPTION>
																	<OPTION value=10>
																		朝鲜
																	</OPTION>
																	<OPTION value=11>
																	</OPTION>
																	<OPTION value=12>
																	</OPTION>
																	<OPTION value=13>
																	</OPTION>
																	<OPTION value=14>
																	</OPTION>
																	<OPTION value=15>
																		土家
																	</OPTION>
																	<OPTION value=16>
																		哈尼
																	</OPTION>
																	<OPTION value=17>

⌨️ 快捷键说明

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