

<head>
<link href="images/css.css" rel="stylesheet" type="text/css">


<link href="css.css" rel="stylesheet" type="text/css">
</head>


<table cellpadding="0" cellspacing="0" width="100%" height="100%">
  <tr>
    <td width="100%" height="100%" align="center">
	<span class="STYLE1">[ 分类管理 ]</span><span class="STYLE3"><br><br>   
    <a href="index.asp">返回主页</a><br>
    <br></span>
	
      <table width="780" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#B5CDE6">
		  <tr>
			<td>


<hr size="2" width="780" color="#BBD1E8">
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from class_info"
rs.open sql,conn,1,1
%>

	<%
	if (CStr(Request("MM_update")) = "form2") Then
	id = request.Form("id")
	order_id=request.Form("order_id")
	class_info=request.Form("class_info")
	sql1="update class_info set order_id='"&order_id&"',class_info='"&class_info&"' where id="&id
	conn.execute sql1
	Response.Redirect("m_class.asp")
	end if
	%>

<center>
<% do while not rs.eof %>

<form name="form2" method="POST" action="<%=MM_editAction%>">
    <input name="order_id" type="text" size="6" value="<%=rs("order_id")%>">　 
	<input name="class_info" type="text" value="<%=rs("class_info")%>">　 
	<input type="submit" name="Submit2" value="修 改">　　 
	<a href="del_class.asp?id=<%=rs("id")%>" class="STYLE3" onClick="return confirm('是否确定删除？');">[删除]</a>
	<input type="hidden" name="MM_update" value="form2"> 
	<input type="hidden" name="id" value="<%=rs("id")%>"> 
</form>

<%
rs.MoveNext
loop
%>

<hr width="780" size="2" noshade="noshade" color="#BBD1E8">
<span class="STYLE5">[ 添加分类 ]</span><br> 
<form action="add_class.asp" method="post" class="STYLE6">

	排序: 
	<input type="text" size="6" name="order_id">　 
	名字:<input type="text" name="class_info">　 
	<input type="submit" value="添加分类">
</form>			</td>
		  </tr>
	  </table>
<br><br><br>    </td>
  </tr>
</table>