⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 type.asp

📁 三鸟个人网站源码。
💻 ASP
字号:
<%@ ENABLESESSIONSTATE = FALSE %>
<!--#include file="config.asp" -->
<!--#include file="mdb/conn.asp" -->
<html>
<head>
<%
dim typename,classid,classname
if IsNumeric(Request.QueryString("typeid"))=False then
Response.Redirect"info.asp?info=错误的参数"
else
typeid=cint(Request.QueryString("typeid"))
end if
set temprs=conn.execute("select name,classid from type where id="&typeid)
typename=temprs(0)
classid=temprs(1)
classname=temprs(0)
set temprs=nothing
%>
<title><%=title%> >> <%=desktoptitle%> >> <%=classname%> >> <%=typename%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="1.css" type="text/css">
<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; background-image: URL(images/bg3.gif);
background-position: center;
background-attachment: fixed;}
.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}
.bk1 {
	BORDER-BOTTOM: #999999 1px dashed; BORDER-LEFT: #999999 1px dashed; BORDER-RIGHT: #999999 1px dashed; BORDER-TOP: #999999 1px dashed
-->
</style>
</head>

<body bgcolor="<%=bgcolor%>" text="#000000">
<!--#include file="top.asp" --><div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="760" height="459" BGCOLOR="#FFFFFF"> 
<tr> <td width="20" height="445" align="center" rowspan="2" BACKGROUND="images/bg.gif"> 
<p align="center"></td><td height="18" align="center" colspan="2"><DIV ALIGN="LEFT"> 站内导航:<A HREF="index.asp">返回首页</A> 
<%
sql = "SELECT * FROM type 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"还没有分类"
else
do while not rs.eof
Response.Write"| <a href='type.asp?typeid="&rs("id")&"'>"&rs("name")&"</a>"
rs.movenext
loop
end if
rs.close
Set rs=Nothing
%> </DIV></td><td width="22" height="445" align="center" rowspan="2" BACKGROUND="images/bg.gif"></td></tr> 
<tr> <td width="195" height="427" align="LEFT" VALIGN="TOP"><TABLE WIDTH=195 BORDER=0 CELLPADDING=0 CELLSPACING=0> 
<TR> <TD COLSPAN=3> <IMG SRC="images/img21_1.gif" WIDTH=195 HEIGHT=289 ALT="" USEMAP="#Map" BORDER="0" HREF="http://www.3niao.com/home/link"></TD></TR> 
<TR> <TD ROWSPAN=6> <IMG SRC="images/img21_2.gif" WIDTH=14 HEIGHT=331 ALT=""></TD><TD WIDTH="168" HEIGHT="83" VALIGN="TOP"><BR> 本站的所有服务或意见请到本留言本中<A HREF="http://www.3niao.com/home/gbook/Guest.asp" TARGET="_blank"><FONT COLOR="#ff3399">留言</FONT></A>.<BR>联系邮址:<A HREF="webmaster@3niao.com">webmaster@3niao.com</A> 
</TD><TD ROWSPAN=6> <IMG SRC="images/img21_4.gif" WIDTH=13 HEIGHT=331 ALT=""></TD></TR> 
<TR> <TD> <IMG SRC="images/img21_5.gif" WIDTH=168 HEIGHT=57 ALT=""></TD></TR> 
<TR> <TD WIDTH="168" HEIGHT="83"><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="3"> 
<FORM NAME="form1" METHOD="get" ACTION="search.asp"> <TR ALIGN="center"> <TD COLSPAN="2" >给我Search<BR> 
<INPUT TYPE="text" NAME="key" SIZE="15" CLASS="an"> <INPUT TYPE="submit" NAME="Submit" VALUE="查找" CLASS="an"> 
</TD></TR> </FORM></TABLE></TD></TR> <TR> <TD> <IMG SRC="images/img21_7.gif" WIDTH=168 HEIGHT=15 ALT=""></TD></TR> 
<TR> <TD WIDTH="168" HEIGHT="83" VALIGN="TOP"> <BR>  本系统图片来源于网络,如果你觉得有违犯你到你的版权,请QQ联系:8119544 
搜索文件 ↓ </TD></TR> <TR> <TD> <IMG SRC="images/img21_9.gif" WIDTH=168 HEIGHT=10 ALT=""></TD></TR> 
</TABLE></td><td width="523" height="427" align="center" 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> - "&typename&"</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,ck,name,id FROM desktop where typeid="&typeid&" 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"<table align=center bgcolor='#e9e9e9' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='display.asp?id="&rs("id")&"' target='_blank'><img src='"&rs("minipic")&"' border='0' width=141 height=141 class='bk'></a></td></tbody></table><br><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"</td>"
irecordsshown = irecordsshown +1
rs.movenext 
end if

Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<table align=center bgcolor='#e9e9e9' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='display.asp?id="&rs("id")&"' target='_blank'><img src='"&rs("minipic")&"' border='0' width=141 height=141 class='bk'></a></td></tbody></table><br><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"</td>"
irecordsshown = irecordsshown +1
rs.movenext 
end if

Response.Write"<td width='33%'>"
if not rs.eof then
Response.Write"<table align=center bgcolor='#e9e9e9' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='display.asp?id="&rs("id")&"' target='_blank'><img src='"&rs("minipic")&"' border='0' width=141 height=141 class='bk'></a></td></tbody></table><br><a href='display.asp?id="&rs("id")&"' target='_blank'>"&rs("name")&"</a> | 察看:"&rs("ck")&"</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='type.asp?typeid="&typeid&"&page=1'>首页</a> | "
end if
if ipagecurrent=1 then
Response.Write"上一页 | "
else
Response.Write"<a href='type.asp?typeid="&typeid&"&page="&ipagecurrent-1&"'>上一页</a> | "
end if
if ipagecount>ipagecurrent then
Response.Write"<a href='type.asp?typeid="&typeid&"&page="&ipagecurrent+1&"'>下一页</a> "
else
Response.Write"下一页" 
end if
if ipagecount>ipagecurrent then
Response.Write"| <a href='type.asp?typeid="&typeid&"&page="&ipagecount&"'>末页</a> "
else
Response.Write"| 末页 "
end if
Response.Write"</td></tr></table>"
%></td></tr> <tr> <td height="38" align="center" colspan="4" BACKGROUND="images/footbg.gif"></td></tr><tr><td height="25" align="center" colspan="4"><%=cy%></td></tr><tr><td height="65" align="center" colspan="4"><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="70"><TR><TD BACKGROUND="images/footgb1.gif" HEIGHT="24" WIDTH="53%">&nbsp;</TD><TD HEIGHT="24" WIDTH="47%"><DIV ALIGN="RIGHT"><IMG SRC="images/foot.gif" WIDTH="269" HEIGHT="65"></DIV></TD></TR></TABLE></td></tr> 
</table></center></div><MAP NAME="Map"><AREA SHAPE="rect" COORDS="42,87,122,110" HREF="http://3niao.com/home/host/" TARGET="_blank"><AREA SHAPE="rect" COORDS="38,111,135,124" HREF="http://www.3niao.com/home/gbooks/?action=registration&user=admin" TARGET="_blank"><AREA SHAPE="rect" COORDS="42,131,137,145" HREF="http://www.3niao.com/home/count1/" TARGET="_blank"><AREA SHAPE="rect" COORDS="42,152,136,166" HREF="http://www.3niao.com/home/count2/reg.asp" TARGET="_blank"><AREA SHAPE="rect" COORDS="44,175,160,191" HREF="http://www.3niao.com/home/link" TARGET="_blank"></MAP> 
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -