<!-- #include file="conn.asp" -->
<!-- #include file="inc.asp" -->
<%
password=request.form("password")
id=makeid("stu","in",request.form("id"))
set rs=server.createobject("adodb.recordset")
sql="select * from student where password='"&password&"' and id="&id
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.redirect "stu_info.asp?id="&makeid("stu","out",id)&""
response.end
end if
rs.close
set rs=nothing
set rs=server.createobject("adodb.recordset")
sql="select * from student where id="&id
rs.open sql,conn,1,3
%>
<script language="JavaScript">
<!--
function  check() {
  if (student.teach.value=="") {
		alert("请填写求教学科！");
		student.teach.focus();		
		    return (false);
  } 
  if (student.tarea.value=="") {
		alert("请选择所在地区！");
		student.tarea.focus();		
		    return (false);
  }
  if (student.add.value=="") {
		alert("请填写详细地址！");
		student.add.focus();		
		    return (false);
  }
  if (student.iname.value=="") {
		alert("请填写您的称呼！");
		student.iname.focus();		
		    return (false);
  }
  if (student.tel.value=="") {
		alert("请填写联系电话！");
		student.tel.focus();		
		    return (false);
  }
 else
	document.student.submit();
}// -->
</script>
<html>
<head>
<title>登记家教学员信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><div align="center">
<!-- #include file="head.asp" -->
    <table width="778" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="FBFCED">
      <tr>
        <td height="30" valign="bottom">&nbsp;&nbsp;&nbsp;<strong>当前位置</strong>：【<a href="http://www.whjiajiao.com" title="www.whjiajiao.com"><font color=red><b>武汉家教网</b></font></a>】 → <a href="index.asp">首页</a> → 发布学员信息</td>
      </tr>
      <tr>
        <td align="center" valign="bottom"><img src="IMAGES/line.gif" width="730" height="2"></td>
      </tr>
    </table>
    <TABLE WIDTH=778 BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="FBFCED">
  <TR>
    <TD align="center">
      <br>
      <table width="660" height="10" border="0" cellpadding="5" cellspacing="1" bgcolor="#999999">
      <form name="student" method="post" action="stu_mod_save.asp"><tr>
      <td width="27%" height="2" align="right" bgcolor="#FDFEF5">*&nbsp;求教学科：</td>
      <td width="73%" height="2" bgcolor="#FFFFFF"> 
          <input type="text" name="teach" size="30" value="<%=rs("teach")%>"></td>
    </tr> <tr>
        <td align="right" bgcolor="#FDFEF5">*&nbsp;学生学习情况：</td>
        <td bgcolor="#FFFFFF"><input type="radio" name="edu" value="很好" <%if rs("edu")="很好" then Response.Write("checked") end if%>> 很好&nbsp;&nbsp;
		    <input type="radio" name="edu" value="较好" <%if rs("edu")="较好" then Response.Write("checked") end if%>> 较好&nbsp;&nbsp;
			<input name="edu" type="radio" value="一般" <%if rs("edu")="一般" then Response.Write("checked") end if%>> 
			一般&nbsp;&nbsp;
			<input type="radio" name="edu" value="不好" <%if rs("edu")="不好" then Response.Write("checked") end if%>> 不好</td>
      </tr><tr>
      <td width="27%" height="2" align="right" bgcolor="#FDFEF5">*&nbsp;就读年级：</td>
      <td width="73%" height="2" bgcolor="#FFFFFF"> 
          <SELECT name=grade size=1>
<OPTION value=幼儿 <%if rs("grade")="幼儿" then Response.Write("selected") end if%>>幼儿</OPTION>
<OPTION value=一年级 <%if rs("grade")="一年级" then Response.Write("selected") end if%>>一年级</OPTION>
<OPTION value=二年级 <%if rs("grade")="二年级" then Response.Write("selected") end if%>>二年级</OPTION>
<OPTION value=三年级 <%if rs("grade")="三年级" then Response.Write("selected") end if%>>三年级</OPTION>
<OPTION value=四年级 <%if rs("grade")="四年级" then Response.Write("selected") end if%>>四年级</OPTION>
<OPTION value=五年级 <%if rs("grade")="五年级" then Response.Write("selected") end if%>>五年级</OPTION>
<OPTION value=六年级 <%if rs("grade")="六年级" then Response.Write("selected") end if%>>六年级</OPTION>
<OPTION value=初一 <%if rs("grade")="初一" then Response.Write("selected") end if%>>初一</OPTION>
<OPTION value=初二 <%if rs("grade")="初二" then Response.Write("selected") end if%>>初二</OPTION>
<OPTION value=初三 <%if rs("grade")="初三" then Response.Write("selected") end if%>>初三</OPTION>
<OPTION value=高一 <%if rs("grade")="高一" then Response.Write("selected") end if%>>高一</OPTION>
<OPTION value=高二 <%if rs("grade")="高二" then Response.Write("selected") end if%>>高二</OPTION>
<OPTION value=高三 <%if rs("grade")="高三" then Response.Write("selected") end if%>>高三</OPTION>
<OPTION value=中专 <%if rs("grade")="中专" then Response.Write("selected") end if%>>中专</OPTION>
<OPTION value=大一 <%if rs("grade")="大一" then Response.Write("selected") end if%>>大一</OPTION>
<OPTION value=大二 <%if rs("grade")="大二" then Response.Write("selected") end if%>>大二</OPTION>
<OPTION value=大三 <%if rs("grade")="大三" then Response.Write("selected") end if%>>大三</OPTION>
<OPTION value=大四 <%if rs("grade")="大四" then Response.Write("selected") end if%>>大四</OPTION>
<OPTION value=成人 <%if rs("grade")="成人" then Response.Write("selected") end if%>>成人</OPTION>
<OPTION value=其它 <%if rs("grade")="其它情况" then Response.Write("selected") end if%>>其它情况</OPTION>
</SELECT>
      </td>
    </tr>
<tr>
        <td align="right" bgcolor="#FDFEF5">家教要求及其他说明：</td>
        <td bgcolor="#FFFFFF">
          <textarea name="content" cols="40" rows="5"><%=rs("content")%></textarea>        </td>
      </tr><tr> 
      <td align="right" bgcolor="#FDFEF5">*&nbsp;所在地区：</td>
        <td bgcolor="#FFFFFF">
          <select name="tarea">		  
<option value="武昌区" <%if rs("tarea")="武昌区" then Response.Write("selected") end if%>>武昌区</option>
<option value="洪山区" <%if rs("tarea")="洪山区" then Response.Write("selected") end if%>>洪山区</option>
<option value="青山区" <%if rs("tarea")="青山区" then Response.Write("selected") end if%>>青山区</option>
<option value="江汉区" <%if rs("tarea")="江汉区" then Response.Write("selected") end if%>>江汉区</option>
<option value="江岸区" <%if rs("tarea")="江岸区" then Response.Write("selected") end if%>>江岸区</option>
<option value="硚口区" <%if rs("tarea")="硚口区" then Response.Write("selected") end if%>>硚口区</option>
<option value="东西湖" <%if rs("tarea")="东西湖" then Response.Write("selected") end if%>>东西湖</option>
<option value="汉阳区" <%if rs("tarea")="汉阳区" then Response.Write("selected") end if%>>汉阳区</option>
<option value="江夏区" <%if rs("tarea")="江夏区" then Response.Write("selected") end if%>>江夏区</option>
<option value="新洲区" <%if rs("tarea")="新洲区" then Response.Write("selected") end if%>>新洲区</option>
<option value="黄陂区" <%if rs("tarea")="黄陂区" then Response.Write("selected") end if%>>黄陂区</option>
<option value="蔡甸区" <%if rs("tarea")="蔡甸区" then Response.Write("selected") end if%>>蔡甸区</option>
<option value="汉南区" <%if rs("tarea")="汉南区" then Response.Write("selected") end if%>>汉南区</option>
<option value="其他" <%if rs("tarea")="其他" then Response.Write("selected") end if%>>其他</option>
      </select>        </td>
      </tr>
      <tr> 
      <td align="right" bgcolor="#FDFEF5">*&nbsp;详细地址：</td>
        <td bgcolor="#FFFFFF"><input name="add" type="text" size="50" value="<%=rs("add")%>">        </td>
      </tr><tr> 
        <td align="right" bgcolor="#FDFEF5">公汽路线： </td>
        <td bgcolor="#FFFFFF"><input name="bus" type="text" size="40" value="<%=rs("bus")%>"></td>
      </tr>
      <tr> 
        <td align="right" bgcolor="#FDFEF5">待遇标准： </td>
        <td bgcolor="#FFFFFF"><input name="pay" type="text"  size="20" value="<%=rs("pay")%>"></td>
      </tr>
	  <tr>
        <td align="right" bgcolor="#FDFEF5">*&nbsp;称&nbsp;&nbsp;&nbsp;&nbsp;呼：</td>
        <td bgcolor="#FFFFFF">
          <input name="iname" type="text" size="20" value="<%=rs("iname")%>"></td>
      </tr>
	  <tr>
        <td align="right" bgcolor="#FDFEF5">*&nbsp;联系电话：</td>
        <td bgcolor="#FFFFFF">
          <input name="tel" type="text" size="40" value="<%=rs("tel")%>">        </td>
      </tr>
<tr>
        <td align="right" bgcolor="#FDFEF5">E-mail：</td>
        <td bgcolor="#FFFFFF">
          <input name="email" type="text" size="40" value="<%=rs("email")%>"></td>
      </tr>
	<tr>
        <td align="right" bgcolor="#FDFEF5">管理密码：</td>
        <td bgcolor="#FFFFFF" class="font12_red">
          <input name="password" type="password" size="25" value="<%=rs("password")%>">
          (很重要！方便以后修改、删除及重新公开该信息，也可不填写)</td>
      </tr>
	  <tr>
        <td align="right" bgcolor="#FDFEF5">删除：</td>
        <td bgcolor="#FFFFFF" class="font12_red">
<input type="checkbox" name="pas" <%if rs("pas")=4 then Response.Write("checked") end if%> value="4">          
（删除此信息请勾选，删除后将显示为过期，公开联系方式请<b>不选</b>)</td>
      </tr> 
<tr align="center">
      <td height="11" colspan="2">
<INPUT name=id type=hidden value="<%=makeid("stu","out",rs("id"))%>">	  
<INPUT class="input3" name=B1 type=button onClick="check()" value="提 交">

&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT name=Reset type=reset value=重新填写 class="input2">
      </td>
    </tr></form>
  </table>
      <br></TD>
  </TR>
</TABLE>
<!-- #include file="foot.asp" -->
</div>
<%
rs.close
set rs=nothing
rs.conn
set conn=nothing
%>
</body>
</html>
