📄 download.asp
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Cls_User.asp" -->
<!--#include file="../../../Inc/Cls_Cache.asp" -->
<!--#include file="../../../Inc/Function.asp" -->
<!--#include file="../Refresh/Cls_Refresh.asp" -->
<!--#include file="../Refresh/Function.asp" -->
<!--#include file="../Refresh/RefreshFunction.asp" -->
<%
Dim DBC,Conn,UserConn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
DBC.ConnStr = "DBQ=" + Server.MapPath(UserDBConnectStr) + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
Set UserConn = DBC.OpenConnection()
Set DBC = Nothing
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.2SP1)
'最新更新:2006.5
'==============================================================================
'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次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
Dim sHaveValueTF
if CInt(GetConfig(20)) = 1 then
sHaveValueTF = True
Else
sHaveValueTF = False
End if
if Not JudgePopedomTF(Session("Name"),"" & Request("ClassID") & "") then Call ReturnError1()
if Not JudgePopedomTF(Session("Name"),"P010000") then Call ReturnError1()
if Request("DownLoadID") <> "" then
if Not JudgePopedomTF(Session("Name"),"P010702") then Call ReturnError1()
else
if Not JudgePopedomTF(Session("Name"),"P010701") then Call ReturnError1()
end if
Dim TempClassID,OldClassObj,OldClassEName,DummyPath_Riker
Dim Action
Dim IDownLoadID,IName,IClassID,IVersion,ITypes,IProperty,ILanguage,IAccredit,IFileSize,IAppraise,ISystemType
Dim IEMail,IProvider,IProviderUrl,IPic,IBrowPop,IDescription,IPassWord,IAddTime,IRecTF,IClassBuildNewsTemp
Dim IAuditTF,IFileExtName,IClickNum,INewsTemplet,IEditTime,IReviewTF,IShowReviewTF
Dim EditContentTF
Dim RsSelectObj,HaveValueTF
Dim AddressNum,AddressIDArrays,RequestNameArrays,RequestUrlArrays,RequestNumberArray,RsDownAddrObj,RsDASql,i
EditContentTF = False
Action = Request("Action")
IClassID = Request.Form("ClassID")
if IClassID="" then IClassID=Request("ClassID")
IDownLoadID = Request("DownLoadID")
if IDownLoadID = "" then
EditContentTF = False
else
EditContentTF = True
end if
If IClassID <> "" then
TempClassID = Cstr(IClassID)
Set OldClassObj = Conn.Execute("Select ClassID,ClassEName,DownLoadTemp,ClassCName from FS_NewsClass where ClassID='" & TempClassID & "'")
if Not OldClassObj.Eof then
OldClassEName = OldClassObj("ClassCName")
IClassBuildNewsTemp = OldClassObj("DownLoadTemp")
end if
OldClassObj.Close
Set OldClassObj = Nothing
else
Response.Write("<script>alert(""参数传递错误"");history.back();</script>")
Response.End
End If
if Action = "Submit" then
HaveValueTF = False
else
if IDownLoadID <> "" then
Set RsSelectObj = Conn.Execute("Select * from FS_DownLoad where DownLoadID='" & IDownLoadID & "'")
if Not RsSelectObj.Eof then
IName = RsSelectObj("Name")
IVersion = RsSelectObj("Version")
ITypes = RsSelectObj("Types")
IProperty = RsSelectObj("Property")
ILanguage = RsSelectObj("Language")
IAccredit = RsSelectObj("Accredit")
IFileSize = RsSelectObj("FileSize")
IAppraise = RsSelectObj("Appraise")
ISystemType = RsSelectObj("SystemType")
IEMail = RsSelectObj("EMail")
IProvider = RsSelectObj("Provider")
IProviderUrl = RsSelectObj("ProviderUrl")
IPic = RsSelectObj("Pic")
IBrowPop = RsSelectObj("BrowPop")
IDescription = RsSelectObj("Description")
IPassWord = RsSelectObj("PassWord")
IAddTime = RsSelectObj("AddTime")
IEditTime = RsSelectObj("EditTime")
IRecTF = RsSelectObj("RecTF")
IAuditTF = RsSelectObj("AuditTF")
IFileExtName = RsSelectObj("FileExtName")
IClickNum = RsSelectObj("ClickNum")
INewsTemplet = RsSelectObj("NewsTemplet")
IReviewTF = RsSelectObj("ReviewTF")
IShowReviewTF = RsSelectObj("ShowReviewTF")
RequestNameArrays = ""
RequestUrlArrays = ""
RequestNumberArray = ""
AddressIDArrays = ""
Set RsDownAddrObj = Server.CreateObject(G_FS_RS)
RsDASql = "Select * from FS_DownLoadAddress where DownLoadID='" & IDownLoadID & "' order by Number asc"
RsDownAddrObj.Open RsDASql,Conn,1,1
AddressNum = RsDownAddrObj.RecordCount
for i = 0 to RsDownAddrObj.RecordCount-1
RequestNameArrays = RequestNameArrays & "," & RsDownAddrObj("AddressName")
RequestUrlArrays = RequestUrlArrays & "," & RsDownAddrObj("Url")
RequestNumberArray = RequestNumberArray & "," & RsDownAddrObj("Number")
AddressIDArrays = AddressIDArrays & "," & RsDownAddrObj("ID")
RsDownAddrObj.MoveNext
next
RsDownAddrObj.Close
Set RsDownAddrObj = Nothing
HaveValueTF = True
else
HaveValueTF = False
end if
Set RsSelectObj = Nothing
else
HaveValueTF = False
end if
end if
if HaveValueTF = False then
IName = NoCSSHackAdmin(Request("Name"),"名称")
IVersion = Request("Version")
ITypes = Request("Types")
IProperty = Request("Property")
ILanguage = Request("Language")
IAccredit = Request("Accredit")
IFileSize = Request("FileSize")
IAppraise = Request("Appraise")
ISystemType = Request("SystemType")
IEMail = Request("EMail")
IProvider = Request("Provider")
IProviderUrl = Request("ProviderUrl")
IPic = Request("Pic")
IBrowPop = Request("BrowPop")
Dim TempForVar
For TempForVar = 1 To Request.Form("Description").Count
IDescription = IDescription & Request.Form("Description")(TempForVar)
Next
IPassWord = Request("PassWord")
IAddTime = Request("AddTime")
IEditTime = Request("EditTime")
IRecTF = Request("RecTF")
IAuditTF = Request("AdutiTF")
IFileExtName = Request("FileExtName")
IClickNum = Request("ClickNum")
INewsTemplet = Request("NewsTemplet")
IReviewTF = Request("ReviewTF")
IShowReviewTF = Request("ShowReviewTF")
AddressNum = Request.Form("AddressNum")
if AddressNum = "" then AddressNum = 1
for i = 1 to AddressNum
RequestNameArrays = RequestNameArrays & "," & Request.Form("AddressName" & i)
RequestUrlArrays = RequestUrlArrays & "," & Request.Form("Url" & i)
RequestNumberArray = RequestNumberArray & "," & Request.Form("Number" & i)
AddressIDArrays = AddressIDArrays & "," & Request.Form("AddressID" & i)
next
end if
if IsNull(IDescription) then
IDescription = ""
else
IDescription = Replace(Replace(IDescription,"""","%22"),"'","%27")
end if
if INewsTemplet = "" OR INewsTemplet = Null then
if IClassBuildNewsTemp = Null then
INewsTemplet = ""
else
INewsTemplet = IClassBuildNewsTemp
end if
end if
%>
<html>
<head>
<link href="../../../CSS/FS_css.css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加下载</title>
</head>
<script language="JavaScript" src="../../SysJS/PublicJS.js"></script>
<body topmargin="2" leftmargin="2">
<form action="" name="DownForm" method="post">
<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="SubmitData();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">保存</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="添加文字新闻" onClick="location='NewsWords.asp?ClassID=<% = IClassID %>';" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">文字</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="添加标题新闻" onClick="location='NewsTitle.asp?ClassID=<% = IClassID %>';" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">标题</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="添加图片新闻" onClick="location='NewsPic.asp?ClassID=<% = IClassID %>';" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">图片</td>
<td width=2 class="Gray">|</td>
<%If sHaveValueTF = true then%>
<td width=35 align="center" alt="添加商品" onClick="location='../mall/mall_addproducts.asp?ClassID=<% = IClassID %>';" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">商品</td>
<td width=2 class="Gray">|</td>
<%End if%>
<td width=35 align="center" alt="后退" onClick="top.GetEkMainObject().history.back();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">后退</td>
<td> <input name="action" type="hidden" id="action" value="Submit">
<input type="hidden" name="Description" value="<% = IDescription %>"><input type="hidden" name="ClassID" value="<% = IClassID %>"></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" colspan="2"><table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100"><div align="center">名称</div></td>
<td><input name="Name" type="text" id="Name" style="width:90%" value="<% = IName %>"></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"> <table width="100%" border="0" cellpadding="0" cellspacing="0" height="20">
<tr>
<td width="60" height="26" align="center" bgcolor="#EFEFEF" class="LableSelected" id="ContentFolder" onClick="ChangeFolder(this);">下载简介</td>
<td width="5" align="center" class="ToolBarButtonLine" style="cursor:default;"> </td>
<td onClick="ChangeFolder(this);" id="AttributeFolder" width="60" align="center" class="LableDefault">下载属性</td>
<td width="5" align="center" class="ToolBarButtonLine" style="cursor:default;"> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -