?? product_promote_manage.asp
字號:
<!--#include file="conn.asp" -->
<!--#include file="admin_dn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="image/css.css" rel="stylesheet" type="text/css">
<%
if Trim(Request.QueryString("w"))="d" then
sql="delete from promote_2 where id="&request("id")
conn.execute(sql)
%>
<script language="VBScript" type="text/VBScript">
msgbox "刪除小類成功!!!"
</script>
<% end if %>
</head>
<body leftmargin="5" topmargin="5">
<p><strong>網站推廣管理</strong></p>
<br>
<table width="90%" height="65" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#E4E4E4">
<td height="17" colspan="4"><font color="#990000"><strong>網站推廣項目 </strong></font></td>
</tr>
<%
dim title(10),id1(10)
i=0
rs.open "promote_1",conn,1,1
while not rs.eof
i=i+1
title(i)=rs("title")
id1(i)=rs("id")
rs.movenext
wend
rs.close
for s=1 to i
%>
<tr bgcolor="#F3F3F3">
<td height="21" colspan="3"> <img src="image/def1.gif" width="7" height="7"> <%= title(s) %> </td>
<td>[<a href="product_promote_add.asp?w=del&did=<%=id1(s)%>">刪除</a>] [<a href="product_promote_edit.asp?id=<%=id1(s)%>">編輯</a>] [<a href="product_promote_add2.asp?id=<%=id1(s)%>&title=<%= title(s) %>">增加小類</a>]</td>
</tr>
<%
rs.open "select * from promote_2 where bh="&id1(s),conn,1,1
while not rs.eof
%>
<tr>
<td width="6%"> </td>
<td width="3%"><div align="center"><img src="image/def2.gif" width="5" height="8"></div></td>
<td width="28%"><%=rs("title") %></td>
<td width="63%"> [<a href="product_promote_manage.asp?w=d&id=<%=rs("id")%>">刪除</a>] [<a href="product_promote_edit2.asp?id=<%=rs("id")%>">編輯</a>]</td>
</tr>
<%
rs.movenext
wend
rs.close
next
%>
</table>
<p> </p>
<p><font color="#FF0000">注:刪除大類時將會把下面的所有小類刪除</font> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -