<!--#include file="conn.asp"-->
<!--#include file="../../admin/checkUser.asp"-->
<%

lid=request("id")
sql="select * from class where id=cint('"&lid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,1,1
if not rs.eof then
class_name=request.form("class_name")
address=request.form("address")
if class_name<>"" and edit<>"修改" then
sql="select * from class where id=cint('"&lid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs("class_name")=class_name
rs.update
Response.write "<script>alert(""修改成功"");location.href=""adminclass.asp"";</script>"
end if
end if
%><body background="../../admin/bg_line.gif">

 <div align="center">
  <center>
 <form action="" method="post">
  <table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>
      <td width="42%" align="right">分类名：</td>
      <td width="58%"><input type="text" name="class_name" size="30" value="<%=rs("class_name")%>"></td>
    </tr>
   	    <tr>
      <td width="100%" align="right" colspan="2">
        <p align="center"><input type="submit" value="修改" name="xiufai">&nbsp;&nbsp; 
        <input type="reset" value="取消" name="reset">
              &nbsp; <a href="adminclass.asp">返回管理页面</a>
          </td>
    </tr>
  </table>
 </form>
  </center>
</div>                 
