<!-- #include file="conn.asp" -->
<!-- #include file="inc.asp" -->
<%
Call Check_Session("Agent")
set rs=server.createobject("ADODB.Recordset")
sql="select * from agent where id="&Session("Agent_ID")
rs.open sql,conn,1,1
%>
<script language="JavaScript">
<!--
function  check() {

  if (agent.company.value=="") {
		alert("请填写单位名称！");
		agent.company.focus();		
		    return (false);
  }
  if (agent.address.value=="") {
		alert("请填写地址！");
		agent.address.focus();		
		    return (false);
  }
  if (agent.iname.value=="") {
		alert("请填写联系人！");
		agent.iname.focus();		
		    return (false);
  }
  if (agent.tel.value=="") {
		alert("请填写联系方式！");
		agent.tel.focus();		
		    return (false);
  }
  if (isNaN(agent.qq.value)){
		alert("QQ号码只能填数字！");
		agent.qq.focus();		
		    return (false);
    }
 else
	document.agent.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=10 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"  border="1" cellpadding="5" cellspacing="0" borderColorLight=#cccccc borderColorDark=#ffffff bgcolor="#eeeeee">
      <form name="agent" method="post" action="agent_mod_save.asp">
	  <tr>
      <td width="23%" height="2" align="right">ID：</td>
      <td width="77%" height="2" bgcolor="#FFFFFF"> 
          &nbsp;<span class="font_red_b" style="font-size:16px"><%=Rs("id")%></span> &nbsp;&nbsp;（帐号：<span class="font13" style="color:#0000FF"><%=Rs("username")%></span>）</td>
    </tr>
      <tr> 
      <td align="right">*&nbsp; 单位名称：</td>
        <td bgcolor="#FFFFFF" class="font12_red">
		&nbsp;<input name="company" type="text" value="<%if rs("company")="-" then Response.Write("") else Response.Write(""&rs("company")&"") end if%>" size="50" maxlength="50"></td>
      </tr>
	  <tr>
      <td width="23%" height="2" align="right">*&nbsp;地址：</td>
      <td width="77%" height="2" bgcolor="#FFFFFF" class="font12_red"> 
          &nbsp;<input type="text" name="address" size="60" value="<%if rs("address")="-" then Response.Write("") else Response.Write(""&rs("address")&"") end if%>">          </td>
    </tr><tr>
      <td width="23%" height="2" align="right">*&nbsp;联系人：</td>
      <td width="77%" height="2" bgcolor="#FFFFFF"> 
          &nbsp;<input name="iname" type="text" value="<%if rs("iname")="-" then Response.Write("") else Response.Write(""&rs("iname")&"") end if%>" size="15" maxlength="4">
		 	<input class="input2" type="button" value="先生" onClick="javascript:(document.agent.iname.value=document.agent.iname.value + this.value)">
			<input class="input2" type="button" value="小姐" onClick="javascript:(document.agent.iname.value=document.agent.iname.value + this.value)">
			<input class="input2" type="button" value="女士" onClick="javascript:(document.agent.iname.value=document.agent.iname.value + this.value)">
			<input class="input2" type="button" value="阿姨" onClick="javascript:(document.agent.iname.value=document.agent.iname.value + this.value)">
			<input class="input2" type="button" value="老师" onClick="javascript:(document.agent.iname.value=document.agent.iname.value + this.value)">
			<input class="input2" type="button" value="同学" onClick="javascript:(document.agent.iname.value=document.agent.iname.value + this.value)">
          </td>
      </tr>
	  <tr>
        <td align="right">*&nbsp;联系电话：</td>
        <td bgcolor="#FFFFFF" class="font12_red">
		&nbsp;<input name="tel" type="text" size="40" value="<%if rs("tel")="-" then Response.Write("") else Response.Write(""&rs("tel")&"") end if%>">
		（请如有多个请用逗号隔开）</td>
      </tr>
	  <tr> 
      <td align="right">传真：</td>
        <td bgcolor="#F7F7F7" class="font12">
          &nbsp;<input name="fax" type="text" size="40" value="<%if rs("fax")="-" then Response.Write("") else Response.Write(""&rs("fax")&"") end if%>">
          （选填） </td>
      </tr>
	  <tr>
        <td align="right">E-mail：</td>
        <td bgcolor="#F7F7F7" class="font12">
          &nbsp;<input name="email" type="text" value="<%if rs("email")="-" then Response.Write("") else Response.Write(""&rs("email")&"") end if%>" size="30">
          （选填） </td>
      </tr>
<tr>
        <td align="right">QQ：</td>
        <td bgcolor="#F7F7F7" class="font12">
          &nbsp;<input name="qq" type="text" size="20" value="<%if rs("qq")=0 then Response.Write("") else Response.Write(""&rs("qq")&"") end if%>">
          （选填）</td>
      </tr><tr>
        <td align="right">单位简介：</td>
        <td bgcolor="#F7F7F7" class="font12">
          &nbsp;<textarea name="content" cols="70" rows="10"><%if rs("content")="无" then Response.Write("") else Response.Write(""&rs("content")&"") end if%></textarea>
          （不填表示无）</td>
      </tr>
	  <tr align="center" bgcolor="FBFED7">
      <td height="11" colspan="2"><INPUT class="input3" name=B1 type=button onClick="check()" value="确 认 提 交">
　 　　
<INPUT name=Reset type=reset value=重新填写 class="input2">
      </td>
    </tr></form>
  </table>
      <br></TD>
  </TR>
</TABLE>
<!-- #include file="foot.asp" -->
</div>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>