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

📄 site.asp

📁 asp源码 图片ASP整站
💻 ASP
📖 第 1 页 / 共 4 页
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="inc/Config.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,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"),"P080100") then Call ReturnError1()
'判断权限结束
Dim SelectPath
if SysRootDir = "" then
	SelectPath = "/" & UpFiles
else
	SelectPath = "/" & SysRootDir & "/" & UpFiles
end if
Dim Rs
if Request("Action") = "Del" then
	if Not JudgePopedomTF(Session("Name"),"P080103") then Call ReturnError1()
	if Request("id") <> "" then
		CollectConn.Execute("delete from FS_Site where ID in (" & Replace(Request("id"),"***",",") & ")")
	end If
	if Request("SiteFolderID") <> "" then
		CollectConn.Execute("delete from FS_SiteFolder where ID in (" & Replace(Request("SiteFolderID"),"***",",") & ")")
	end if
	Response.Redirect("site.asp")
	Response.End
elseif Request("Action") = "Lock" then
	if Request("LockID") <> "" then
		CollectConn.Execute("Update FS_Site Set IsLock=1 where ID in (" & Replace(Request("LockID"),"***",",") & ")")
		Response.Redirect("site.asp")
		Response.End
	end if
elseif Request("Action") = "UNLock" then
	if Request("LockID") <> "" then
		CollectConn.Execute("Update FS_Site Set IsLock=0 where ID in (" & Replace(Request("LockID"),"***",",") & ")")
		Response.Redirect("site.asp")
		Response.End
	end if
end if
if Request.Form("vs")="add" then
	if Not JudgePopedomTF(Session("Name"),"P080101") then Call ReturnError1()
    if Request.Form("SaveIMGPath") = "" OR Trim(Request.Form("SiteName"))="" Or Request.Form("SysTemplet")="" or Request.Form("objURL")=""  or Request.Form("SysClass")=""  then
		Response.write"<script>alert(""请填写完整!"");history.back();</script>"
		Response.end
	end if
    Dim Sql
	Set Rs = Server.CreateObject ("ADODB.RecordSet")
	Sql = "Select * from FS_Site where 1=0"
	Rs.Open Sql,CollectConn,1,3
	Rs.AddNew
	Rs("SiteName") = NoCSSHackAdmin(Request.Form("SiteName"),"站点名称")
	Rs("SysTemplet") = Request.Form("SysTemplet")
	Rs("objURL") = Request.Form("objURL")
	Rs("folder") = Request.Form("SiteFolder")
	Rs("SysClass") = Request.Form("SysClass")
	Rs("SaveIMGPath") = Request.Form("SaveIMGPath")
	if Request.Form("IsIFrame") = "1" then
		Rs("IsIFrame") = True
	else
		Rs("IsIFrame") = False
	end if
	if Request.Form("IsReverse") = "1" then
		Rs("IsReverse") = 1
	else
		Rs("IsReverse") = 0
	end if
	if Request.Form("IsScript") = "1" then
		Rs("IsScript") = True
	else
		Rs("IsScript") = False
	end if
	if Request.Form("IsClass") = "1" then
		Rs("IsClass") = True
	else
		Rs("IsClass") = False
	end if
	if Request.Form("IsFont") = "1" then
		Rs("IsFont") = True
	else
		Rs("IsFont") = False
	end if
	if Request.Form("IsSpan") = "1" then
		Rs("IsSpan") = True
	else
		Rs("IsSpan") = False
	end if
	if Request.Form("IsObject") = "1" then
		Rs("IsObject") = True
	else
		Rs("IsObject") = False
	end if
	if Request.Form("IsStyle") = "1" then
		Rs("IsStyle") = True
	else
		Rs("IsStyle") = False
	end if
	if Request.Form("IsDiv") = "1" then
		Rs("IsDiv") = True
	else
		Rs("IsDiv") = False
	end if
	if Request.Form("IsA") = "1" then
		Rs("IsA") = True
	else
		Rs("IsA") = False
	end if
	if Request.Form("Audit") = "1" then
		Rs("Audit") = True
	else
		Rs("Audit") = False
	end if
	if Request.Form("TextTF") = "1" then
		Rs("TextTF") = True
	else
		Rs("TextTF") = False
	end if
	if Request.Form("SaveRemotePic") = "1" then
		Rs("SaveRemotePic") = True
	else
		Rs("SaveRemotePic") = False
	end if
	if Request.Form("Islock") <> "" then
		Rs("Islock") = True
	else
		Rs("Islock") = False
	end if
	Rs.UpDate
	Rs.Close
	Set Rs = Nothing
	Set Conn = Nothing
	Set CollectConn = Nothing
	Response.Redirect("Site.asp")
	Response.End
elseif Request("vs")="addfolder" then
	if Not JudgePopedomTF(Session("Name"),"P080101") then Call ReturnError1()
	Dim SiteFolder,SiteFolderDetail,SqlStr
	SiteFolder = NoCSSHackAdmin(Trim(Request.Form("SiteFolder")),"站点栏目")
	SiteFolderDetail = Trim(Request.Form("SiteFolderDetail"))
	If SiteFolder = "" or SiteFolderDetail = "" Then
		Response.write "<script>alert(""请填写完整!"");history.back();</script>"
		Response.end
	End If
	'2006-4-27	较多,整页覆盖
	If Len(SiteFolder)>50 Then 
		Response.write "<script>alert(""栏目标题太长,请小于50字符"");history.back();</script>"
		Response.end
	End If 
	Set Rs = Server.CreateObject ("ADODB.RecordSet")
	If Trim(Request.QueryString("sfid"))<>"" Then 
		SqlStr = "Select * from FS_SiteFolder where id="&CInt(Trim(Request.QueryString("sfid")))
		Rs.Open SqlStr,CollectConn,1,3
	else
		SqlStr = "Select * from FS_SiteFolder where 1=0"
		Rs.Open SqlStr,CollectConn,1,3
		Rs.AddNew
	End If 
	Rs("SiteFolder") = SiteFolder
	Rs("SiteFolderDetail") = SiteFolderDetail
	Rs.UpDate
	Rs.Close
	Set Rs = Nothing
	Set Conn = Nothing
	Set CollectConn = Nothing
	Response.Redirect("Site.asp")
	Response.end
elseif Request("vs")="Copy" then
	if Not JudgePopedomTF(Session("Name"),"P080104") then Call ReturnError1()
	Dim SiteID,SiteFolderID,RsCopySourceObj,RsCopyObjectObj,FiledObj
	SiteID = Request("SiteID")
	SiteFolderID = Request("SiteFolderID")
	if SiteID <> "" then
		Set RsCopySourceObj = CollectConn.Execute("Select * from FS_Site where ID in (" & Replace(SiteID,"***",",") & ")")
		do while Not RsCopySourceObj.Eof
			Set RsCopyObjectObj = Server.CreateObject("ADODB.RecordSet")
			RsCopyObjectObj.Open "Select * from FS_Site where 1=0",CollectConn,3,3
			RsCopyObjectObj.AddNew
			For Each FiledObj In RsCopyObjectObj.Fields
				if LCase(FiledObj.name) <> "id" then
					If LCase(FiledObj.name)="sitename" Then 
						RsCopyObjectObj(FiledObj.name) = "复件  " & RsCopySourceObj(FiledObj.name)
					Else
						RsCopyObjectObj(FiledObj.name) = RsCopySourceObj(FiledObj.name)
					End If 
				end If
			Next
			RsCopyObjectObj.Update
			RsCopySourceObj.MoveNext
		Loop
		Set RsCopySourceObj = Nothing
		Set RsCopyObjectObj = Nothing
	end If
	if SiteFolderID <> "" then
		Set RsCopySourceObj = CollectConn.Execute("Select * from FS_SiteFolder where ID in (" & Replace(SiteFolderID,"***",",") & ")")
		do while Not RsCopySourceObj.Eof
			Set RsCopyObjectObj = Server.CreateObject("ADODB.RecordSet")
			RsCopyObjectObj.Open "Select * from FS_SiteFolder where 1=0",CollectConn,3,3
			RsCopyObjectObj.AddNew
			For Each FiledObj In RsCopyObjectObj.Fields
				if LCase(FiledObj.name) <> "id" then
					If LCase(FiledObj.name)="sitefolder" Then 
						RsCopyObjectObj(FiledObj.name) = "复件  " & RsCopySourceObj(FiledObj.name)
					Else
						RsCopyObjectObj(FiledObj.name) = RsCopySourceObj(FiledObj.name)
					End If 
				end if
			Next
			RsCopyObjectObj.Update
			RsCopySourceObj.MoveNext
		Loop
		Set RsCopySourceObj = Nothing
		Set RsCopyObjectObj = Nothing
	end if
	Set Conn = Nothing
	Set CollectConn = Nothing
	Response.Redirect("Site.asp")
	Response.end
end if
%>
<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>
<% if Request("Action") <> "Addsite" and Request("Action") <> "Addsitefolder" And Request("Action") <> "Modsitefolder" then %>
<script language="JavaScript" src="../../SysJS/ContentMenu.js"></script>
<% end if %>
<body<% if Request("Action") <> "Addsite" and Request("Action") <> "Addsitefolder" then %> onselectstart="return false;" onClick="SelectSite();"<% end if %> leftmargin="2" topmargin="2">
<%
if Request("Action") = "Addsite" then
	Call Add()
ElseIf Request("Action") = "Addsitefolder" Then
	Call AddFolder()
ElseIf Request("Action") = "SubFolder" Then
	Call SubMain()
Else
	Call Main()
end if
Sub Main()
	Session("SessionReturnValue") = ""
	if Not JudgePopedomTF(Session("Name"),"P080100") then Call ReturnError1()
%>
<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=55 align="center" alt="添加采集栏目" onClick="AddSiteFolder();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">新建栏目</td>
					<td width=2 class="Gray">|</td>
					<td width=55 align="center" alt="添加采集站点" onClick="AddSite();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">新建站点</td>
					<td width=2 class="Gray">|</td>
					<td width=55 align="center" alt="修改站点属性" onClick="EditSite();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">修改属性</td>
					<td width=2 class="Gray">|</td>
					<td width=55 align="center" alt="修改站点向导" onClick="EditSiteGuide();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">修改向导</td>
					<td width=2 class="Gray">|</td>
					<td width=35 align="center" alt="删除站点" onClick="DelSite();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">删除</td>
					<td width=2 class="Gray">|</td>
					<td width=35 align="center" alt="复制站点" onClick="CopySite();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">复制</td>
					<td width=2 class="Gray">|</td>
					<td width=35 align="center" alt="开始采集" onClick="StartCollect();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">采集</td>
					<td width=2 class="Gray">|</td>
					<td width=35 align="center" alt="继续上次采集" onClick="ResumeCollect();" 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%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="5" height="2"></td>
	</tr>
	<tr>
		<td width="19%" height="26" nowrap bgcolor="#FFFFFF" class="ButtonListLeft"><div align="center">名称</div></td>
		<td width="9%" height="26" nowrap bgcolor="#FFFFFF" class="ButtonList"><div align="center">状态</div></td>
		<td width="9%" height="26" bgcolor="#FFFFFF" class="ButtonList" nowrap><div align="center">采集对象页</div></td>
		<td width="20%" height="26" nowrap bgcolor="#FFFFFF" class="ButtonList"><div align="center">采集到栏目</div></td>
		<td width="12%" height="26" nowrap class="ButtonList"><div align="center">开始采集</div></td>
	</tr>
	<%
	Dim RsSite,SiteSql,CheckInfo
	Dim RsSiteFolder

⌨️ 快捷键说明

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