<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<%qx=4%>
<!--#include file="../store/top.asp"-->
<!--#include file="../leaguer/check.asp"-->
<!--#include file="../../include/conn.asp"-->
<% 
Select case request("x")
   case "a"
        conn.execute("Update gwzn_lb set lb= '"&shopnet("lb")&"' where id="&shopnet("id")&"")
   case "b"
	    conn.execute("Insert into gwzn_lb(lb)values('"&shopnet("lb")&"')")
   case "c"
   'conn.execute("Delete * from gwzn where lbid="&shopnet("id")&")")
   conn.execute("Delete * from gwzn_lb where id="&shopnet("id")&"")
End Select%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../include/css.css" rel="stylesheet" type="text/css">
</head>
<body><br>
<table width="500" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="30" align="center" valign="middle"><a href="gwznedit.asp">管理信息</a><font color="#1478eb">&nbsp; 
      </font>|<font color="#1478eb">&nbsp; </font><a href="gwznindex.asp">管理分类</a></td>
  </tr>
</table>

    <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#183789" >
  <tr align="center" bgcolor="#CCCCCC">
    <td height="25" colspan="4" background="../images/admin_bg_4.gif" bgcolor="#FFFFFF"><span style="color: #FFFFFF; font-weight: bold">新手指南分类管理</span></td>
    </tr>
  <tr align="center" bgcolor="#CCCCCC"> 
    <td width="50" height="21" bgcolor="#FFFFFF">编号</td>
    <td width="200" height="21" bgcolor="#FFFFFF">分类名称</td>
    <td width="50" height="21" bgcolor="#FFFFFF">修改</td>
    <td width="50" height="21" bgcolor="#FFFFFF">删除</td>
  </tr>
<% set rs = conn.execute("select * from gwzn_lb order by id")
if rs.eof then
response.Write("<tr bgcolor=""#f1f1f1""><td height=""21"" colspan=""4"" align=""center""  bgcolor=""#FFFFFF"">暂时没有分类！</td></tr>")
else

do while not rs.eof%>

    <tr bgcolor="#f1f1f1">   <form name="form1" method="post" action="?x=a">
      <td width="50" align="center" bgcolor="#FFFFFF"><%=rs("id")%> <input name="id" type="hidden" id="id" value="<%=rs("id")%>"></td>
      <td width="200" bgcolor="#FFFFFF"> <input name="lb" type="text" class="wenbenkuang" id="lb" value="<%=rs("lb")%>" size="25">      </td>
      <td width="50" align="center" bgcolor="#FFFFFF"><input name="Submit" type="submit" class="go-wenbenkuang" value="修改"></td>
      <td width="50" align="center" bgcolor="#FFFFFF"><input name="Submit2" type="button" class="go-wenbenkuang" value="删除" onClick="window.location='gwznindex.asp?x=c&id=<%=rs("id")%>'"></td></form>
  
<%

rs.movenext
loop
%>
    </tr>
    <tr bgcolor="#f1f1f1">
      <td height="21" colspan="4" align="center" bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
<%end if
rs.close
conn.close
set conn=nothing

%>
</table>

<form action="?x=b" method="post" name="myform" id="form">

    <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#183789" >
    <tr valign="middle" bgcolor="#CCCCCC"> 
      <td height="21" colspan="2" align="center" background="../images/admin_bg_4.gif" bgcolor="#FFFFFF">&nbsp; <span style="color: #FFFFFF"><strong>添加新分类</strong></span></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="100" height="25" align="center" bgcolor="#FFFFFF">分类名称</td>
      <td width="304" height="25" bgcolor="#FFFFFF"> <input name="lb" type="text" class="wenbenkuang" id="lb" size="25"></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td height="21" colspan="2" align="center" bgcolor="#FFFFFF"> <input name="Submit3" type="submit" class="go-wenbenkuang" value="OK,提交"></td>
    </tr>
  </table>
</form>
</body>
</html>
