📄 nosmallclass.asp
字号:
<%@ Language=VBScript%>
<!--#include file="conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="function.asp"-->
<!--#include file="char.inc"-->
<%
typeid=ChkRequest(request("typeid"), 1)
request_BigClassID=ChkRequest(Request.QueryString("BigClassID"),1) '防注入
if typeid="" or request_bigclassid="" then
Show_Err("未指定参数<br><br><a href='javascript:history.back()'>返回</a>")
response.end
else
if not IsNumeric(request_BigClassID) or not IsNumeric(typeid) then
Show_Err("非法参数<br><br><a href='javascript:history.back()'>返回</a>")
response.end
else
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_BigClass_Table &" where bigclassid=" & request_bigclassid &" order by BigClassorder"
rs.Open rs.Source,conn,1,1
If (rs.BOF OR rs.EOF) Then
response.write "<script>alert('不存在此typeid');history.back()</script>"
response.end
Else
bigclassname=rs("bigclassname")
bigclassorder=rs("bigclassorder")
bigclasszs=rs("bigclasszs")
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
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
dim digclassid
bigclassid=ChkRequest(request("bigclassid"), 1)
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_smallClass_Table &" where bigclassid="& bigclassid &" order by smallClassorder"
rs.Open rs.Source,conn,1,1
i=1
if not rs.EOF then
rseof=1
end if
end if
rs.close
dim typename
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
typename=rs5("typename")
typeorder=rs5("typeorder")
rs5.Close
set rs5=nothing
end if
%>
<html><head>
<meta http-equiv="Content-Type" content="">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=BigClassName%>__<%=typeName%>__<%=jjgn%>完美设计网络科技有限公司 完美政府网站管理系统 http://www.wmgov.cn</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"-->
<%
dim bigclassname
bigclassid=ChkRequest(request("bigclassid"), 1)
set rs=server.CreateObject("ADODB.RecordSet")
rs.Source="select * from "& db_bigclass_Table &" where typeid="& bigclassid &" order by bigclassorder"
rs.Open rs.Source,conn,1,1
'bigclassname=rs("bigclassname")
rs.close
set rs=nothing
%>
<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"> <font color="#95641D"><b><%=bigClassName%></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"> <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"> <font color="#95641D"><b>专题报道</b></font>
</td>
</tr>
<%if showspecial="1" then%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -