<!--#include file="admin_chk.asp"-->
<!--#include file="admin_conn.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文章分类</title>
<link href="page.css" rel="stylesheet" type="text/css">
</head>

<body>
<br>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT  * From news_flm order by news_px",conn,1,1
%>
<table width="188" height="34" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center">文章分类</div></td>
  </tr>
</table>
<table width="568" height="366" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
  <tr>
    <td valign="top" bgcolor="#FFFFFF">
      <br>
      <table width="465" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td><div align="center" class="helptopic">分类排序值为数字，最好不要重复！</div></td>
        </tr>
      </table>
      <br>
      <hr width="90%" size="1" class="form">
      <table width="521" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="195"><div align="center">分类名称</div></td>
        <td width="162"><div align="center">分类排序</div></td>
        <td width="164"><div align="center">相关操作</div></td>
      </tr>
    </table>
      <% if rs.eof and rs.bof then
response.write "目前还没有分类！"
else
do while not rs.eof %>
      <table width="521" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><form name="form2" method="post" action="wzfl_edit.asp">
          <table width="520" height="28" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="194"><div align="center">
                <input name="news_flm" type="text" class="form" id="news_flm" value="<%=rs("news_flm")%>">
              </div></td>
              <td width="165"><div align="center">
                <input name="news_px" type="text" class="form" id="news_px" value="<%=rs("news_px")%>" size="4">
                <input type="hidden" name="id" value="<%=rs("id")%>">
              </div></td>
              <td width="161"><div align="center">
                <input name="Submit" type="submit" class="Gray" value="修改">　
                <input name="Submit" type="button" class="Gray" onClick="javascript:location.href='wzfl_del.asp?id=<%=rs("id")%>';" value="删除">
              </div></td>
            </tr>
          </table>
        </form></td>
      </tr>
    </table>
	<% rs.movenext
	   loop
	   end if
	   rs.close
	   set rs=nothing
	 %>
    <br>      
    <hr width="90%" size="1" class="form">
      <form name="form1" method="post" action="wzfl_add.asp">
      <table width="521" height="59" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="193" height="25"><div align="center">分类名称</div></td>
          <td width="164"><div align="center">分类排序</div></td>
          <td width="164"><div align="center">是否添加</div></td>
        </tr>
        <tr>
          <td><div align="center">
            <input name="news_flm" type="text" class="form" id="news_flm">
          </div></td>
          <td width="164"><div align="center">
            <input name="news_px" type="text" class="form" id="news_px" size="4">
          </div></td>
          <td width="164"><div align="center">
            <input name="Submit" type="submit" class="Gray" value="添加分类">
          </div></td>
        </tr>
      </table>
      </form></td>
  </tr>
</table>
</body>
</html>
 
