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

📄 specialfilelist.asp

📁 asp源码 图片ASP整站
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Function.asp" -->
<%
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.2SP1)
'最新更新:2006.50
'==============================================================================
'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
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P020400") then Call ReturnError()
Dim SpecialID,TempSpecialObj,FileListObj,FileClassObj
if Request("SpecialID")<>"" then
	SpecialID = Cstr(Request("SpecialID"))
else
	Response.Write("<script>alert(""参数传递错误!!"");</script>")
	response.end
end if
Set TempSpecialObj = Conn.Execute("Select CName,SpecialID from FS_Special where SpecialID = '"&SpecialID&"'")
Set FileListObj = Server.CreateObject(G_FS_RS)
FileListObj.open "Select * from FS_News where SpecialID like '%"&SpecialID&"%' order by ID desc",Conn,1,1
If TempSpecialObj.eof then
	Response.Write("<script>alert(""参数传递错误"");</script>")
	response.end
End if
%>
<html>
<head>
<link href="../../../CSS/FS_css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>频道/专题新闻列表</title>
</head>
<script src="../../SysJS/PublicJS.js" language="JavaScript"></script>
<script language="JavaScript" src="../../SysJS/ContentMenu.js"></script>
<body topmargin="2" leftmargin="2" onclick="SelectSpecialFile();"  ondragstart="return false;" 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="DelSpecialNews();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">删除</td>
		  <td width=2 class="Gray">|</td>
		  <td width=35  align="center" alt="剪切" onClick="CutOperation();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">剪切</td>
		  <td width=2 class="Gray">|</td>
		  <td width=35 align="center" alt="复制" onClick="CopyOperation();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">复制</td>
		  <td width=2 class="Gray">|</td>
		  <td width=35 align="center" alt="粘贴" onClick="PasteOperation();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">粘贴</td>
		  <td width=2 class="Gray">|</td>
		  <td width=35 align="center" alt="后退" onClick="top.GetEkMainObject().history.back();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">后退</td>
		  <td>&nbsp; </td>
        </tr>
      </table>
	  </td>
  </tr>
</table>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
  	<td colspan="5" height="2"></td>
  </tr>
  <tr> 
    <td valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="49%" height="26" class="ButtonListLeft"> 
            <div align="center">新闻名称</div></td>
          <td width="28%" height="26" class="ButtonList"> 
            <div align="center">所属栏目</div></td>
          <td width="23%" height="26" class="ButtonList"> 
            <div align="center">更新时间</div></td>
        </tr>
<%if Not FileListObj.eof then 
		page_size = 20
			Dim page_size,page_no,page_total,record_all,PageNums
			page_size=Request.QueryString("page_size")
			if page_size<=0 or page_size="" then page_size=20
			If isnumeric(Request.Form("PageNums")) then
				if Request.Form("PageNums")<>0 then
					page_size = Cint(Request.Form("PageNums"))
				end if
			End if
			page_no=request.querystring("page_no")
			if page_no<=1 or page_no="" then page_no=1
			If Request.QueryString("page_no")="" then
				page_no=1
			end if
			FileListObj.PageSize=page_size
			page_total=FileListObj.PageCount
			if (cint(page_no)>page_total) then page_no=page_total
			FileListObj.AbsolutePage=page_no
			record_all=FileListObj.RecordCount
			Dim i
			for i=1 to FileListObj.PageSize
			if FileListObj.eof then exit for
			Dim TempFlagStr
			If FileListObj("HeadNewsTF")="1" then
				TempFlagStr = "<img src=""../../Images/Info/TitleNews.gif"" border=""0"">"
			Elseif FileListObj("PicNewsTF")="0" and FileListObj("HeadNewsTF")="0" then
				TempFlagStr = "<img src=""../../Images/Info/WordNews.gif"" border=""0"">"
			else
				TempFlagStr = "<img src=""../../Images/Info/PicNews.gif"" border=""0"">"
			End if
			Set FileClassObj = Conn.Execute("Select ClassCName from FS_NewsClass where ClassID='"&FileListObj("ClassID")&"'")
		%>
        <tr> 
		<td><table border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td><% = TempFlagStr %></td>
                <td><span SpecialID="<%=TempSpecialObj("SpecialID")%>" class="TempletItem" NewsID="<%=FileListObj("NewsID")%>" align="center"><% = GotTopic(FileListObj("Title"),40) %></span></td>
              </tr>
            </table></td> 
          <td><div align="center" class="TempletItem"><%=FileClassObj("ClassCName")%></div></td>
          <td><div align="center" class="TempletItem"><%=FileListObj("AddDate")%></div></td>
        </tr>
        <%
		FileClassObj.Close
		FileListObj.MoveNext
	next
	FileListObj.close
	set FileListObj=nothing
	TempSpecialObj.close
	Set TempSpecialObj = Nothing
end if
		%>
      </table></td>
  </tr>
	  <%if page_total>1 then%>
  <tr> 
    	<td valign="middle" height="10">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr height="1">
                  <tr height="1">
                  <td width="42%" height="18"><table width="99%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                      </tr>
                   </table> </td>
                
                <td width="51%" height="25" valign="middle"> <div align="right">
					<% =  "NO.<b>"& page_no &"</b>,&nbsp;&nbsp;" %>
                    <% = "Totel:<b>"& page_total &"</b>,&nbsp;RecordCounts:<b>" & record_all &"</b>&nbsp;&nbsp;&nbsp;"%>
                    <%
						if Page_Total=1 then
								response.Write "&nbsp;<img src=""../../Images/FirstPage.gif"" border=0 alt=首页></img>&nbsp;"
								response.Write "&nbsp;<img src=""../../Images/prePage.gif"" border=0 alt=上一页></img>&nbsp;"
								response.Write "&nbsp;<img src=""../../Images/nextpage.gif"" border=0 alt=下一页></img>&nbsp;"
								response.Write "&nbsp;<img src=""../../Images/endPage.gif"" border=0 alt=尾页></img>&nbsp;"
						else
							if cint(Page_No)<>1 and cint(Page_No)<>Page_Total then
								response.Write "&nbsp;<a href=?page_no=1&page_size="& page_size &"&SpecialID="&SpecialID&"&Keywords="&Request("Keywords")&"><img src=""../../Images/FirstPage.gif"" border=0 alt=首页></img></a>&nbsp;"
								response.Write "&nbsp;<a href=?page_no="&cstr(cint(Page_No)-1)&"&SpecialID="&SpecialID&"&page_size="&page_size&"&Keywords="&Request("Keywords")&"><img src=""../../Images/prePage.gif"" border=0 alt=上一页></img></a>&nbsp;"
								response.Write "&nbsp;<a href=?page_no="&cstr(cint(Page_No)+1)&"&SpecialID="&SpecialID&"&page_size="&page_size&"&Keywords="&Request("Keywords")&"><img src=""../../Images/nextpage.gif"" border=0 alt=下一页></img></a>&nbsp;"
								response.Write "&nbsp;<a href=?page_no="& Page_Total &"&page_size="& page_size &"&SpecialID="&SpecialID&"&Keywords="&Request("Keywords")&"><img src=""../../Images/endPage.gif"" border=0 alt=尾页></img></a>&nbsp;"
							elseif cint(Page_No)=1 then
								response.Write "&nbsp;<img src=""../../Images/FirstPage.gif"" border=0 alt=首页></img></a>&nbsp;"
								response.Write "&nbsp;<img src=""../../Images/prePage.gif"" border=0 alt=上一页></img>&nbsp;"
								response.Write "&nbsp;<a href=?page_no="&cstr(cint(Page_No)+1)&"&page_size="& page_size &"&SpecialID="&SpecialID&"&Keywords="&Request("Keywords")&"><img src=""../../Images/nextpage.gif"" border=0 alt=下一页></img></a>&nbsp;"
								response.Write "&nbsp;<a href=?page_no="& Page_Total &"&page_size="& page_size &"&SpecialID="&SpecialID&"&Keywords="&Request("Keywords")&"><img src=""../../Images/endPage.gif"" border=0 alt=尾页></img></a>&nbsp;"
							else
								response.Write "&nbsp;<a href=?page_no=1&page_size="& page_size &"&SpecialID="&SpecialID&"&Keywords="&Request("Keywords")&"><img src=""../../Images/FirstPage.gif"" border=0 alt=首页></img>&nbsp;"
								response.Write "&nbsp;<a href=?page_no="&cstr(cint(Page_No)-1)&"&page_size="& page_size &"&SpecialID="&SpecialID&"&Keywords="&Request("Keywords")&"><img src=""../../Images/prePage.gif"" border=0 alt=上一页></img></a>&nbsp;"
								response.Write "&nbsp;<img src=""../../Images/nextpage.gif"" border=0 alt=下一页></img></a>&nbsp;"
								response.Write "&nbsp;<img src=""../../Images/endPage.gif"" border=0 alt=尾页></img>&nbsp;"
							end if
						end if
						%>
                </div></td>
                <td width="7%" valign="middle"><select onChange="ChangePage(this.value);" style="width:50;" name="select">
                  <% for i=1 to Page_Total %>
                  <option <% if cint(Page_No) = i then Response.Write("selected")%> value="<% = i %>">
                  <% = i %>
                  </option>
                  <% next %>
                </select></td>
              </tr>
      
            </table></td>
			</tr>
<% end if %>
</table>
</body>
</html>
<%
Set Conn = Nothing
%>
<script>
var SpecialID='<% = SpecialID %>';
var DocumentReadyTF=false;
var ListObjArray=new Array();
var ContentMenuArray=new Array();
function document.onreadystatechange()
{
	if (DocumentReadyTF) return;
	InitialContentListContentMenu();
	DocumentReadyTF=true;
}
function ContentMenuFunction(ExeFunction,Description,EnabledStr)
{
	this.ExeFunction=ExeFunction;
	this.Description=Description;
	this.EnabledStr=EnabledStr;
}
function InitialContentListContentMenu()
{
	ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.DelSpecialNews();",'删除','disabled');
	ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
	ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.CutOperation();','剪切','disabled');
	ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.CopyOperation();','复制','disabled');
	ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('parent.PasteOperation();','粘贴','disabled');
	//ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
	//ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('top.GetEkMainObject().location.reload();','刷新','');
	//ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('prompt(\'本页面路径属性\',\'<%=Request.ServerVariables("SCRIPT_NAME")%>\');','路径属性','');

⌨️ 快捷键说明

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