<!--#include file="head.asp"-->
<%
if request("action")="add" then
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open "Select * from apply",conn,1,3
rs.Addnew
rs("spname")=request("spname")
rs("realname")=request("realname")
rs("sex")=request("sex")
rs("folk")=request("folk")
rs("native")=request("native")
rs("province")=request("province")
rs("city")=request("city")
rs("birthday")=request("birthday")
rs("tel")=request("tel")
rs("contactaddress")=request("contactaddress")
rs("email")=request("email")
rs("finishschool")=request("finishschool")
rs("weakness")=request("weakness")
rs("others")=request("others")
rs.update
Response.Write "<script language=javascript>alert('您的信息已经提交到数据库，我们会尽快与您取得联系!!');location.href='apply.asp';</script>"
end if

%>
<script type="text/javascript">
function checkForm(){
	if(document.book.spname.value==""){
		alert('科目必须填写！');
		document.book.spname.focus();
		return false;
	}
	if(document.book.realname.value==""){
		alert('真实姓名必须填写！');
		document.book.realname.focus();
		return false;
	}
		if(document.book.province.value==""){
		alert('所在省份必须填写！');
		document.book.province.focus();
		return false;
	}
	if(document.book.birthday.value==""){
		alert('出生年月必须填写！');
		document.book.birthday.focus();
		return false;
	}
		if(document.book.tel.value==""){
		alert('电话号码必须填写！');
		document.book.tel.focus();
		return false;
	}
	if(document.book.contactaddress.value==""){
		alert('联系地址不能为空！');
		document.book.contactaddress.focus();
		return false;
	}
	if(document.book.others.value.length>400){
		alert('内容必须在400字以内！');
		document.book.others.focus();
		return false;
	}
	document.book.submit();
}
</script>        

<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width=215 background=images/ne_left_pic03.gif>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><IMG height=175 src="images/ne_left_pic06.gif" width=215></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><IMG height=30 src="images/ne_left_tt03.gif" width=215></TD></TR></TBODY></TABLE>
      <TABLE height="100%" cellSpacing=5 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD vAlign=top><BR><B>&nbsp;&nbsp;报名步骤</B><BR>&nbsp;&nbsp;一、浏览招生简章
			<FONT color=#ff0000>√</FONT><BR>&nbsp;&nbsp;二、填写报名资料
			<FONT color=#ff0000>→</FONT><BR>&nbsp;&nbsp;三、完成报名
			<FONT color=#ff0000>→</FONT></TD></TR></TBODY></TABLE></TD>
    <TD vAlign=top>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD><IMG height=10 src="images/ne_main01.gif" width=10></TD></TR></TBODY></TABLE><BR>
      <TABLE height=28 cellSpacing=0 cellPadding=3 width="95%" align=center border=0>
        <TBODY>
        <TR>
          <TD background=images/ne_login_bg01.gif>广西华北星学校 <IMG height=5 src="images/ne_patch01.gif" width=3 align=middle> 网上报名</TD></TR></TBODY></TABLE>
	  <table width="95.2%" align="center" style="margin-top:5px; margin-bottom:5px"> 
	  <tr>
		   <TD class=phbox height=25 width="92%">
<SPAN>尊敬的家长：<BR>&nbsp;&nbsp;您好！感谢您对我们关注和支持！为使我们在今后能够更有针对性的服务，我们需要您提供孩子的详细信息。<br>&nbsp;&nbsp;如有其他问题请及时与我们取得联系。电话：028-86131259、028-86131245、13880252822</SPAN></TD></tr></table>
						
      <FORM name=book action=?action=add method=post>
      <TABLE cellSpacing=0 cellPadding=3 width="95%" align=center border=0>
        <TBODY>
        <TR>
          <TD width="20%">报名科目</TD>
          <TD><INPUT id=spname size=40 name=spname> *</TD></TR>
        <TR>
          <TD width="20%">姓名</TD>
          <TD><INPUT id=realname size=30 name=realname> *</TD></TR>
        <TR>
          <TD width="20%">性别</TD>
          <TD><SELECT name=sex> 
		     <OPTION value=男 selected>男</OPTION> 
			 <OPTION value=女>女</OPTION></SELECT> *</TD></TR>
        <TR>
          <TD width="20%">民族</TD>
          <TD><INPUT id=folk size=20 value=汉 name=folk> *</TD></TR>
        <TR>
          <TD width="20%">籍贯</TD>
          <TD><INPUT id=native size=20 name=native> * </TD></TR>
        <TR>
          <TD width="20%">所在省份</TD>
          <TD><INPUT id=province size=20 name=province> *</TD></TR>
        <TR>
          <TD width="20%">所在城市</TD>
          <TD><INPUT id=city size=30 name=city> *</TD></TR>
        <TR>
          <TD width="20%">出生日期</TD>
          <TD><INPUT name=birthday ize=30> *</TD></TR>
        <TR>
          <TD width="20%">电话</TD>
          <TD><INPUT id=tel size=30 name=tel> *</TD></TR>
        <TR>
          <TD width="20%">联系地址</TD>
          <TD><INPUT id=contactaddress size=50 name=tel> *</TD></TR>
        <TR>
          <TD width="20%">Email</TD>
          <TD><INPUT id=email size=30 name=email></TD></TR>
        <TR>
          <TD width="20%">所在学校</TD>
          <TD><INPUT id=finishschool size=45 name=finishschool> *</TD></TR>
        <TR>
          <TD width="20%">薄弱项目</TD>
          <TD><INPUT id=weakness size=30 name=weakness></TD></TR>
        <TR>
          <TD width="20%">备注</TD>
          <TD><TEXTAREA id=others name=others rows=5 cols=35></TEXTAREA></TD></TR>
        <TR>
          <TD>&nbsp;</TD>
          <TD><img src="images/search_btn.gif" onClick="javascript:checkForm();" style="cursor:hand">&nbsp;<img type="image" onClick="javascript:book.reset();return false;"  src="images/qingchu.gif" style="cursor:hand"></TD></TR></TBODY></TABLE></FORM>
      </TD></TR></TBODY></TABLE>
<!--#include file="foot.asp"-->