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

📄 list.asp

📁 可以做论坛
💻 ASP
字号:
<%@ Language=VBScript %>
<%
Response.Buffer = True 
Response.ExpiresAbsolute=now()-1
Response.Expires=0
Response.CacheControl="no-cache"
%>
<!--#include file="user.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="ubb.asp"-->
<!--#include file="sysinfo.asp"-->
<!--#include file="bottom.asp"-->
<!--#include file="newshowtop.asp"-->
<!--#include file="luntantuijian.asp"-->
<!--#include file="asptbfunction.asp"-->
<html>
<head>
<script language=javascript>
<!--
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.form.submit();}}
}
function textCount(obj,a_limit){
  if (obj.value.length > a_limit) {
obj.value = obj.value.substring(0,a_limit);
      }
  else {
document.form.remLen.value = obj.value.length;
       }
  }
-->
</script>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=<%=scss%>.css rel="stylesheet" type="text/css">
</head>
<body>
<% 
Server.ScriptTimeOut=120
IDL=request("idl")
jhua=request("jing")
nemerstr=IDL
call ornonemer(nemerstr,nonemer)
if IDL<>"" and nonemer=0 then '是否为空
ccfl="select  * from luntan where idl="&IDL&""
set rsfl=server.createobject("adodb.recordset")
rsfl.open ccfl,conn,1,1
if not rsfl.eof then '已删除
fenlei=rsfl("fenlei")
if CInt(fenlei)<1 then
fenlei=""
else
ccfll="select  * from luntan where idl="&fenlei&""
set rsfll=server.createobject("adodb.recordset")
rsfll.open ccfll,conn,1,1
fenlei=rsfll("luntan")
fenlei="<a href=tiebalist.asp?idl="&rsfll("idl")&" target=_self><font color=#F6F6F6>"&fenlei&"</font></a>>>>"
end if
end if
cclt="select * from luntan where idl="&IDL
set rslt=server.createobject("adodb.recordset")
rslt.open cclt,conn,1,1
if not rslt.eof then '如果有这个论坛
if rslt("shanzhu")=0 then '如果论坛没放进回收站显示
bz=rslt("banzhu")
luntan=rslt("luntan")
if CInt(jhua)=1 then
cczt="select * from neirong  where zt=1 and shanzhu=0 and jinghuau=1 and idl="&IDL
else
cczt="select * from neirong  where zt=1 and shanzhu=0 and idl="&IDL
end if
set rszt=server.createobject("adodb.recordset")
cczt=cczt+" order by zhiding desc,huitime desc"
'cczt=cczt+" order by huitime desc"
rszt.open cczt,conn,1,1
zxtei=spageshu-5
cczx="select top "&zxtei&" * from neirong  where zt=1 and shanzhu=0"
set rszx=server.createobject("adodb.recordset")
cczx=cczx+" order by huitime desc"
rszx.open cczx,conn,1,1

%>
<title><%=rslt("luntan")%><%=sbbs%></title>
<table width="775" border="0" align="center" cellspacing="0">
    
  <tr>
     <td width="200"><a href=./><img src=<%=slogo%> border=0></td>
    <td><form name=form2 method=post action=searh.asp>
        <table width=100% border=0 align=center cellspacing=0>
            
		  <tr> 
            <td><div align=center> 
                <input name=key type=text value="<%=luntan%>" size=30>
                <input type=submit name=Submit value=贴吧搜索>
              </div></td>
          </tr>
		    
		     
          <tr> 
            <td><div align=center> 
                <input name=rad type=radio value=1  checked>
                进入贴吧 
                <input type=radio name=rad value=2>
                查找主题 
                <input type=radio name=rad value=3>
                查找内容 
                <input type=radio name=rad value=4>
                国际搜索 </div></td>
          </tr>
		    
        </table>
      </form></td>
    <td width="120">
	<table width=100% border=0 align=center cellspacing=0>
	
	<tr><td>
	<%=stoprguang%>
	</td></tr>
	
	</table>
	</td>
  </tr>
    
</table>
<!--#include file="gongneng.asp"-->
<table width=775 border="0" align="center" cellspacing="0" class="td4">
  
  <tr> 
    <td>·<a href="./"><font color="#F6F6F6">首页</font></a>&gt;&gt;&gt;<%=fenlei%><a href="list.asp?idl=<%=rslt("idl")%>" target="_self"><font color="#F6F6F6"><%=rslt("luntan")%><%=sbbs%></font></a> 
    </td>
    <td>[贴数/主题:<%=rslt("tieshu")%>/<%=rslt("zhutishu")%>] 
     </td>
    <td><a href="#wz"><font color="#F6F6F6">发表新主题</font></a> </td><td><a href=list.asp?idl=<%=rslt("idl")%>&jing=1><font color="#F6F6F6">精华贴</font></a></td><td>[<a href=shenqingbz.asp?idl=<%=rslt("idl")%>><font color="#F6F6F6">申请吧主</font></a>]</td>
    <td>吧主: 
      <%
	Dim MyString, bbz
	if bz="notbz" then 
    Response.Write"<font color=#F6F6F6>还没吧主,欢迎申请!</font>"
    else '有斑竹
    MyString = bz
    j=1
    leng=1
    for i=1 to len(MyString)
    if instr(j,MyString,"|")>0 then
    j=instr(j,MyString,"|")+1
    leng=leng+1
    end if
    next

    bbz = Split(MyString, "|",leng+1) 

    i=0 

    do while i<leng
    huibz="select * from user where idy="&bbz(i)
    set rsbz=server.createobject("adodb.recordset")
    rsbz.open huibz,conn,1,1
    Response.Write"<a href=showuser.asp?idy="&bbz(i)&"><font color=#F6F6F6>"&rsbz("bm")&"</font></a>" 
    Response.Write(" ") 
    i=i+1
    loop
	end if'有斑竹
	%>
    </td>
  </tr>
  
