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

📄 smallclass.asp

📁 完美政府版,正版网站解决方案
💻 ASP
📖 第 1 页 / 共 4 页
字号:
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="char.inc"-->
<!--#include file="function.asp"-->
<%
typeid=ChkRequest(request("typeid"),1)	'防注入
request_BigClassID=ChkRequest(Request.QueryString("BigClassID"),1)	'防注入
request_SmallClassID=ChkRequest(Request.QueryString ("SmallClassID"),1)	'防注入
if typeid="" or request_bigclassid="" or request_smallclassid="" then
	Response.Write "<script>alert('未指定参数');history.back()</script>"
	response.end
else
	if not IsNumeric(request_SmallClassID) or not IsNumeric(request_bigclassid) or not IsNumeric(typeid) then
		response.write "<script>alert('非法参数');history.back()</script>"
		response.end
	else
		set rs=server.CreateObject("ADODB.RecordSet")
		rsSource="select * from "& db_BigClass_Table &" where bigclassid=" & request_BigClassID &" order by BigClassorder"
		rs.Open rsSource,conn,1,1
		bigclassname=rs("bigclassname")
		bigclassorder=rs("bigclassorder")
		bigclasszs=rs("bigclasszs")
		rs.close
		set rs=nothing

		set rs=server.CreateObject("ADODB.RecordSet")
		rsSource="select * from "& db_SmallClass_Table &" where smallclassid=" & request_smallClassID &" order by smallClassorder"
		rs.Open rsSource,conn,1,1
		If Not(rs.EOF) Then
			smallclassname=rs("smallclassname")
			smallclassorder=rs("smallclassorder")
		Else
			Show_Err("没有此小类<br><br><a href='javascript:history.back()'>返回</a>")
			Response.End
		End if
		rs.close
		set rs=nothing

		PageShowSize = 10            '每页显示多少个页
		MyPageSize   = 20           '每页显示多少条新闻
			
		If Not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Or Request("page") <=0 Then
			MyPage=1
		Else
			MyPage=Int(Abs(Request("page")))
		End if
	end if

	set rs=server.CreateObject("ADODB.RecordSet")
	rsSource="select * from "& db_BigClass_Table &" where typeid=" & typeid &" order by BigClassorder"
	rs.Open rsSource,conn,1,1

	dim ArrayBigClassID(),ArrayBigClassName()
	ReDim ArrayBigClassID(int(rs.RecordCount)),ArrayBigClassName(int(rs.RecordCount))
	BigClassCount=rs.RecordCount
	for i=1 to BigClassCount
		ArrayBigClassID(i)=rs("BigClassID")
		ArrayBigClassName(i)=trim(rs("BigClassName"))
		rs.MoveNext
	next
	rs.close
	set rs=nothing

	set rs2=server.CreateObject("ADODB.RecordSet")  '专题
	rs2.Source="select Top "& top_sp &" * from "& db_Special_Table &"  order by SpecialID DESC "
	rs2.Open rs2.Source,conn,1,1
%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=SmallClassName%>__<%=BigClassName%>__<%=jjgn%>&#23436;&#32654;&#35774;&#35745;&#32593;&#32476;&#31185;&#25216;&#26377;&#38480;&#20844;&#21496;&#32;&#23436;&#32654;&#25919;&#24220;&#32593;&#31449;&#31649;&#29702;&#31995;&#32479;&#32;&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#119;&#119;&#119;&#46;&#119;&#109;&#103;&#111;&#118;&#46;&#99;&#110;</title>
<LINK href=news.css rel=stylesheet>
<!---->
<SCRIPT language=javascript>
function openUser(id) {
	var Win = window.open("dispuser.asp?name="+id,"openScript");
}function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}function openDis(bid,rid,id){
	self.location="dispbbs.asp?boardid="+bid+"&RootID="+rid+"&id="+id
}function PopWindow()
{ 
openScript('messanger.asp?action=newmsg',420,320); 
}
var nn = !!document.layers;
var ie = !!document.all;if (nn) {
  netscape.security.PrivilegeManager.enablePrivilege("UniversalSystemClipboardAccess");
  var fr=new java.awt.Frame();
  var Zwischenablage = fr.getToolkit().getSystemClipboard();
}function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
</SCRIPT><SCRIPT language=JavaScript>
//***********默认设置定义.*********************
tPopWait=50;//停留tWait豪秒后显示提示。
tPopShow=5000;//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=99;//***************内部变量定义*****************
sPop=null;
curShow=null;
tFadeOut=null;
tFadeIn=null;
tFadeWaiting=null;document.write("<style type='text/css'id='defaultPopStyle'>");
document.write(".cPopText {background-image:url('images/tb_bg_01.jpg'); background-color: #F8F8F5;color:#000000; border: 1px #000000 solid;font-color: font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");function showPopupText(){
var o=event.srcElement;
	MouseX=event.x;
	MouseY=event.y;
	if(o.alt!=null && o.alt!=""){o.dypop=o.alt;o.alt=""};
        if(o.title!=null && o.title!=""){o.dypop=o.title;o.title=""};
	if(o.dypop!=sPop) {
			sPop=o.dypop;
			clearTimeout(curShow);
			clearTimeout(tFadeOut);
			clearTimeout(tFadeIn);
			clearTimeout(tFadeWaiting);	
			if(sPop==null || sPop=="") {
				dypopLayer.innerHTML="";
				dypopLayer.style.filter="Alpha()";
				dypopLayer.filters.Alpha.opacity=0;	
				}
			else {
				if(o.dyclass!=null) popStyle=o.dyclass 
					else popStyle="cPopText";
				curShow=setTimeout("showIt()",tPopWait);
			}
			
	}
}function showIt(){
		dypopLayer.className=popStyle;
		dypopLayer.innerHTML=sPop;
		popWidth=dypopLayer.clientWidth;
		popHeight=dypopLayer.clientHeight;
		if(MouseX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
			else popLeftAdjust=0;
		if(MouseY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
			else popTopAdjust=0;
		dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
		dypopLayer.style.top=MouseY+12+document.body.scrollTop+popTopAdjust;
		dypopLayer.style.filter="Alpha(Opacity=0)";
		fadeOut();
}function fadeOut(){
	if(dypopLayer.filters.Alpha.opacity<popOpacity) {
		dypopLayer.filters.Alpha.opacity+=showPopStep;
		tFadeOut=setTimeout("fadeOut()",1);
		}
		else {
			dypopLayer.filters.Alpha.opacity=popOpacity;
			tFadeWaiting=setTimeout("fadeIn()",tPopShow);
			}
}function fadeIn(){
	if(dypopLayer.filters.Alpha.opacity>0) {
		dypopLayer.filters.Alpha.opacity-=1;
		tFadeIn=setTimeout("fadeIn()",1);
		}
}
document.onmouseover=showPopupText;
</SCRIPT><STYLE type=text/css>A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A:active {
	COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	COLOR: #000000; TEXT-DECORATION: underline
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
.t {
	LINE-HEIGHT: 1.4
}
BODY {
	FONT-SIZE: 12px; SCROLLBAR-HIGHLIGHT-COLOR: #9bdbdb; SCROLLBAR-SHADOW-COLOR: #9bdbdb; COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #9bdbdb; SCROLLBAR-TRACK-COLOR: #ffffff; FONT-FAMILY: "宋体"; SCROLLBAR-DARKSHADOW-COLOR: #9bdbdb; SCROLLBAR-BASE-COLOR: #9bdbdb
}

TD {
	FONT-SIZE: 12px; FONT-FAMILY: "宋体"
}
P {
	FONT-SIZE: 12px;  FONT-FAMILY: "宋体"
}
DIV {
	FONT-SIZE: 12px; FONT-FAMILY: "宋体"
}
BR {
	FONT-SIZE: 12px; FONT-FAMILY: "宋体"
}
FORM {
	FONT-SIZE: 12px; FONT-FAMILY: "宋体"
}
OPTION {
	FONT-SIZE: 12px; FONT-FAMILY: "宋体"
}
INPUT {
	BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc; PADDING-TOP: 1px; FONT-FAMILY: "宋体"; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc
}
TEXTAREA {
	BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #efefef; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000
}
SELECT {
	BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-LEFT-COLOR: #000000; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #000000; BORDER-TOP-COLOR: #000000; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #eeeeee; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #000000
}
</STYLE>
<!---->
</head>
<body topmargin="0">
<!--#include file=TOP.ASP -->
<table width="1002" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr valign="top"> 
<td width="180" bordercolor="#FDFCF8"  bgcolor="#FDFCF8" style="border-left: 1px solid #cccccc ; border-top: 1px solid #cccccc ; border-bottom: 1px solid #cccccc ; border-right: 1px solid #cccccc ">
<!--政务日历开始-->		
<!--#include file="calendar.asp"-->
<!--政务日历结束--> 
		
<!--栏目开始-->
<table width="100%" border="0" cellspacing="0" style="border-left: 0px solid #cccccc ; border-top: 0px solid #cccccc ; border-bottom: 0px solid #cccccc ; border-right: 0px solid #cccccc ">
 
<!--总栏顺序号标记-->
<%
dim typeorder
set rs8=server.CreateObject("ADODB.RecordSet")
rs8.Source="select * from "& db_type_Table &" where typeid=" & typeid &" order by typeorder"
rs8.Open rs8.Source,conn,1,1
typeorder=rs8("typeorder")
rs8.Close
set rs8=nothing
%>
<!--总栏顺序号标记-->
			<tr bordercolor="#999999"><td height="28" align="left" valign="middle" bordercolor="#999999" background="IMAGES/WmCms_type.jpg">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#95641D"><b><%=smallClassName%></b></font>
</td></tr>

	<tr> 
		<td align="left" valign="middle" bordercolor="#FDFCF8"> 
<table width="100%" border="0" cellpadding="3" cellspacing="0" id="AutoNumber2" style="border-collapse: collapse">
<%
set rs6=server.CreateObject("ADODB.RecordSet")
rs6.Source="select * from "& db_SmallClass_Table &" where BigClassId="&request_bigclassid&" order by SmallClassorder"
rs6.Open rs6.Source,conn,1,1
do while not rs6.eof%>
							<tr> <td align=left valign="middle">&nbsp;&nbsp;&nbsp;<a class=class href="SmallClass.asp?typeid=<%=typeid%>&BigClassID=<%=rs6("bigclassid")%>&smallclassid=<%=rs6("smallclassid")%>"><%=rs6("smallclassname")%></a></td></tr>  
	<%rs6.movenext
loop
rs6.Close
set rs6=nothing
%>
						</table>
		</td>
	</tr>
</table>
<!--栏目结束-->	
<!-----------专题开始--------------------->
<table width="100%" border="0" align="center" cellpadding="0">
	<tr bordercolor="#999999"> 
		<td height="28" align="left" valign="middle" bordercolor="#999999" background="IMAGES/WmCms_type.jpg">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#95641D"><b>专题报道</b></font>
		</td>
	</tr>

          <%if showspecial="1" then%>
          <tr>
            
          <td height="50" > 
            <%if showspecial=1 then%>
            <%set rs2=server.CreateObject("ADODB.RecordSet")  '专题
rs2.Source="select Top " & top_sp & " * from "& db_Special_Table &"  order by SpecialID DESC "
rs2.Open rs2.Source,conn,1,1
if not rs2.EOF then
while not rs2.EOF

TrString="&nbsp;<img src='images/dot.jpg' border='0'>&nbsp;<a class=class href='Special_News.asp?SpecialID=" & rs2("SpecialID") &"'>" & trim(CutStr(htmlencode4(rs2("SpecialName")),14)) & "</a><br><div style='border-top:1px dashed #cccccc;height: 1px;overflow:hidden'></div>"
Response.Write TrString

rs2.MoveNext
wend
%>

            <%    
else
Response.Write "<tr><td width=100% align=center height=40>暂无专题</td></tr>"
end if
rs2.Close
set rs2=nothing

⌨️ 快捷键说明

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