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

📄 bigclass.asp

📁 ASP+SQL2000+
💻 ASP
📖 第 1 页 / 共 3 页
字号:

if more=1 then
%>
                          <tr> 
                            <td width="98%" align=right height="1"><a class=class href="bigClassdeta.asp?typeid=<%=typeid%>&BigClassid=<%=request_BigClassid%>"><img src="images/more.gif" border="0" alt="更多<%=smallClassName%>"></a>&nbsp;&nbsp;</td>
                          </tr>
                          <%
else
%>
                          <tr> 
                            <td width="98%" height="18">&nbsp;暂无信息</td>
                          </tr>
                          <%	
end if
%>
                        </table>
                        <%else%>
                        <%
set rs3=server.CreateObject("ADODB.RecordSet")
%>
                        <table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber4" height="43">
                          <tr> 
                            <td height="25" background="IMAGES/menu-l-zj.gif">&nbsp;<img src=images/ico.gif>&nbsp;<font class=m_tittle><%=BigClassName%></font></td>
                          </tr>
                          <%if uselevel=1 then
if Request.cookies("key")="super" or Request.cookies("key")="typemaster" or Request.cookies("key")="bigmaster" or Request.cookies("key")="smallmaster" or Request.cookies("key")="check" then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1) order by newsid DESC"
end if
if Request.cookies("key")="" then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel=0) order by newsid DESC"
end if
if Request.cookies("key")="selfreg" then
	if Request.cookies("reglevel")=3 then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel<=3) order by newsid DESC"
	end if
	if Request.cookies("reglevel")=2 then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel<=2) order by newsid DESC"
	end if
	if Request.cookies("reglevel")=1 then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel<=1) order by newsid DESC"
	end if
end if
else
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1) order by newsid DESC"
end if
rs3.Open rs3.Source,conn,1,1
if not rs3.EOF then
more=1
else more=0
end if

while not rs3.EOF
if showyear=1 then
newsurl="soft.asp?NewsID=" & rs3("NewsID")
datetime="<font class=middle>(" & year(rs3("UpdateTime"))  &"年"& Month(rs3("UpdateTime"))  &"月"& Day(rs3("UpdateTime")) &"日)</font>"
else
newsurl="soft.asp?NewsID=" & rs3("NewsID")
datetime="<font class=middle>("& Month(rs3("UpdateTime"))  &"月"& Day(rs3("UpdateTime")) &"日)</font>"
end if
if rs3("picname")<>"" then
img="<font color=red>[图]</font>"
else
img=""
end if
title=trim(rs3("title"))
title=replace(title,"<br>","")
%>
                          <tr> 
                            <td height=1>&nbsp;&nbsp;<img src="images/006.gif" width="8" height="10" border="0">&nbsp;<a class=middle href="<%=newsurl%>" target="_blank" title="<%=title%>"><font color="<%=rs3("titlecolor")%>"> 
                              <%if len(title)>50 then%>
                              <%=left(title,50)%> 
                              <%else%>
                              <%=title%> 
                              <%end if%>
                              </font></a> 
                              <%if showtime="1" then%>
                              <%=datetime%> 
                              <%end if%>
                              <%if showclick="1" then%>
                              <font color=#666666>[<%=rs3("click")%>]</font> 
                              <%end if%>
                              <%if mode="2" then%>
                              <%=img%> 
                              <%end if%>
                              <%if year(rs3("updatetime"))=year(date()) and month(rs3("updatetime"))=month(date()) and day(rs3("updatetime"))=day(date()) then%>
                              <img src="images/new.gif" border="0"> 
                              <%end if%>
                              <%if rs3("goodnews")="1" then%>
                              <img src="images/g.gif" border="0"> 
                              <%end if%>
                              <br> &nbsp;&nbsp;&nbsp;&nbsp;简介: 
                              <%if len(rs3("content"))>200 then%>
                              <%=left(rs3("content"),200)%> 
                              <%else%>
                              <%=trim(rs3("content"))%> 
                              <%end if%>
                            </td>
                          </tr>
                          <%
rs3.MoveNext
wend
rs3.close
	


if more=1 then
%>
                          <tr> 
                            <td width="98%" align=right height="1"><a class=class href="bigClassdeta.asp?typeid=<%=typeid%>&BigClassid=<%=request_BigClassid%>&BigClassName=<%=request_BigClassName%>"><img src="images/more.gif" border="0" alt="更多<%=smallClassName%>"></a>&nbsp;&nbsp;</td>
                          </tr>
                          <%
else
%>
                          <tr> 
                            <td width="98%" height="18">&nbsp;暂无信息</td>
                          </tr>
                          <%	
end if
%>
                        </table>
                        <%end if%>
                      </td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" id="AutoNumber2" style="border-collapse: collapse" valign=top>
              <%
    
    typeid=request("typeid")
    set rs11=server.CreateObject("ADODB.RecordSet")
rs11.Source="select * from type where typeid="&typeid&" order by typeorder"
rs11.Open rs11.Source,conn,1,1
mode=rs11("mode")
rs11.close
set rs11=nothing
%>
              <%if mode=1 or mode=2 then%>
              <tr> 
                <td width="100%" height="25" valign="middle" background="IMAGES/menu-l-zj.gif"> 
                  <p align="center"><strong>本月热门</strong></td>
              </tr>
              <tr> 
                <td width="100%" background="IMAGES/menu-l.gif"> <div align="center"> 
                    <table width="98%" border="0" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="87%"> 
                          <%  
      dim ii
	ii = 0
	if uselevel=1 then
if Request.cookies("key")="" then
rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel=0 order by click DESC,newsid desc"   '选择本月
end if
if Request.cookies("key")="selfreg" then
	if Request.cookies("reglevel")=3 then
	rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel<=3 order by click DESC,newsid desc"   '选择本月
	end if
	if Request.cookies("reglevel")=2 then
	rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel<=2 order by click DESC,newsid desc"   '选择本月
	end if
	if Request.cookies("reglevel")=1 then
	rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel<=1 order by click DESC,newsid desc"   '选择本月
	end if
end if
if Request.cookies("key")="super" or Request.cookies("key")="typemaster" or Request.cookies("key")="bigmaster" or Request.cookies("key")="smallmaster" or Request.cookies("key")="check" then
rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
end if
else
rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
end if
rs.Open rs.Source,conn,1,1
	if rs.bof and rs.eof then 
		response.write "&nbsp;&nbsp;本月无更新" 
	else 
	do while not rs.eof
title=trim(rs("title"))
title=replace(title,"<br>","") 
%>
                          &nbsp;&nbsp;<img src="IMAGES/006.gif" width="8" height="10"><a class=middle href="<%=newsurl%>" title="<%=title%>" target="_blank"></a><a class=middle href="<%=newsurl%>" title="<%=title%>" target="_blank"></a> 
                          <%if mode<>4  then%>
                          <a class=middle href="ReadNews.asp?NewsID=<%=rs("NewsID")%>" title="<%=title%>" target="_blank"> 
                          <%if mode="2" then%>
                          <%if rs("picname")<>"" then%>
                          <img src='IMAGES/IMG.gif' border='0'> 
                          <%end if%>
                          <%end if%>
                          <font color="<%=rs("titlecolor")%>"><%=gottopic(title,60)%></font></a><font color="#FF0000"> 
                        </td>
                        <td width="5%" align="center">&nbsp; </td>
                        <td width="8%" align="left"><div align="center"><%=rs("click")%> 
                          </div></td>
                      </tr>
                      <tr> 
                        <td> 
                          <%else%>
                          <a class=middle href="soft.asp?NewsID=<%=rs("NewsID")%>" title="<%=title%>" target="_blank"> 
                          <%if mode="2" then%>
                          <%if rs("picname")<>"" then%>
                          <img src='IMAGES/IMG.gif' border='0'> 
                          <%end if%>
                          <%end if%>
                          <font color="<%=rs("titlecolor")%>"><%=title%><%=gottopic(title,50)%></font></a><font color="#FF0000">&nbsp; 
                          </font></td>
                        <td align="center">&nbsp;</td>
                        <td align="left"><div align="center"><font color="#FF0000"><%=rs("click")%></font> 
                            <%end if%>
                            <br>
                            <%  ii = ii + 1
    if ii>50 then exit do
	rs.movenext     
	loop
	end if  
	rs.close   
	set rs=nothing
%>
                          </div></td>
                      </tr>
                    </table>
                  </div></td>
              </tr>
              <%end if%>
            </table></td>
        </tr>
      </table>
      <p>&nbsp;</p></td>
  </tr>
  <tr valign="top">
    <td height="20" background="IMAGES/menu-d-t.gif" bgcolor="#FFFFFF">&nbsp;</td>
    <td>&nbsp;</td>
    <td height="20" background="IMAGES/menu-l-t.gif" class="daohang">&nbsp;</td>
  </tr>
</table>




<!--#include file=include/bottom.asp -->
</body>
</html>

⌨️ 快捷键说明

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