<!--#include file="../conn.asp"-->
<!-- #include file="../admin/check_master.asp" -->
<!--#include file="../inc/publicfun.asp" -->
<!--#include file="../inc/htmlencode2.asp" -->

<link rel="stylesheet" href="../css/xmwuye.css">
<% 
dim sql,rs
id=request("id")
if request("act")="y" then
   str="update ftbbs_bmtb set username='"&request("username")&"',tel='"&request("tel")&"',age='"&request("age")&"',sex='"&request("sex")&"',job='"&request("job")&"',edu='"&request("edu")&"',address='"&request("address")&"',qq='"&request("qq")&"',note='"&htmlencode2(request("note"))&"' where  id="&request("id")
   conn.execute str
   response.redirect request("reurl")
end if
sql="select * from ftbbs_bmtb where id="&id
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,3,1
%>
<body leftmargin="0" topmargin="5">
<table width="98%" border="0" align="center">
  <form action="" method="post" name="form1" id="form1">
    <tr> 
      <td height="30" colspan="3" align="center" bgcolor="f3f3f3"> <strong>修改信息</strong></td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td width="24%" height="25" align="right">姓名： </td>
      <td width="24%"> 
        <input name='username' type=text id="username" value="<%=rs("username")%>" size='16' maxlength="50"></td>
      <td width="52%">电话： 
        <input name='tel' type=text id="tel" value="<%=rs("tel")%>" size='15' maxlength="20"> 
      </td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td height="25" align="right">年龄：</td>
      <td> 
        <input name='age' type=text id="Age" value="<%=rs("age")%>" size='16' maxlength="20"  min="1" max="100"> 
      </td>
      <td>性别： 
        <select name="sex" id="sex" style="width:96">
          <option value="男" <%if rs("sex")="男" then%>selected <%end if%>>男</option>
          <option value="女" <%if rs("sex")="女" then%>selected <%end if%>>女</option>
        </select>
	  </td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td height="25" align="right">职业：</td>
      <td> 
        <input name='Job' type=text id="Job" value="<%=rs("job")%>" size='16' maxlength="20" /></td>
      <td>学历： 
        <select name="edu" id="edu" style="width:96">
          <option value="博士以上" <%if rs("edu")="博士以上" then%>selected <%end if%>>博士以上</option>
          <option value="博士" <%if rs("edu")="博士" then%>selected <%end if%>>博士</option>
          <option value="研究生" <%if rs("edu")="研究生" then%>selected <%end if%>>研究生</option>
          <option value="本科" <%if rs("edu")="本科" then%>selected <%end if%>>本科</option>
          <option value="大专" <%if rs("edu")="大专" then%>selected <%end if%>>大专</option>
          <option value="大专以下" <%if rs("edu")="大专以下" then%>selected <%end if%>>大专以下</option>
        </select></td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td width="24%" height="25" align="right">来自： </td>
      <td width="24%"> 
        <input name='address' type=text id="address" value="<%=rs("address")%>" size='16' maxlength="50"></td>
      <td width="52%">QQ号： 
        <input name='qq' type=text id="qq" value="<%=rs("qq")%>" size='15' maxlength="20"> 
      </td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td align="right">爱好特长:<br>
        意见建议:</td>
      <td colspan="2"> 
        <textarea name="note" cols="57" rows="10" id="note"><%=rs("note")%></textarea></td>
    </tr>
    <tr bgcolor="f8f8f8"> 
      <td height="35"></td>
      <td colspan="2"> 
        <input type=submit value='提 交' name='bm' >
        <input name="act" type="hidden" id="act" value="y">
        <input name="id" type="hidden" id="id" value="<%=id%>">
		<input name="reurl" type="hidden" id="reurl" value="<%=request.serverVariables("Http_REFERER")%>">
		</td>
    </tr>
</form>
</table>
</body>
</html>
<%closedb%>
