<%@ page contentType="text/html; charset=gb2312" language="java"  %>
<html>
<head>
<title>首页</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function check_pass(form) {
  if(form.xh.value==""){
        alert("登录名不能为空!");
	return false;
    }
  var pass=form.passwd.value;
  var i=0;
  for(i=0;i<pass.length;i++){
    var char=pass.substring(i,i+1);
    if(pass.length!=6||((char>"9"||char<"0")&&(char>"z"||char<"a"))){
      alert("密码必须为六位数字或者小写字母!"+char);
      return false;
        }
  }
}
</script>
<style type="text/css">
<!--
.style1 {font-size: 60px}
.style2 {
	font-size: 24px;
	color: #FF0000;
}
.style3 {font-size: 24px}
.style4 {color: #009900}
body {
	background-image: url(picture/back004.gif);
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Layer1" style="position:absolute; width:764px; height:137px; z-index:1; left: 6px; top: 6px"><img src="picture/024.jpg" width="1127" height="200">
  <div id="Layer10" style="position:absolute; width:200px; height:115px; z-index:3; left: 36px; top: 94px;"><img src="picture/hudie.gif" width="111" height="80"></div> 
  <div id="Layer3" style="position:absolute; width:570px; height:44px; z-index:1; left: 362px; top: 114px"> 
    <table width="100%" border="1" height="43">
      <tr> 
        <td width="20%"> 
          <div id="Layer4" style="position:absolute; width:180px; height:42px; z-index:3; top: 6px; left: -164px"><a href="main.jsp"><img src="picture/1.png" width="178" height="48" border="0"></a></div>
          <div id="Layer4" style="position:absolute; width:181px; height:56px; z-index:3; top: 6px; left: 14px"><a href="teacher.jsp"><img src="picture/2.png" width="180" height="52" border="0"></a></div>
          <div id="Layer4" style="position:absolute; width:150px; height:42px; z-index:3; top: 99px; left: 222px"></div>
          <div id="Layer4" style="position:absolute; width:136px; height:40px; z-index:3; top: 87px; left: 342px"></div>
          <div id="Layer4" style="position:absolute; width:120px; height:54px; z-index:3; top: 7px; left: 616px"><img src="picture/5.png" width="145" height="51"></div>
        </td>
        <td width="16%">&nbsp;</td>
        <td width="25%"><img src="picture/3.png" width="155" height="51"></td>
        <td width="19%"><img src="picture/4.png" width="120" height="49"></td>
        <td width="20%">&nbsp;</td>
      </tr>
    </table>
  </div>
  <div id="Layer5" style="position:absolute; width:143px; height:49px; z-index:2; left: 833px; top: 120px"><img src="picture/6.png" width="143" height="51"></div>
</div>
<div id="Layer2" style="position:absolute; width:691px; height:52px; z-index:2; left: 340px; top: 44px"> 
  <blockquote> 
    <blockquote> 
      <p align="center" class="style1"><dfn><font color="#0000A0">教师查询系统</font></dfn></p>
    </blockquote>
  </blockquote>
</div>
{1} 
<div id="Layer6" style="position:absolute; width:206px; height:96px; z-index:3; left: 109px; top: 15px"><img src="picture/wel01.gif" width="185" height="71"></div>
<div id="Layer7" style="position:absolute; width:560px; height:158px; z-index:4; left: 227px; top: 333px;">
  <form action="chenggong.jsp" onSubmit="return check_pass(this);">
  <table width="561" height="159" border="1">
    <tr>
      <td width="111"><div align="center"><span class="style2">学号：</span></div></td>
      <td width="434"><input name="xh" type="text" value=""></td>
    </tr>
    <tr>
      <td><div align="center"><span class="style2">密码：</span></div></td>
      <td><input name="passwd" type="password" value=""></td>
    </tr>
  </table>
  <input name="Submit" type="submit" class="style2" value="查询">
  </form>
</div>

<table width="200" border="1">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<div id="Layer9" style="position:absolute; width:948px; height:115px; z-index:6; left: 70px; top: 209px;">
  <div align="center" class="style3">
    <p class="style4">请正确输入您的学号和密码，您就可以查询到您的考试成绩和学生信息．</p>
    <p class="style4">密码必须为六位数字或者小写字母！</p>
  </div>
</div>
<div id="Layer11" style="position:absolute; width:200px; height:115px; z-index:7; left: 24px; top: 335px;">
  <div align="right"><img src="picture/aniflowe.gif" width="55" height="69"></div>
</div>
</body>
</html>

