<html>
<head>
<meta http-equiv=content-language content=zh-cn>
<meta http-equiv=content-type content="text/html; charset=gb2312">
<style>
 td { padding:2px 5px 2px 5px;}
</style>
<script language=javascript src="../JS/HighLight.js.php"></script>
<script language=javascript src="../JS/CheckQuestion.js.php"></script>
<script language=javascript src="../JS/PwdMeter.js.php"></script>
<script language=javascript src="../JS/DropList.js.php"></script>
<script language=javascript>
function Check_Form_Validator(theform)
{
	if (!CheckNotNull(Check_Form.administratorsName, "学号")) {return false;}
	if (!CheckSpecicalChar(Check_Form.administratorsName, "学号")) {return false;}
	<!-- CHECK PASSWORD -->
	if (!CheckNotNull(Check_Form.passWord, "密码")) {return false;}
	if (!CheckStringLength(Check_Form.passWord, "密码",6,20)) {return false;}
	<!-- END PASSWORD -->
	if (!CheckNotNull(Check_Form.usersName, "学生姓名")) {return false;}
	if (!CheckSpecicalChar(Check_Form.usersName, "教师姓名")) {return false;}
	if (!CheckRadioNoClick(Check_Form.usersGender, "学生性别")) {return false;}
	if (!CheckNotNull(Check_Form.departmentID, "学生所属学部")) {return false;}
	if (!CheckNotNull(Check_Form.gradeID, "学生所属年级")) {return false;}
	if (!CheckNotNull(Check_Form.classID, "学生所属班级")) {return false;}
}
function CheckSpecicalChar(objField, strText)
{
	var strErr = "“" + strText + "”不能包含单引号、双引号、反斜线、小于号、大于号、和符号等非法字符！";
	var Re = /[\x22\x27\x5C\x3C\x3E\x26]+/ig;
	if ( Re.test(objField.value))
	{
		alert(strErr);
        objField.focus();
		return false;
	}
	return true;
}
</script>
<style>
#score {
	color: #000;
	font-size: 85%;
	position:absolute;
	text-align: center;
	width: 100px;
	z-index: 10;
}
#score,#complexity{
	font-weight: bold;
}
#scorebar {
	background-image: url(../Images/bg_pwd_meter.jpg);
	background-repeat: no-repeat;
	background-position: 0 0;
	position:absolute;
	width: 100px;
	z-index: 0;
}
#scorebarBorder {
	background: #ffffff;
	height: 16px;
	margin-bottom: 6px;
	width: 102px;
}
</style>
<link href="../CSS/Base.css" rel=stylesheet>
<meta content="mshtml 6.00.3790.0" name=generator></head>
<body oncontextmenu="return false" style="margin-top:0px">
  <table class=datatable style="line-height: 150%;border-collapse:collapse;" cellspacing=0 cellpadding=0 bordercolor=#b5cfd9 border=1 width=100%>
   <form name="Check_Form" onsubmit="return Check_Form_Validator(this)" method="post" action="">
     <div class=position>位置：&nbsp; 我的桌面 &raquo; 学生 &raquo; 编辑学生记录</div>
      <tr> 
         <td colspan="2" bgcolor="#f5f5f5"><b>编辑学生记录</b></td>
      </tr>
     <tr height=25 bgcolor="#e9e9e9"><td colspan=2><span class=red>&nbsp;系统登录信息</span>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
      <tr> 
         <td width="20%"><SPAN class=red>*</SPAN> 学号：</td>
         <td width="80%"> <input name="administratorsName" type="text"  id="administratorsName" size="30" maxlength="40" value="{administratorsName}"></td>
      </tr>
      <tr> 
          <td height="23"><SPAN class=red>*</SPAN> 密码：</td>
          <td><input name="passWord" type="password" id="passWord" size="30" maxlength="30" autocomplete="off" onkeyup="chkPass(this.value);"> {password_notes}</td>
      </tr>
       <tr>
          <td>&nbsp;&nbsp;&nbsp;密码强度分数：</td>
          <td>
             <div id="scorebarBorder">
             <div id="score">0%</div>
             <div id="scorebar">&nbsp;</div>
             </div>
          </td>
       </tr>
      <tr>
          <td>&nbsp;&nbsp;&nbsp;密码复杂度：</td>
          <td><div id="complexity">太短</div></td>
      </tr>
      <tr height=25 bgcolor="#e9e9e9"><td colspan=2><span class=red>&nbsp;学生基本信息</span>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
      <tr> 
         <td width="26%" height="25" ><span class=red>*</span>&nbsp;学生姓名：</td>
         <td> <input name="usersName" type="text" id="usersName" size=40 value="{usersName}"></td>
      </tr>
      <tr> 
         <td width="26%" height="25" ><span class=red>*</span>&nbsp;学生性别：</td>
         <td> <input type="radio" name="usersGender" id="usersGender" value=0 {usersGender_0}>男 <input type="radio" name="usersGender" id="usersGender" value=1 {usersGender_1}>女</td>
      </tr>	  
      <tr height=25 bgcolor="#e9e9e9"><td colspan=2><span class=red>&nbsp;学生附属信息</span>&nbsp;<img src="../Images/info.gif" border=0></td></tr>
       <tr>
		  <td height="25"><SPAN class=red>*</SPAN> 所属班级：</td>
	  	  <td>
		  <script>
			var ThreeDropList = new DropList('ThreeDropList','root',false);
			ThreeDropList.AddSelect("departmentID","departmentID","请选择学部...");
			ThreeDropList.AddSelect("gradeID","gradeID","请选择年级...");
			ThreeDropList.AddSelect("classID","classID","请选择班级...");
			<!-- BEGIN DEP -->
			ThreeDropList.AddSelectItem('{depName}','root','d{depID}','{depSelected}');
			<!-- END DEP -->
			<!-- BEGIN GRADE -->
			ThreeDropList.AddSelectItem('{gradeName}','d{depID}','g{gradeID}','{gradeSelected}');
			<!-- END GRADE -->
			<!-- BEGIN CLASS -->
			ThreeDropList.AddSelectItem('{className}','g{gradeID}','c{classID}','{classSelected}');
			<!-- END CLASS -->
			ThreeDropList.InitControl();
		  </script>
		  </td>
	 </tr>
	  </table>
	 <table width=100%>
     <tr><td width=26%></td>
         <td>
		    <input type="hidden" name="usersID" value="{usersID}">
		    <input type="hidden" name="Action" value="{dataAction}"> 
            <input class=inputsubmit type="submit" name="submit" value="确定">&nbsp;<input class=inputsubmit type="button" name="close" value="关闭" onClick="javascript:parent.hidePopWin();"> 
        </td>
     </tr>
  </form></table>
<script type="text/javascript">initInputHighlightScript();</script> 
</body></html>
