📄 class.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="nimda/config.asp"-->
<!--#include file="edulcni/conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>E书部落—网上书城</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.title {font-size:14px;color:#415373;font-weight:bold;}
-->
</style></head>
<body>
<!--#include file="head.htm"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="218" align="left" valign="top" style="border-left: 1px dotted #65A8CF; border-top: 1px dotted #65A8CF; border-bottom: 1px dotted #65A8CF"><!--#include file="left.asp"--></td>
<td width="560" align="left" valign="top" style="border-left: 1px dotted #65A8CF; border-right:1px dotted #65A8CF; border-top: 1px dotted #65A8CF; border-bottom: 1px dotted #65A8CF">
<br> <table width="100%" border="0" cellpadding="2" cellspacing="2">
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select category,categoryid from category",conn,1,1
if rs.eof then response.write "对不起!还没有添加任何的分类!"
do while not rs.eof%>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><img src="images/w.gif"></td>
<td><span class="title"><%=rs("category")%></span></td>
</tr>
</table></td>
</tr>
<tr>
<td style="PADDING-LEFT: 30px;">
<%
dim rsSub
set rsSub=server.CreateObject("adodb.recordset")
rsSub.open "select sorts,sortsid from sorts where categoryid="&rs("categoryid")&" order by sortsorder",conn,1,1
if rsSub.recordcount=0 then response.Write "对不起!此大类没有添加小类!"
do while not rsSub.eof
response.Write "<a href=sub.asp?aid="&rs("categoryid")&"&nid="&rsSub("sortsid")&">"&trim(rsSub("sorts"))&"</a> "
'response.write "<A href=class.asp?aid="&rs("categoryid")&"&nid="&rsSub("sortsid")&">"&trim(rsSub("sorts"))&"</A> | "
rsSub.movenext
loop
rsSub.close
set rsSub=nothing
%>
</td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing%>
<tr>
<td> </td>
</tr>
</table> <br> </td>
</tr>
</table>
<!--#include file="foot.htm"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -