📄 class.asp
字号:
<%@ ENABLESESSIONSTATE = FALSE %>
<!--#include file="config.asp" -->
<!--#include file="mdb/conn.asp" -->
<html>
<head>
<%
dim classid,classname
if IsNumeric(Request.QueryString("classid"))=False then
Response.Redirect"info.asp?info=错误的参数"
else
classid=cint(Request.QueryString("classid"))
end if
set temprs=conn.execute("select name from class where id="&classid)
classname=temprs(0)
set temprs=nothing
%>
<title><%=title%> >> <%=desktoptitle%> >> <%=classname%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
a { font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>; text-decoration: none}
a:hover { font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>; text-decoration: underline}
td { font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>}
br { font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none; color: <%=fontcolor%>}
.bk { font-size: 9pt; border: 1px <%=xcolor%> solid}
body { font-family: "宋体"; font-size: 9pt; font-style: normal; line-height: 13pt; font-weight: normal; font-variant: normal; text-transform: none}
.an { font-family: "宋体"; font-size: 9pt; background-color: <%=bgcolor%>; border: 1px <%=xcolor%> solid; color: <%=fontcolor%>}
.xzy { border: <%=xcolor%> solid; border-width: 0px 1px 1px}
.zx { border: <%=xcolor%> solid; border-width: 0px 0px 1px 1px}
.sxz { border: <%=xcolor%> solid; border-width: 1px 0px 1px 1px}
.s { border: <%=xcolor%>; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px}
.y { border: <%=xcolor%>; border-style: solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 0px}
.font { font-family: "Arial Black"; font-size: 14pt; color: <%=fontcolor%>}
.x { border: <%=xcolor%>; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
.z { border: <%=xcolor%>; border-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 1px}
.sx { border: <%=xcolor%>; border-style: solid; border-top-width: 1px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px}
-->
</style>
</head>
<body bgcolor="<%=bgcolor%>" text="#000000">
<!--#include file="top.asp" -->
<table width="750" border="0" cellspacing="0" cellpadding="3" align="center" class="xzy" height="25">
<tr>
<td bgcolor="<%=titlecolor%>"> 站内导航:<a href="index.asp">返回首页</a><font color="#0000FF">→<a href="type.asp?typeid=4">校园风光</a>→<a href="type.asp?typeid=5">班级靓照</a>—<a href="type.asp?typeid=6">兄弟情深</a></font></td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="5" align="center" class="xzy" height="400">
<tr>
<td width="179" valign="top" class="y" align="center" bgcolor="#3798FF">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<form name="form1" method="get" action="search.asp">
<tr>
<td width="63%">搜索文件 ↓</td>
<td width="37%" align="right">Search</td>
</tr>
<tr align="center">
<td colspan="2" class="s">
<input type="text" name="key" size="15" class="an">
<input type="submit" name="Submit" value="确定" class="an">
</td>
</tr>
</form>
</table>
<%
'------推荐壁纸------
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td width='61%'>本站推荐壁纸 ↓</td><td align='right' width='39%'>HOT PIC</td></tr><tr><td align='center' class='s' colspan='2'>"
sql = "SELECT minipic,id,name,ck FROM desktop where hot=1 ORDER BY id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,0,1
if rs.eof and rs.bof then
Response.Write"还没有被推荐的图片<br><br></td></tr>"
else
Response.Write"<a href='display.asp?id="&rs("id")&"' target='_blank'><img src='"&rs("minipic")&"' border='0'></a></td></tr><tr><td colspan='2' align='center'><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"<br><br></td></tr>"
end if
rs.close
Set rs=Nothing
Response.Write"</table>"
'------壁纸浏览排行------
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td width='56%'>壁纸浏览排行 ↓</td><td align='right' width='44%'>TOP 10</td></tr><tr><td colspan='2' height='1' bgcolor='"&xcolor&"'></td></tr>"
dim top
top=0
sql = "SELECT name,ck,id FROM desktop ORDER BY ck DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,0,1
if rs.eof and rs.bof then
Response.Write"<tr><td colspan='2' align='center'>还 没 有 任 何文 件</td></tr>"
else
do while not rs.eof
Response.Write"<tr><td colspan='2'><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"</td></tr>"
rs.movenext
top=top+1
if top=10 then exit do
loop
end if
rs.close
Set rs=Nothing
Response.Write"<tr><td colspan='2' class='s'> </td></tr></table>"
%>
</td>
<td width="551" valign="top">
<%
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='3' class='x'><tr><td>您当前的位置:<a href='"&homeurl&"'>"&title&"<a> - <a href='index.asp'>"&desktoptitle&"</a> - "&classname&"</td></tr></table>"
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='5'>"
Dim ipagecount
Dim ipagecurrent
Dim strorderBy
Dim irecordsshown
if request.querystring("page")="" then
ipagecurrent=1
else
ipagecurrent=cint(request.querystring("page"))
end if
sql = "SELECT minipic,name,id FROM type where classid="&classid&" ORDER BY id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.pagesize = 9
rs.cachesize = 9
rs.open sql,conn,1,1
ipagecount = rs.pagecount
If ipagecurrent > ipagecount Then ipagecurrent = ipagecount
If ipagecurrent < 1 Then ipagecurrent = 1
if ipagecount=0 then
response.write "<tr><td align='center'>没有任何文件</tr></td>"
else
rs.absolutepage = ipagecurrent
irecordsshown = 0
do while irecordsshown<9 and NOT rs.EOF
Response.Write"<tr align='center'>"
Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<a href='type.asp?typeid="&rs("id")&"'><img src='"&rs("minipic")&"' border='0' class='bk'></a><br><br><a href='type.asp?typeid="&rs("id")&"'>"&rs("name")&"</a></td>"
irecordsshown = irecordsshown +1
rs.movenext
end if
Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<a href='type.asp?typeid="&rs("id")&"'><img src='"&rs("minipic")&"' border='0' class='bk'></a><br><br><a href='type.asp?typeid="&rs("id")&"'>"&rs("name")&"</a></td>"
irecordsshown = irecordsshown +1
rs.movenext
end if
Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<a href='type.asp?typeid="&rs("id")&"'><img src='"&rs("minipic")&"' border='0' class='bk'></a><br><br><a href='type.asp?typeid="&rs("id")&"'>"&rs("name")&"</a></td>"
irecordsshown = irecordsshown +1
rs.movenext
end if
Response.Write"</tr>"
loop
end if
rs.Close
set rs=nothing
Response.Write"</table>"
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='5' class='s'><tr><td height='20'>每页显示 9 个分类 共有 "&ipagecount&" 页 当前为第 "&ipagecurrent&" 页 "
if ipagecurrent=1 then
Response.Write"首页 | "
else
Response.Write"<a href='class.asp?classid="&classid&"&page=1'>首页</a> | "
end if
if ipagecurrent=1 then
Response.Write"上一页 | "
else
Response.Write"<a href='class.asp?classid="&classid&"&page="&ipagecurrent-1&"'>上一页</a> | "
end if
if ipagecount>ipagecurrent then
Response.Write"<a href='class.asp?classid="&classid&"&page="&ipagecurrent+1&"'>下一页</a> "
else
Response.Write"下一页"
end if
if ipagecount>ipagecurrent then
Response.Write"| <a href='class.asp?classid="&classid&"&page="&ipagecount&"'>末页</a> "
else
Response.Write"| 末页 "
end if
Response.Write"</td></tr></table>"
%>
</td>
</tr>
</table>
<table width="750" border="0" cellspacing="0" cellpadding="3" align="center" class="xzy" height="25">
<tr>
<td colspan="2" bgcolor="<%=titlecolor%>" align="center">
<marquee behavior="alternate">欢迎光临本班靓照区,如果你想在此地上传你的照片,请与我联系QQ:173975590 EMAIL:jjxyxs@163.com</marquee></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -