📄 product_fenlei2.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="Check.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>商品二级分类</title>
<STYLE>BODY {
FONT-SIZE: 11pt
}
TD {
FONT-SIZE: 11pt
}
a { text-decoration: none; color: #0000FF }
a:hover { text-decoration: underline; color: #FF0000 }
</STYLE>
</head>
<body bgcolor="#FFFFFF" background="../pic/user/bg.jpg" text="#000000" leftmargin="0" topmargin="0">
<br>
<table width="630" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#FFFFFF" bordercolordark="#E0E0E0" align="center">
<tr>
<td align="center"><br>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td>
<input type="button" name="submit222" value="一级分类名称管理" onClick="javascript:window.location='product_fenlei.asp'">
</td>
<td>
<input type="button" name="submit23" value="二级分类名称管理" onClick="javascript:window.location='product_fenlei2.asp'">
</td>
</tr>
</table>
<table width="600" border="0" cellspacing="3" cellpadding="4">
<tr>
<td>
<div align="center">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Class_1 "
rs.open sql,conn,1
do while not rs.eof and not rs.bof
%>
<a href="product_fenlei2.asp?Class_1_Name=<%=rs("Class_1_Name")%>"><%=rs("Class_1_Name")%></a>|
<%
rs.movenext
loop
rs.close
%>
</div>
</td>
</tr>
</table>
<br>
<%
'=====/////////////////////=/////////////////////
Class_1_Name=request("Class_1_Name")
Class_2_Name=request("Class_2_Name")
oldClass_2_Name=request("oldClass_2_Name")
id=request("id")
if request("submit")<>"" then
response.Redirect "../test.htm"
end if
%>
<table width="320" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong><%=Class_1_Name%></strong></td>
</tr>
</table>
<table width="320" border="1" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Class_2 where Class_1_Name='"&Class_1_Name&"'"
rs.open sql,conn,1
while not rs.eof and not rs.bof
%>
<tr align="center">
<form method="post" action="product_fenlei2.asp?Class_1_Name=<%=Class_1_Name%>">
<td width="65">
<input type="submit" name="submit" src style="height:14pt" value="删除" onclick="return confirm('你确认删除该二级分类名称吗?\r \n提示:此操作将删除该分类里的全部商品资料,\n删除前请确认该分类没有任何商品资料。')">
</td>
<td width="182">
<input type="hidden" name="oldClass_2_Name" value="<%=rs("Class_2_Name")%>">
<input type="hidden" name="id" value=<%=rs("id")%>>
<input type="text" name="Class_2_Name" src style="height:13pt;BORDER-RIGHT: #eeeeee 1px solid; BORDER-TOP: #aaaaaa 1px solid; BORDER-LEFT: #aaaaaa 1px solid; BORDER-BOTTOM: #eeeeee 1px solid; BACKGROUND-COLOR: #FFFFFF; color: #FF0000" value="<%=rs("Class_2_Name")%>">
</td>
<td width="65">
<input type="submit" name="submit" src style="height:14pt" value="修改">
</td>
</form>
</tr>
<%
rs.movenext
wend
%>
</table>
<br>
<form method="post" action="product_fenlei2.asp?Class_1_Name=<%=Class_1_Name%>">
<input type="text" name="Class_2_Name">
<input type="submit" name="submit" value="增加">
</form>
</td>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -