<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<title>修改分类</title>
<link href="inc_style.css" rel="stylesheet" type="text/css">
<body topmargin="0" leftmargin="0">
<div align="center">
  <center>
  <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#cac8c9" width="325" height="68">
    <form action="admin_categories_edits_check.asp?classid=<%=request("classid")%>" name="jle" method="POST">
    <tr>
    <td height="25" width="323">
    <p align="center" class="tdbar1">所属大类：
<select name="class1" size="1" style="font-size: 9pt">
<%
dim rs,sql,class1,jle,id
class1=request("class1")
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [class1] order by paixu desc" 
rs.open sql,conn,1,1
if rs.eof then
response.write "没有类别请添加！"
response.end
else
Do while not rs.eof
   id=cstr(rs("id"))
   if trim(request("class1"))=id then
      jle="selected"
   else
      jle=""
   end if
   response.write "<option " & jle & " value=" +  Cstr(rs("id")) + ">" + rs("class1") + "</option>"
   rs.MoveNext
Loop
end if
rs.close
set rs=nothing
closedb
%>
      </select>
    </td>
    </tr>
    <tr>
    <td height="25" style="border-bottom-style: none; border-bottom-width: medium" width="323">

<p align="center" class="tdbar1">分类名称：<input type="text" name="class2" size="19" value="<%=request("class2")%>"></p>

      </td>
    </tr>
    <tr>
      <td height="25" align="center" style="border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium" width="323">
<p class="tdbar1">排序数字：<input type="text" name="paixu" size="19" value="<%=request("paixu")%>"></td>
    </tr>
    <tr>
      <td width="323" height="25" style="border-top-style: none; border-top-width: medium">
<p align="center" class="tdbar"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<input type="submit" value="提交" name="B1"></td>
    </tr>
    </form>
  </table>
  </center>
</div>