type.asp
来自「纪念伟大领袖的专题网站」· ASP 代码 · 共 1,261 行 · 第 1/5 页
ASP
1,261 行
<%@ Language=VBScript%>
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="function.asp"-->
<!--#include file="char.inc"-->
<%
typeid=checkstr(request("typeid"))
if typeid="" then
Response.Write "<script>alert('未指定参数');history.back()</script>"
response.end
else
if not IsNumeric(typeid) then
response.write "<script>alert('非法参数');history.back()</script>"
response.end
else
dim ttypename
set rs5=server.CreateObject("ADODB.RecordSet")
rs5.Source="select * from "& db_Type_Table &" where typeid=" & typeid &" order by typeorder"
rs5.Open rs5.Source,conn,1,1
ttypename=rs5("typename")
typeorder=rs5("typeorder")
rs5.Close
set rs5=nothing
%>
<%
dim typeid
typeid=checkstr(request("typeid"))
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_BigClass_Table &" where typeid="& typeid &" order by bigclassorder"
rs.Open rs.Source,conn,1,1
i=1
Dim ArrayBigClassID(10000),ArrayBigClassName(10000),ArrayBigClassView(10000)
if not rs.EOF then
rseof=1
end if
end if
while not rs.EOF
abcount=rs.RecordCount
BigClassView=rs("BigClassView")
BigClassID=rs("BigClassID")
BigClassName=trim(rs("BigClassName"))
BigClasszs=rs("BigClasszs")
ArrayBigClassView(i)=BigClassView
ArrayBigClassID(i)=BigClassID
ArrayBigClassName(i)=BigClassName
i=i+1
rs.MoveNext
wend
rs.close
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=ttypeName%>__<%=jjgn%></title>
<LINK href=news.css rel=stylesheet>
<script language="JavaScript1.2">
<!--
function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
<body topmargin="0" marginheight="0">
<!--#include file="top.asp"-->
<%
dim typename
typeid=checkstr(request("typeid"))
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_Type_Table &" where typeid="& typeid &" order by typeorder"
rs.Open rs.Source,conn,1,1
mode=rs("mode")
typename=rs("typename")
rs.close
set rs=nothing%>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr valign="top">
<td width="180" background="IMAGES/menu-d.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bordercolor="#999999">
<td height="25" align="center" valign="middle" bordercolor="#999999" background="IMAGES/menu-d-fl.gif"><font color="#000000"><%=typename%>·总栏 <%=Typeorder%></font>
</td>
</tr>
<tr>
<td height="490" valign="top" background="IMAGES/menu-d.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td align="center" valign="middle" background="IMAGES/menu-d.gif">
<%
typeid=checkstr(request("typeid"))
set Rs=conn.execute("SELECT * FROM "& db_BigClass_Table &" where typeid="&typeid&" order by bigclassorder")
do while not rs.eof
%>
<table width="100%" border="0" cellpadding="3" cellspacing="0" id="AutoNumber2" style="border-collapse: collapse">
<tr>
<td height=22 colspan="2" align="center">
<%if not Rs.eof then%>
<a class=middle href="BigClass.asp?typeid=<%=typeid%>&bigclassid=<%=Rs("bigclassid")%>"><font color="#000000"><%=Rs("bigclassname")%></font>
</a>
</td>
</tr>
<%set nRs=conn.execute("SELECT * FROM "& db_SmallClass_Table &" where bigclassid="&cstr(rs("bigclassid"))&" order by smallclassorder")%>
</table>
<%Rs.movenext
end if
loop
rs.close
%>
</td>
</tr>
</table>
<table width="102%" height="25" border="0" cellpadding="0" cellspacing="0" id="AutoNumber4" style="border-collapse: collapse">
<tr>
<td height="25" align=center background="IMAGES/menu-d-pic.gif"><font color="#000000">最新图文</font></td>
</tr>
<tr>
<td width="100%" height="20" align=center background="IMAGES/menu-d.gif" bgcolor="#FFFFFF"><br>
<%
set rs3=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(Forcast_SN)("key")="super" or Request.cookies(Forcast_SN)("key")="typemaster" or Request.cookies(Forcast_SN)("key")="bigmaster" or Request.cookies(Forcast_SN)("key")="smallmaster" or Request.cookies(Forcast_SN)("key")="check" then
rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
end if
if Request.cookies(Forcast_SN)("key")="selfreg" then
if Request.cookies(Forcast_SN)("reglevel")=3 then
rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=2 then
rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=1 then
rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
end if
end if
else
rs3.Source ="select top " & top_img & " * from "& db_News_Table &" where picnews=1 and checkked=1 and typeid="&typeid&" and picname is not null order by NewsID DESC"
end if
rs3.Open rs3.Source,conn,1,1
if not rs3.EOF then
while not rs3.EOF
fileExt=lcase(getFileExtName(rs3("picname")))
Content=htmlencode4(rs3("Content"))
%>
<table width="90%" border="0" cellspacing="0" cellpadding="3" align="center" style="TABLE-LAYOUT: fixed">
<tr>
<td style="WORD-WRAP: break-word">
<a class=middle href="ReadNews.asp?NewsID=<%=rs3("NewsID")%>" target=_blank title="<%=htmlencode4(rs3("title"))%>">
<%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
<img src="<%=FileUploadPath & rs3("picname")%>" width="65" height="65" border=0 align="left">
<%end if%>
<%if fileext="swf" then%>
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width="65" height="65" border=0 align="left">
<param name=movie value="<%=FileUploadPath & rs3("picname")%>">
<param name=quality value=high>
<param name='Play' value='-1'>
<param name='Loop' value='0'>
<param name='Menu' value='-1'>
<embed src="<%=FileUploadPath & rs3("picname")%>" width="65" height="65" border=0 align="left" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>
</object>
<%end if%>
<%=rs3("title")%>
</a>
</td>
</tr>
</table>
<%
rs3.MoveNext
wend
else
Response.Write "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"" style=""TABLE-LAYOUT: fixed"" background=""IMAGES/menu-d.gif""><tr><td width=100% align=center height=18 background=""IMAGES/menu-d.gif"">暂无</td></tr></table>"
end if
rs3.close
set rs3=nothing
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="6" bgcolor="#FFFFFF"></td>
<td background="IMAGES/menu-l.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25" background="IMAGES/menu-l-m.gif"> <font class=m_tittle> </font>栏目导航 <a href="./" class="daohang">网站首页</a>>><%=typename%></td>
</tr>
<tr>
<td background="IMAGES/menu-l.gif">
<%end if %>
</td>
</tr>
<tr>
<td height="25" background="IMAGES/menu-l-zj.gif"> <font class=body> 无大类文章区</font></td>
</tr>
<!--无大类文章区开始-->
<% select case mode%>
<% case 1 %>
<!--图片模版-->
<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<%set rsnodigclass=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(Forcast_SN)("key")="super" or Request.cookies(Forcast_SN)("key")="typemaster" or Request.cookies(Forcast_SN)("key")="bigmaster" or Request.cookies(Forcast_SN)("key")="smallmaster" or Request.cookies(Forcast_SN)("key")="check" then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="selfreg" then
if Request.cookies(Forcast_SN)("reglevel")=3 then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=2 then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=1 then
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
end if
else
rsnodigclass.Source="select top " & top_news & " * from "& db_News_Table &" where (typeID=" & typeID &" and bigclassid is null and smallclassid is null and checkked=1) order by newsid DESC"
end if
rsnodigclass.Open rsnodigclass.Source,conn,1,1
%>
<tr>
<td>
<table width="90%" border="0" cellspacing="0" cellpadding="3" align="center">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?