<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<%qx=3%>
<!--#include file="check.asp"-->
<!--#include file="../include/conn.asp"-->
<html>
<head>
<title>编辑类别</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" href="../include/css.css" type="text/css">
</head>
<script language="javascript">
<!--
   function check() {
       if (form1.newTitle.value == "")
       {
	   alert("请填写类别名称");
	   form1.newTitle.focus();
	   return false;	   
	   }
       return true;
    }
//-->
</script>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<%
Select case Request("action")
case "Aedit"
sql="select * from lb where lbid="&shopnet("id")&""
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%> 
<form method="POST" action="editlb.asp?action=step1" align="center" onSubmit="return check();" name="form1">
  <input type="hidden" name="id" value="<%=Request("id")%>">
  <table width="80%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#183789">
    <tr align="center">
      <td height="25" background="images/admin_bg_4.gif" bgcolor="#FFFFFF"><span class="White_txt"><strong>编辑大类别</strong></span></td>
    </tr>
    <tr align="center"> 
      <td height="30" bgcolor="#FFFFFF">
        <p>类别名称： 
          <input type="text" name="newTitle" size="20" class=wenbenkuang value="<%=rs("lbname")%>">
          <input type="submit" value="修改" class="go-wenbenkuang" name="B3">
      </td>
    </tr>
    
  </table>
</form>
<%rs.close
set rs=nothing
Case "Nedit"
sql="select * from xlb where xlbid="&shopnet("id")&""
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1%>
<form method="POST" action="editlb.asp?action=step2" align="center" onSubmit="return check();" name="form1">
  <input type="hidden" name="id" value="<%=Request("id")%>">
  <table width="80%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#183789">
    <tr align="center">
      <td height="21" background="images/admin_bg_4.gif" bgcolor="#FFFFFF"><span class="White_txt"><strong>编辑二级类别</strong></span></td>
    </tr>
    <tr align="center"> 
      <td height="30" bgcolor="#FFFFFF">
        <p>类别名称：
          <input type="text" name="newTitle" size="20" class=wenbenkuang value="<%=rs("xlbname")%>">
          <input type="submit" value="修改" class="go-wenbenkuang" name="B3">
      </td>
    </tr>
    
  </table>
</form>
<%rs.close
set rs=nothing
Case "sedit"
sql="select * from slb where slbid="&shopnet("id")&""
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1%>
<form method="POST" action="editlb.asp?action=step3" align="center" onSubmit="return check();" name="form1">
  <input type="hidden" name="id" value="<%=Request("id")%>">
  <table width="80%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#183789">
    <tr align="center">
      <td height="21" background="images/admin_bg_4.gif" bgcolor="#FFFFFF"><span class="White_txt"><strong>编辑三级类别</strong></span></td>
    </tr>
    <tr align="center"> 
      <td height="30" bgcolor="#FFFFFF">
        <p>类别名称：
          <input type="text" name="newTitle" size="20" class=wenbenkuang value="<%=rs("slbname")%>">
          <input type="submit" value="修改" class="go-wenbenkuang" name="B3">
      </td>
    </tr>
    
  </table>
</form>
<%rs.close
set rs=nothing
End Select
conn.close
set conn=nothing
'商易仿淘宝4.0.1演示地址
'http://www.ftaobao.com
%>
<div align="center">
  <input type="button" name="button" value="关闭窗口" OnClick="Javascript:window.close();" class="go-wenbenkuang">
</div>
</body>
</html>
