📄 class1_list.asp
字号:
<%
if request.cookies("adminok")="" then
response.redirect "shop_login.htm"
end if
%>
<html>
<head>
<title>大类管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function confirmdel(id){
if (confirm("真的要删除此大类?"))
window.location.href="del_class1.asp?id="+id+" " }
</script>
</head>
<body text="#000000">
<!--#include file="index_top.asp" -->
<br>
<div align="center">
<center>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sqltext="select * from Class_1"
rs.open sqltext,conn,1,1
%> <TABLE cellSpacing=1 cellPadding=4 width=428 bgColor=#416327 height="136">
<TBODY>
<TR vAlign=top bgColor=#e6e4c4>
<TD class=main1 width="414" height="10" bgcolor="#99ccff"></TD></TR>
<TR vAlign=top bgColor=#e6e4c4>
<TD class=main1 width="414" height="18">大类管理--</TD>
</TR>
<TR vAlign=top bgColor=#e6e4c4>
<TD class=main1 width="414" height="15">
<table border="1" cellpadding="0" cellspacing="0" width="101%" bordercolorlight="#99ccff" bordercolordark="#E6E4C4">
<tr class=main1>
<td width="50%" bgcolor="#99ccff" align="center" height="20"><font color="#FFFFFF">大类名称</font></td>
<td width="25%" bgcolor="#99ccff" align="center" height="20"><font color="#FFFFFF">操作</font></td>
</tr>
<%
if not rs.eof then
do while not rs.eof
%>
<tr class=main1>
<td width="75%" align="center" height="25"><%=rs("Class_1_Name")%></td>
<td width="35%" align="center" height="25">
<%response.write "<a href='javascript:confirmdel(" & rs("Id") & ")'><font color=#0000FF>删除</font></a>"
%>
</td>
</tr>
<%
rs.movenext
loop
end if
%>
</table>
</TD></TR>
<TR bgColor=#e6e4c4>
<TD class=main1 width="414" height="27">
<p align="center">
</TD></TR>
<TR bgColor=#e6e4c4>
<TD class=main1 width="414" height="4" bgcolor="#99ccff"></TD></TR></TBODY></TABLE><br>
<%
rs.close
conn.close
%>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -