<!--#include file="../../here99login/0.asp"--><!--#include file="../../conn/zkconn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<p align="center">&nbsp;</p>
  
<p align="center">分类列表</p>
  
<table width="350" align="center">
  <tr align="center" bgcolor="#CCCCCC"> 
    <td width="50">编号</td>
    <td width="200">分类</td>
    <td width="50">修改</td>
    <td width="50">删除</td>
  </tr>
  <% set rs = conn.execute("select * from kefu_lb order by id desc")
   do while not rs.eof%>
  <form name="form1" method="post" action="?x=a">
    <tr bgcolor="#f1f1f1"> 
      <td width="50" align="center"><%=rs("id")%> <input name="id" type="hidden" id="id" value="<%=rs("id")%>"></td>
      <td width="200"> <input name="lb" type="text" class="wenbenkuang" id="lb" value="<%=rs("lb")%>" size="25"></td>
      <td width="50" align="center"><input name="Submit" type="submit" class="go-wenbenkuang" value="修改"></td>
      <td width="50" align="center"><input name="Submit2" type="button" class="go-wenbenkuang" value="删除" onclick="window.location='index.asp?x=c&id=<%=rs("id")%>'"></td>
    </tr>
  </form>
  <%rs.movenext
loop
%>
</table>

<p align="center">&nbsp;</p>
<form action="?x=b" method="post" name="myform" id="form">
  <table width="350" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr valign="middle" bgcolor="#CCCCCC"> 
      <td height="25" colspan="2">&nbsp; <font color="#FF3333"><strong>&gt;&gt;添加分类</strong></font></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="100" height="25" align="center">分类</td>
      <td width="304" height="25"> <input name="lb" type="text" class="wenbenkuang" id="lb" size="25"></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="100" height="25" align="center">&nbsp;</td>
      <td height="25"> <input name="Submit3" type="submit" class="go-wenbenkuang" value="OK,提交"></td>
    </tr>
  </table>
</form>
<% Select case request("x")
   case "a"
        conn.execute("Update kefu_lb set lb= '"&request("lb")&"' where id="&request("id")&"")
	    Response.redirect "index.asp"
   case "b"
	    conn.execute("Insert into kefu_lb(lb)values('"&request("lb")&"')")
	    Response.redirect "index.asp"
   case "c"
   conn.execute("Delete kefu_lb where id="&request("id")&"")
	    Response.redirect "index.asp"
End Select
 %></body>
</html>
<%rs.close
set rs=nothing%>