📄 list2.asp
字号:
<%Response.Buffer=true%>
<!--#include file="char.asp"-->
<!--#include file="onlinechk.asp"-->
<%
startime=timer()%>
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<!--#include file="style.asp"-->
<title>二手交易论坛</title>
<script src=hd.js></script>
<script>
function see(Url)
{
msgwin=window.open(Url,"","left=178,top=50,width=521,height=490,resizable=no,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
function user(Url)
{
msgwin=window.open(Url,"","left=178,top=50,width=740,height=415,resizable=no,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<link href="3.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" >
<%
if boardtype="2" and Request.Cookies("bookbaby")("username")="" then Response.Redirect "userlogin.asp?errmsg="&server.URLEncode("本论坛为正规论坛,需要登陆才能浏览!")
dim count
if request("boardid")="" then
response.write "<script>javascript:alert('请选择论坛!');window.close();</script>"
response.end
else
boardid=request("boardid")
set rs=conn.execute("select count from board where boardid="&boardid&"")
if not rs.eof then
count=rs("count")
else
response.write "<script>javascript:alert('该论坛不存在,可能已经被管理员删除!');window.close();</script>"
response.end
end if
rs.close
end if
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td width="100%" height="683" align="center" valign="top" background="images/lvbgcolor.gif" bgcolor="#FFFAF6">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="188">
<tr>
<td height="14" colspan="6" valign="bottom"> </td>
</tr>
<tr>
<td height="50" colspan="2" rowspan="3" valign="bottom"><a href="http://www.cq2s.net"><img src="2s/2S/logo.jpg" width="199" height="53" border="0"></a></td>
<td width="25" height="50" rowspan="3"> </td>
<td height="13" colspan="3"> <div align="center"><font color="#FF6633" size="2"> </font><strong></strong></div></td>
</tr>
<tr>
<td height="21" colspan="3"> </td>
</tr>
<tr>
<td height="13" colspan="3"> </td>
</tr>
<tr>
<td width="96" height="30"> <div align="left"><img src="2s/2S/wc01.gif" width="64" height="30" align="bottom"></div></td>
<td width="164" background="2s/2S/2.jpg" height="30"><img src="2s/2S/3.jpg" width="54" height="30"></td>
<td colspan="4" background="2s/2S/2.jpg" height="30"> </td>
</tr>
<tr bgcolor="#DEDEDE">
<td colspan="6" height="13"> </td>
</tr>
<tr>
<td height="26" colspan="3"> <img src="2s/2S/wei.jpg" width="156" height="24">
</td>
<td width="377" align="center" height="26"><MARQUEE scrollAmount=2 scrollDelay=80>
<% dim biaoti
biaoti=request("boardid")
select case biaoti
case "7" response.write"<font color='#D35A05' size=2>水城论坛 斑竹:JJ</font>"
case "8" response.write"<font color='#D35A05' size=2>贴图论坛 斑竹:JJ</font>"
case "9" response.write"<font color='#D35A05' size=2>电脑技术 斑竹:暂无,欢迎申请</font>"
case "10" response.write"<font color='#D35A05' size=2>下载交流 斑竹:暂无,欢迎申请</font>"
case "11" response.write"<font color='#D35A05' size=2>音乐论坛 斑竹:JJ,applesuperman</font>"
case "12" response.write"<font color='#D35A05' size=2>时尚数码 斑竹:饮冰浪子</font>"
case "13" response.write"<font color='#D35A05' size=2>在线视频 斑竹:暂无,欢迎申请 </font>"
case "14" response.write"<font color='#D35A05' size=2>FLASH论坛 斑竹:JJ</font>"
case "15" response.write"<font color='#D35A05' size=2>游戏论坛 斑竹:tawewo</font>"
case "17" response.write"<font color='#D35A05' size=2>水城论坛 斑竹:JJ</font>"
case "18" response.write"<font color='#D35A05' size=2>南京二手交易 斑竹:暂无,欢迎申请 </font>"
case "19" response.write"<font color='#D35A05' size=2>房屋租赁 斑竹:暂无,欢迎申请 </font>"
case "5" response.write"<font color='#D35A05' size=2>交易黑名单 斑竹:暂无,欢迎申请 </font>"
case else
response.write"<font color='#D35A05' size=2>重庆二手交易论坛 斑竹:老歌哼哼,nebulae</font>"
end select
%>
</MARQUEE > </td>
<td width="100" align="center"> </td>
<td width="231" height="26"><div align="right"><img src="2s/2S/tanzhu.gif" width="230" height="24"></div></td>
</tr>
<tr bgcolor="#FDE3BC">
<td height="14" colspan="6"> <div align="center"><font color="#CC6600" size="2">
<% dim name
name=Request.Cookies("bookbaby")("username")
response.write name
%>
</font><font color="#0000FF" size="2"><font color="#0033FF" size="2"><font color="#CC6600">:欢迎您的光临,感谢您对我们的支持!请您多多灌水!</font></font></font></div></td>
</tr>
<tr bgcolor="#FFFAF6">
<td colspan="6" height="14"> </td>
</tr>
<tr bgcolor="#FFFAF6">
<td colspan="6" height="13"> <font color="#D35A05" size="2">
<% dim rs8,sql8
set rs8=server.createobject("adodb.recordset")
sql8="select * from user"
rs8.open sql8,conn,1,1
r1=rs8.recordcount
%>
目前论坛总共注册人数:<%=r1%>人
<%
UserCount=0
online=application("online")
for i=0 to ubound(online)
if instr(online(i),"客人")<=0 then
UserCount=UserCount+1
end if
next
response.write "<font color='#D35A05' size=2>目前论坛总共在线</font><font color='#D35A05' size=2><b> "&(ubound(online)+1)&" </b></font><font color='#D35A05' size=2>人,其中注册用户为</font><b><font color='#D35A05' size=2> "&UserCount&" </font></b><font color='#D35A05' size=2>人,访客为</font><b><font color='#D35A05' size=2> "&(ubound(online)-UserCount+1)&" </font></b><font color='#D35A05' size=2>人 </font>"&_
"<hr align=""center"" width=""100%"" size=""1"" color='#FBCB85' noshade>"
for i=0 to ubound(online)
if instr(online(i),stat)>0 then
onlinearr=split(online(i),"|")
if instr(onlinearr(0),"客人")>0 then
onlinename=left(onlinearr(0),2)
else
onlinename=onlinearr(0)
end if
response.write "<img align=absmiddle src=images/"
if onlinearr(3)="True" then
response.write "male.gif height=16 width=16> <a href=userinf.asp?name="&onlinearr(0)
elseif onlinearr(3)="False" then
response.write "female.gif height=16 width=16> <a href=userinf.asp?name="&onlinearr(0)
else
response.write "guest.gif height=11 width=12> <a href style=""cursor:hand;"""
end if
response.write " target=_top title=当前位置:"&onlinearr(1)&">"
if onlinearr(0)=Request.Cookies("bookbaby")("username") or right(onlinearr(0),9)=right(username,9) then
response.write "<font color='#D35A05' size=2>"&onlinename&"</font>"
else
response.write onlinename
end if
response.write "</a> "
end if
next
%>
</font> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr bgcolor="#FFFAF6">
<td colspan="3"> </td>
</tr>
<tr>
<td width="17%" height="24" background="2s/2S/zhong3.gif"><img src="2s/2S/paihang.jpg" width="134" height="24"></td>
<td width="11%" valign="middle" background="2s/2S/zhong3.gif"> <div align="right"><font color="#D35A05" size="2">前10名用户:</font>
</div></td>
<td width="72%" valign="middle" background="2s/2S/zhong3.gif">
<% dim rs20,sql20
set rs20=server.createobject("adodb.recordset")
sql20="select * from user order by score desc"
rs20.open sql20,conn,1,1
dim i
i=0
do while not rs20.eof and i<10
i=i+1
response.write"<font color='#D35A05' size=2>"&rs20("username")&" "
rs20.movenext
loop
%>
<div align="center"></div>
<div align="center"></div>
<div align="center"></div>
<div align="center"></div>
<div align="center"></div></td>
</tr>
</table>
<p>
<% if request("boardid")=1 or request("boardid")=5 or request("boardid")=7 or request("boardid")=8 or request("boardid")=9 or request("boardid")=10 or request("boardid")=11 or request("boardid")=12 or request("boardid")=13 or request("boardid")=14 or request("boardid")=15 then%>
<% dim rs2,sql2
set rs2=server.createobject("adodb.recordset")
sql2="select * from bbs "
rs2.open sql2,conn,1,1
%>
<%if Request.Cookies("bookbaby")("username")="" or Request.Cookies("bookbaby")("userpwd")="" then%>
</p>
<table width="100%" align="center" cellpadding="1" cellspacing="1" border="2" bordercolor="#FFCC99" dwcopytype="CopyTableRow">
<tr>
<form action="userchklogin.asp" method="post">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -