📄 check.asp
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="inc/Config.asp" -->
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Function.asp" -->
<%
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.1.0930)
'最新更新:2005.10
'==============================================================================
'Copyright (C) 2002-2004 Foosun.Net All rights reserved.
'商业注册联系:028-85098980-601,项目开发:028-85098980-606、609,客户支持:608
'产品咨询QQ:394226379,159410,125114015
'技术支持QQ:315485710,66252421
'项目开发QQ:415637671,655071
'程序开发:四川风讯科技发展有限公司(Foosun Inc.)
'Email:service@Foosun.cn
'MSN:skoolls@hotmail.com
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.cn 演示站点:test.cooin.com
'网站通系列(智能快速建站系列):www.ewebs.cn
'==============================================================================
'免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接
'风讯公司保留此程序的法律追究权利
'如需进行2次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================
Dim DBC,Conn,CollectConn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
DBC.ConnStr = CollectDBConnectionStr
Set CollectConn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
'判断权限
if Not JudgePopedomTF(Session("Name"),"P080300") then Call ReturnError1()
'判断权限结束
Dim SiteID
SiteID = Request("SiteID")
Dim NewsSql,RsNewsObj,CurrPage,AllPageNum,RecordNum,i,SysClassCName,SiteName,RsTempObj,AttributeStr
CurrPage = Request("CurrPage")
NewsSql = "Select * from FS_News where History=0 Order by ID Desc"
Set RsNewsObj = Server.CreateObject("ADODB.RecordSet")
RsNewsObj.Open NewsSql,CollectConn,1,1
%>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>新闻采集</TITLE>
</HEAD>
<link href="../../../CSS/FS_css.css" rel="stylesheet">
<script language="JavaScript" src="../../SysJS/PublicJS.js"></script>
<script language="JavaScript" src="../../SysJS/ContentMenu.js"></script>
<BODY topmargin="2" onClick="SelectNews();" leftmargin="2" onselectstart="return false;">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999">
<tr bgcolor="#EEEEEE">
<td height="26" colspan="5" valign="middle">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" align="center" alt="修改" onClick="EditNews();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">修改</td>
<td width=2 class="Gray">|</td>
<td width="35" align="center" alt="删除" onClick="DelNews();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">删除</td>
<td width="70" align="center" alt="全部删除" onClick="DelallNews();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">全部删除</td>
<td width=2 class="Gray">|</td>
<td width="35" align="center" alt="入库" onClick="MoveNewsToSystem();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">入库</td>
<td width=2 class="Gray">|</td>
<td width="70" align="center" alt="全部入库" onClick="MoveAllNewsToSystem();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">全部入库</td>
<td width=2 class="Gray">|</td>
<td width="35" align="center" alt="后退" onClick="history.back();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">后退</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" height="2"></td>
</tr>
<tr>
<td height="26" nowrap class="ButtonListLeft">
<div align="center">标题</div></td>
<td width="15%" height="20" nowrap class="ButtonList">
<div align="center">属性</div></td>
<td width="15%" height="20" nowrap class="ButtonList">
<div align="center">目标栏目</div></td>
<td width="15%" height="20" nowrap class="ButtonList">
<div align="center">采集站点</div></td>
<td width="15%" height="20" nowrap class="ButtonList">
<div align="center">添加日期</div></td>
</tr>
<%
if Not RsNewsObj.Eof then
if CurrPage = "" then
CurrPage = 1
else
CurrPage = CInt(CurrPage)
end if
RsNewsObj.PageSize = 18
RecordNum = RsNewsObj.RecordCount
AllPageNum = RsNewsObj.PageCount
if CurrPage > AllPageNum then CurrPage = AllPageNum
RsNewsObj.AbsolutePage = Cint(CurrPage)
for i = 1 to RsNewsObj.PageSize
if RsNewsObj.Eof then Exit For
Set RsTempObj = Conn.Execute("Select ClassCName from FS_NewsClass where ClassID='" & RsNewsObj("ClassID") & "'")
if Not RsTempObj.Eof then
SysClassCName = RsTempObj("ClassCName")
else
SysClassCName = "栏目不存在"
end if
RsTempObj.Close
Set RsTempObj = Nothing
Set RsTempObj = CollectConn.Execute("Select SiteName from FS_Site where ID=" & RsNewsObj("SiteID"))
if Not RsTempObj.Eof then
SiteName = RsTempObj("SiteName")
else
SiteName = "未知"
end if
RsTempObj.Close
Set RsTempObj = Nothing
%>
<tr>
<td height="26" nowrap>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../Images/Info/WordNews.gif" width="24" height="22"></td>
<td><span class="TempletItem" NewsID="<% = RsNewsObj("ID") %>">
<% = Left(RsNewsObj("Title"),20) %></span></td>
</tr>
</table></td>
<td nowrap><div align="center">
<%
AttributeStr = ""
if RsNewsObj("PicNews") = True then AttributeStr = AttributeStr & " 图片"
if RsNewsObj("RecTF") = True then AttributeStr = AttributeStr & " 推荐"
if RsNewsObj("TodayNewsTF") = True then AttributeStr = AttributeStr & " 头条"
if RsNewsObj("MarqueeNews") = True then AttributeStr = AttributeStr & " 滚动"
if RsNewsObj("SBSNews") = True then AttributeStr = AttributeStr & " 并排"
if RsNewsObj("ReviewTF") = True then AttributeStr = AttributeStr & " 评论"
Response.Write(AttributeStr)
%>
</div></td>
<td nowrap><div align="center">
<% = SysClassCName %>
</div></td>
<td nowrap><div align="center">
<% = SiteName %>
</div></td>
<td nowrap class="SpanStyle"> <div align="center">
<% = RsNewsObj("AddDate") %>
</div></td>
</tr>
<%
RsNewsObj.MoveNext
next
%>
<tr>
<td height="30" colspan="5" nowrap>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <div align="right">
<%
Response.Write" 共<b>"& AllPageNum & "</b>页<b>" & RecordNum & "</b>条记录,每页<b>" & RsNewsObj.pagesize & "</b>条,本页是第<b>"& CurrPage &"</b>页"
if Int(CurrPage) > 1 then
Response.Write" <a href=?CurrPage=1>首页</a> "
Response.Write" <a href=?CurrPage=" & Cstr(CInt(CurrPage)-1) & ">上页</a> "
end if
if Int(CurrPage) < AllPageNum then
Response.Write" <a href=?CurrPage=" & Cstr(Cint(CurrPage)+1) & ">下页</a>"
Response.Write" <a href=?CurrPage=" & AllPageNum & ">末页</a> "
end if
Response.Write"<br>"
%>
</div></td>
</tr>
</table></td>
</tr>
<%
end if
%>
</table>
</BODY>
</HTML>
<%
Set CollectConn = Nothing
Set Conn = Nothing
Set RsNewsObj = Nothing
%>
<script language="JavaScript">
var DocumentReadyTF=false;
var ListObjArray = new Array();
var ContentMenuArray=new Array();
function document.onreadystatechange()
{
if (DocumentReadyTF) return;
IntialListObjArray();
InitialContentListContentMenu();
DocumentReadyTF=true;
}
function InitialContentListContentMenu()
{
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.EditNews();",'修改','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.DelNews();",'删除','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.MoveNewsToSystem();','入库','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.SetNewsAttribute();",'设置属性','disabled');
//ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
//ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('location.reload();','刷新','');
//ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('prompt(\'本页面路径属性\',\'<%=Request.ServerVariables("SCRIPT_NAME")%>\');','路径属性','');
}
function ContentMenuFunction(ExeFunction,Description,EnabledStr)
{
this.ExeFunction=ExeFunction;
this.Description=Description;
this.EnabledStr=EnabledStr;
}
function ContentMenuShowEvent()
{
ChangeContentMenuStatus();
}
function ChangeContentMenuStatus()
{
var EventObjInArray=false,SelectContent='',DisabledContentMenuStr='';
for (var i=0;i<ListObjArray.length;i++)
{
if (event.srcElement==ListObjArray[i].Obj)
{
if (ListObjArray[i].Selected==true) EventObjInArray=true;
break;
}
}
for (var i=0;i<ListObjArray.length;i++)
{
if (event.srcElement==ListObjArray[i].Obj)
{
ListObjArray[i].Obj.className='TempletSelectItem';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -