📄 addproduct.asp
字号:
<!--#include file="conn.asp" -->
<%
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
'★ ★
'☆ 56770网络商城V2.3多语言版 ☆
'★ ★
'☆ 版权所有: 56770.com ☆
'★ ★
'☆ 程序制作: 56770网络 小寒 MoGui ☆
'★ email:admin@56770.com ★
'☆ QQ:88464758 ☆
'★ ★
'☆ [主页地址]http://www.56770.com ☆
'★ [支持论坛]http://bbs.56770.com/ ★
'☆ ☆
'★ 其他产品: ★
'☆ [56770MM写真系统] [56770行业信息网] ☆
'☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
%>
<%
if session("admin_name")="" then
response.redirect "default.asp"
end if
%>
<link rel="stylesheet" type="text/css" href="css.css">
<body bgcolor="#FFFFCC" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" vspace="0" hspace="0">
<tr >
<td height="27" background="images/admin_bg_1.gif">.:: 您可以在这里进行商品类别相关操作</td>
</tr>
</table>
<table border="0" cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" width="100%" align="center">
<tr>
<td height="22" bgcolor="#6699CC" width="49%">一级分类名称</td>
</tr>
<%
dim rscsort
set rs=server.CreateObject("adodb.recordset")
rs.open "Select * From 56770_sort", conn, 1, 3
do while not rs.eof
%>
<tr bgcolor="#B0CBE6">
<td height="22" width="49%"><img src="../images/+.gif"><%=rs("sort_name")%> </td>
</tr>
<%
set rscsort=server.CreateObject("adodb.recordset")
rscsort.open "Select * From 56770_csort Where sort_name=" & rs("sort_id") & "", conn, 1, 1
if not(rscsort.bof and rscsort.eof)then
do while not rscsort.eof
%>
<tr bgcolor="#E8F1FF">
<td height="22" width="49%"> <img src="../images/-.gif"><%=rscsort("csort_name")%> </td>
</tr>
<tr><td>
<table border="0" cellspacing="1" cellpadding="2" bgcolor="#FFFFFF" width="100%" align="center">
<%
set rscxsort=server.CreateObject("adodb.recordset")
rscxsort.open "Select * From 56770_cxsort Where sort_name=" & rscsort("sort_name") & " and csort_name=" & rscsort("csort_id") & "", conn, 1, 1
if not(rscxsort.bof and rscxsort.eof)then
do while not rscxsort.eof
%>
<tr bgcolor="#ffffff">
<td height="22" width="33%"> <img src="../images/-.gif"><%=rscxsort("cxsort_name")%>[<a href="product_add.asp?sort_name=<%=rscxsort("sort_name")%>&csort_name=<%=rscxsort("csort_name")%>&cxsort_name=<%=rscxsort("cxsort_id")%>&xnumber=<%=rscxsort("xnumber")%>">添加商品</a>] </td>
<%
rscxsort.movenext
if rscxsort.eof or rscxsort.bof then
response.write ""
exit do
end if
%>
<td height="22" width="33%"> <img src="../images/-.gif"><%=rscxsort("cxsort_name")%>[<a href="product_add.asp?sort_name=<%=rscxsort("sort_name")%>&csort_name=<%=rscxsort("csort_name")%>&cxsort_name=<%=rscxsort("cxsort_id")%>&xnumber=<%=rscxsort("xnumber")%>">添加商品</a>] </td>
<%
rscxsort.movenext
if rscxsort.eof or rscxsort.bof then
response.write ""
exit do
end if
%>
<td height="22" width="33%"> <img src="../images/-.gif"><%=rscxsort("cxsort_name")%>[<a href="product_add.asp?sort_name=<%=rscxsort("sort_name")%>&csort_name=<%=rscxsort("csort_name")%>&cxsort_name=<%=rscxsort("cxsort_id")%>&xnumber=<%=rscxsort("xnumber")%>">添加商品</a>] </td>
</tr>
<%
rscxsort.movenext
loop
end if
rscxsort.close
%>
</table></td></tr>
<%
set rscxsort=nothing
rscsort.movenext
loop
end if
rscsort.close
set rscsort=nothing
rs.movenext
loop
%>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -