<!--#include virtual="noSQL.asp"-->
<!--#include file="../../SQLconn.asp"-->
<html>
<head>
<title>新增学生资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<script Language="JavaScript">
 
 
 function form_check(){

   if(document.form3.xuexiao.value.length<1){window.alert("输入原小学学校");document.form3.xuexiao.focus();return (false);}
   if(document.form3.banbie.value.length<1){window.alert("输入班别");document.form3.banbie.focus();return (false);}
   if(document.form3.xingming.value.length<1){window.alert("输入姓名");document.form3.xingming.focus();return (false);}
   //if(document.form3.xingbie.value.length<1){window.alert("请输入性别");document.form3.xingbie.focus();return (false);}  
   if(document.form3.xuejihao.value.length<1){window.alert("请输入学籍号");document.form3.xuejihao.focus();return (false);}
   if(document.form3.shenfenzheng.value.length<1){window.alert("请输入身份证号");document.form3.shenfenzheng.focus();return (false);}
   if(document.form3.xuejihao.value.length<1){window.alert("请输入学籍号");document.form3.xuejihao.focus();return (false);}
   
   if(document.form3.hujidizhi.value.length<1){window.alert("请输入户籍所在地");document.form3.hujidizhi.focus();return (false);}
   if(document.form3.xianzhudizhi.value.length<1){window.alert("请输入现住的地址");document.form3.xianzhudizhi.focus();return (false);}
   
   if(document.form3.xingming1.value.length<1){window.alert("请输入监护人1姓名");document.form3.xingming1.focus();return (false);}
   if(document.form3.guangxi1.value.length<1){window.alert("请输入监护人1关系");document.form3.guangxi1.focus();return (false);}
   if(document.form3.danwei1.value.length<1){window.alert("请输入监护人1单位");document.form3.danwei1.focus();return (false);}
   if(document.form3.dianhua1.value.length<1){window.alert("请输入监护人1电话");document.form3.dianhua1.focus();return (false);}
 
   
   
   
   
}

</script>
<body>

<div align="left">

<form method="post" ENCTYPE="multipart/form-data" name="form3" action="EditSave.asp" onSubmit="return form_check();">
 <%
    shenfenzheng=TRIM( Request("shenfenzheng" ))
	mima=TRIM( Request( "mima" ))	
 Set RS = Conn.Execute("select * from stuBaoMing where 身份证号码='"&shenfenzheng&"'  and  密码='"&mima&"'") %>
               <input  type="hidden" name="id" class="text" id="id" size="20"  value=<%=rs("id")%>>
			   
				<table width="900" height="341" border="1" align="center" cellpadding="10" cellspacing="0" bgcolor="#F7FCFF" style="border-collapse:collapse">
				<tr>
				<td width="701"><table width="850" border="0" align="center" cellpadding="1"   cellspacing="1"  bordercolor="#000000" >
				
				<tr>
				<td width="170" height="38" class="STYLE1"><div align="right">原读学校</div></td>
				<td><div align="left"><span class="STYLE1">
				  <input name="xuexiao" class="text" id="xuexiao" size="20"  value=<%=rs("学校")%>>
				</span></div></td>
				<td class="STYLE1"><div align="right">班别</div></td>
				<td class="STYLE1"><input name="banbie" class="text" id="banbie" size="20" value=<%=rs("班别")%>></td>
				<td width="19" rowspan="4" class="STYLE1">&nbsp; </td>
				<td width="166" rowspan="4" class="STYLE1"><div align="center"><img src="showxiangpian.asp?id=<%=rs("身份证号码")%>" border="0" /></div></td>
				</tr>
				<tr>
				<td width="170" height="38" class="STYLE1"><div align="right">姓名</div></td>
				<td width="186"><div align="left"><span class="STYLE1">
				  <input name="xingming" class="text" id="xingming" size="20"  value=<%=rs("姓名")%>>
				</span></div></td>
				<td width="119" align="center" class="STYLE1"><div align="right">性别</div></td>
				<td width="171" align="left" class="STYLE1"><input name="xingbie" class="text" id="xingbie" size="20" value=<%=rs("性别")%>></td>
				</tr>
				
				<tr>
				  <td height="38" class="STYLE1"><div align="right">出生日期</div></td>
				  <td><span class="STYLE1">
				    <input name="shengri" class="text" id="shengri" size="20"  value=<%=rs("出生日期")%>>
				  </span></td>
				  <td><div align="right" class="STYLE1">身份证号码</div></td>
				  <td><span class="STYLE1">
				    <input name="shenfenzheng" class="text" id="shenfenzheng" size="20" value=<%=rs("身份证号码")%>>
				  </span></td>
				  </tr>
				<tr>
				  <td height="38" class="STYLE1"><div align="right">学籍号</div></td>
				  <td><span class="STYLE1">
				    <input name="xuejihao" class="text" id="xuejihao" size="20" value=<%=rs("学籍号")%>>
				  </span></td>
				  <td><div align="right" class="STYLE1">特长</div></td>
				  <td><span class="STYLE1">
				    <input name="techang" class="text" id="techang" size="20"  value=<%=rs("特长")%>>
				  </span></td>
				  </tr>
				<tr>
				  <td height="38" class="STYLE1"><div align="right">户籍地址</div></td>
				  <td colspan="4"><input name="hujidizhi" class="text" id="hujidizhi" size="62" maxlength="60" value=<%=rs("户籍地址")%>></td>
				  <td><div align="center" class="STYLE1">
				    <input type="file" name="file1"  class=text id="file1"  onblur='this.style.backgroundColor="#FFFFFF"' title="选择相片" size="5" />
				  </div></td>
				</tr>
				<tr>
				<td width="170" height="36" class="STYLE1"><div align="right">现住地址</div></td>
				<td colspan="4"><div align="left">
				  <input name="xianzhudizhi" class="text" id="xianzhudizhi" size="62" maxlength="60" value=<%=rs("现住地址")%>>
				</div></td>
				<td>&nbsp;</td>
				</tr>
				
				<tr>
				  <td class="STYLE1"><div align="right">学习情况 </div>                
				  <td colspan="5"><textarea name="xuexi" cols="61" rows="5" class="text" id="xuexi"><%=rs("学习情况")%></textarea></td>
				  </tr>
				<tr>
				<td width="170" class="STYLE1"><div align="right">获奖情况 </div>
				<td colspan="5"><div align="left">
				<textarea name="huojiang" cols="61" rows="5" class="text" id="huojiang"><%=rs("获奖情况")%></textarea>
				</div></td>
				</tr>
				<tr>
				  <td height="104" colspan="6"><table width="95%" height="92" border="1" align="center">
                    <tr>
                      <td width="71" rowspan="3"><div align="center" class="STYLE1">监护人</div></td>
                      <td width="94" height="30" class="STYLE1"><div align="center">姓名</div></td>
                      <td width="106" class="STYLE1"><div align="center">关系</div></td>
                      <td width="278" class="STYLE1"><div align="center">工作单位</div></td>
                      <td width="221" class="STYLE1"><div align="center">联系电话</div></td>
                    </tr>
                    <tr>
                      <td><div align="center">
                        <input name="xingming1" class="text" id="xingming1" size="10" value=<%=rs("监护人姓名1")%>>
                      </div></td>
                      <td><div align="center">
                        <input name="guangxi1" class="text" id="guangxi1" size="10" value=<%=rs("监护人关系1")%>>
                      </div></td>
                      <td><div align="center"><span class="STYLE1">
                        <input name="danwei1" class="text" id="danwei1" size="30"  value=<%=rs("监护人单位1")%>>
                      </span></div></td>
                      <td><div align="center"><span class="STYLE1">
                        <input name="dianhua1" class="text" id="dianhua1" size="20" value=<%=rs("监护人电话1")%> >
                      </span></div></td>
                    </tr>
                    <tr>
                      <td><div align="center">
                        <input name="xingming2" class="text" id="xingming2" size="10" value=<%=rs("监护人姓名2")%>>
                      </div></td>
                      <td><div align="center">
                        <input name="guangxi2" class="text" id="guangxi2" size="10" value=<%=rs("监护人关系2")%>>
                      </div></td>
                      <td><div align="center"><span class="STYLE1">
                        <input name="danwei2" class="text" id="danwei2" size="30"  value=<%=rs("监护人单位2")%>>
                      </span></div></td>
                      <td><div align="center"><span class="STYLE1">
                        <input name="dianhua2" class="text" id="dianhua2" size="20"  value=<%=rs("监护人电话2")%>> 
                      </span></div></td>
                    </tr>
                  </table>                
			      <div align="center"></div>				  </tr>
				
				<tr>
				  <td height="21"><div align="right">密码： </div>                
				  
				  <td height="21"><span class="STYLE1">
				    <input name="mima" class="text" id="mima" size="20" value=<%=rs("密码")%>>
				  </span>                  
				  <td height="21">                  
				  <td height="21">                  
				  <td height="21">                  
				  <td height="21">                  				</tr>
				<tr>
				<td colspan="6"><div align="center">
				<input name="Submit2" type="submit" class="topanniu" value="保存数据">
				</div>				</tr>
				</table>
				  <div align="center"></div></td>
				</tr>
	</table>
  </form>
</div>
</body> 
</html> 