</table>
<table width=775 border="0" align="center" cellspacing="0">
  
  <tr>
    <td width="70%" valign="top"> 
      <%if not rszt.eof then '还没有贴子 %>
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          
		<tr class="td1"> 
          <td width="8%" >点击</td>
          <td width="8%" height="20">回复</td>
          <td width="35%">主题</td>
          <td width="15%">作者</td>
          <td width="20%">更新时间</td>
          </tr>
        <%
IF not rszt.eof then
rszt.PageSize = spageshu 
Page = CLng(Request("Page"))
nemerstr=Page
call ornonemer(nemerstr,nonemer)
if Page="" or nonemer>0 then 
Page=1
end if
If Page < 1 Then Page = 1 
If Page > rszt.PageCount Then Page = rszt.PageCount 
end if
rszt.AbsolutePage = Page
iy=0
For iPage = 1 To rszt.PageSize
iy=iy+1
ii=iy mod 2
if ii=1 then 
bgc=""
else 
bgc="td6"
end if
%>
       
	      <tr class=<%=bgc%>> 
          <td><%=rszt("yue")%></td>
          <td><%=rszt("lay")-1%></td>
          <td> 
            <%
		  if rszt("html")=1 then
		  Response.Write "<a href=jinghuau/"&rszt("idl")&"/"&rszt("ids")&".htm target=_self>"
		  else
		  Response.Write "<a href=show.asp?ids="&rszt("ids")&" target=_self>"
		  end if
		  
		  if rszt("zhiding")=1 then
		  Response.Write "<font color=#FF0000>[置顶]</font>"
		  else
		  end if
		  if rszt("jinghuau")=1 then
		  Response.Write "<font color=#FF0000>[精华]</font>"
		  else
		  end if
		  %>
            <%=rszt("zhuti")%> </a></td>
          <td> 
            <%
		  idzz=rszt("zuozhe")
		  if idzz=0 then
		  bmm="游客"
		  Response.Write ""&bmm&""
		  else 
		  huizz="select * from user where idy="&idzz
          set rszz=server.createobject("adodb.recordset")
          rszz.open huizz,conn,1,1
		  bmm=rszz("bm")
		  Response.Write "<a href=showuser.asp?idy="&rszz("idy")&">"&bmm&"</a>"
		  rszz.close
          set rszz=nothing		  
		  end if
		  
		  %>
          </td>
          <td>
		  <%response.Write""&Mid(rszt("huitime"),4)&""%>
		  </td>
          </tr>
		
        <% rszt.MoveNext 
If rszt.EOF Then Exit For 
Next 
%>
     
      </table>
	  <%end if '还没贴子%>
    </td>
    <td width="30%" valign="top"> 
      <table width="100%" border="0" cellspacing="0">
        
		<tr> 
          <td height="20" align="center" class="td1"><a href="/" target="_self"><%=swebname%></a>最新推荐:</td>
        </tr>
		
		
        <tr> 
          <td class=tdz12> 
            <%=luntantuijian%>
          </td>
        </tr>
		
      </table>
      <table width="100%" border="0" cellspacing="0">
        
		<% if len(srguang)>6 then%>
		<tr> 
          <td align="center">
		  <table width="100%" border="0" cellspacing="0">
		  
		  <tr>
		  <td>
		  <%=srguang%>
		  </td>
		  </tr>
		  
		  </table>
		  </td>
        </tr>
		
		<%end if%>
		
        <tr> 
          <td align="center" valign="top" class="td1">最新回复主题 </td>
        </tr>
		
		
        <tr>
          <td align="left" valign="top" class=tdz12> 
          <%=newshowtop%>
          </td>
        </tr>
		
      </table></td>
  </tr>
</table>
<table width="775" border="0" align="center" cellspacing="0">
  <tr>    
    <td> 
      <%
Response.write"第" & Page & "页/总共有" & rszt.PageCount & " 页 每页"& rszt.PageSize &"个主题"

If Page <> 1 Then 
Response.Write "<A HREF=list.asp?idl="&IDL&"&Page=1>第一页</A>

⌨️ 快捷键说明

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