📄 system_channelconfig.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="../../Conn.asp"-->
<!--#include file="../../SysCls/KS_CommonCls.asp"-->
<!--#include file="../Inc/Session.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2006-2008 Kesion.Com All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com
'演示站点:http://test.kesion.com
'郑重声明:
' ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
' ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
' ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New System_ChannelConfig
KSCls.Execute()
Set KSCls = Nothing
Class System_ChannelConfig
Private KSCMS,TempStr
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
End Sub
Private Sub Class_Terminate()
Call KSCMS.DelCaches(KSCMS.SiteSn)
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Public Sub Execute()
Dim SqlStr, RS, InstallDir, FsoIndexFile, FsoIndexExt
Dim ChannelID
ChannelID = KSCMS.ChkClng(KSCMS.G("ChannelID"))
On Error Resume Next
With Response
Select Case ChannelID
Case 1
If Not KSCMS.ReturnPowerResult(0, "KMSTM10001") Then '检查是否有文章中心设置的权限
.Write ("<script>parent.frames['BottomFrame'].location.href='javascript:history.back()';</script>")
Call KSCMS.ReturnErr(1, "")
.End
End If
Case 2
If Not KSCMS.ReturnPowerResult(0, "KMSTM10002") Then '检查是否有图片中心设置的权限
.Write ("<script>parent.frames['BottomFrame'].location.href='javascript:history.back()';</script>")
Call KSCMS.ReturnErr(1, "")
.End
End If
Case 3
If Not KSCMS.ReturnPowerResult(0, "KMSTM10003") Then '检查是否有下载中心设置的权限
.Write ("<script>parent.frames['BottomFrame'].location.href='javascript:history.back()';</script>")
Call KSCMS.ReturnErr(1, "")
.End
End If
Case 4
If Not KSCMS.ReturnPowerResult(0, "KMSTM10004") Then '检查是否有Flash中心设置的权限
.Write ("<script>parent.frames['BottomFrame'].location.href='javascript:history.back()';</script>")
Call KSCMS.ReturnErr(1, "")
.End
End If
End Select
SqlStr = "select * from KS_Channel Where ChannelID=" & ChannelID
Set RS = Server.CreateObject("ADODB.recordset")
RS.Open SqlStr, Conn, 1, 3
If KSCMS.G("Action") = "Edit" Then
RS("ChannelStatus") = KSCMS.G("ChannelStatus")
RS("FsoHtmlTF")=KSCMS.G("FsoHtmlTF")
RS("UpfilesDir") = KSCMS.G("UpfilesDir")
RS("UserUpfilesDir") = KSCMS.G("UserUpfilesDir")
RS("UpFilesTF") = KSCMS.G("UpFilesTF")
RS("UserSelectFilesTF")=KSCMS.G("UserSelectFilesTF")
If KSCMS.G("UpfilesDir") <> "" Then
Call KSCMS.CreateListFolder(KSCMS.G("UpfilesDir"))
End If
RS("UserUpFilesTF") = KSCMS.G("UserUpFilesTF")
If KSCMS.G("UserUpfilesDir") <> "" Then
Call KSCMS.CreateListFolder(KSCMS.G("UserUpfilesDir"))
End If
If KSCMS.G("UpfilesSize") = "" Then
RS("UpfilesSize") = 0
Else
RS("UpfilesSize") = KSCMS.G("UpfilesSize")
End If
RS("AllowUpPhotoType") = KSCMS.G("AllowUpPhotoType")
RS("AllowUpFlashType") = KSCMS.G("AllowUpFlashType")
RS("AllowUpMediaType") = KSCMS.G("AllowUpMediaType")
RS("AllowUpRealType") = KSCMS.G("AllowUpRealType")
RS("AllowUpOtherType") = KSCMS.G("AllowUpOtherType")
RS("VerificCommentTF") = KSCMS.G("VerificCommentTF")
RS("ShowThumbsTF") = KSCMS.G("ShowThumbsTF")
'会员积分
RS("UserAddMoney") = KSCMS.G("UserAddMoney")
RS("UserAddPoint") = KSCMS.G("UserAddPoint")
RS("UserAddScore") = KSCMS.G("UserAddScore")
RS.Update
.Write ("<script>alert('科汛系统提醒您:\n\n1、模块配置信息修改成功;\n\n2、为了使配置生效,系统已更新缓存;');parent.frames['FrameTop'].location.reload();location.href='System_ChannelConfig.asp?ChannelID=" & ChannelID & "';</script>")
End If
.Write "<html>"
.Write "<title>模块基本参数设置</title>"
.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"
.Write "<script src=""../JS/Common.js"" language=""JavaScript""></script>"
.Write "<link href=""../Inc/Admin_Style.CSS"" rel=""stylesheet"" type=""text/css"">"
.Write "<style type=""text/css"">"
.Write "<!--" & vbCrLf
.Write ".STYLE1 {color: #FF0000}"
.Write ".STYLE2 {color: #FF6600}"
.Write "-->" & vbCrLf
.Write "</style>" & vbCrLf
.Write "</head>"
.Write "<body bgcolor=""#FFFFFF"" topmargin=""0"" leftmargin=""0"" scroll=yes oncontextmenu=""return false"">"
.Write "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
.Write " <tr>"
.Write " <td height=""25"" class=""sort"">"
.Write " <div align=""center"" ><strong>"
Select Case ChannelID
Case 1
.Write ("文章中心设置")
TempStr="投稿"
Case 2
.Write ("图片中心设置")
TempStr="添加图片"
Case 3
.Write ("下载中心设置")
TempStr="添加下载"
Case 4
.Write ("Flash中心设置")
TempStr="添加Flash"
End Select
.Write " </strong></div></td>"
.Write " </tr>"
.Write "</TABLE>"
.Write " <table style=""margin-top:5px;"" width=""95%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""1"" bgcolor=""#CDCDCD"">"
.Write "<form name=SetChannelInfoForm method=post action="""" onSubmit=""return(CheckForm())"">"
.Write "<input type=""hidden"" value=""Edit"" name=""Action"">"
.Write " <tr valign=""middle"" bgcolor=""#EEF8FE"" >"
.Write " <td height=""30""> <div align=""right"">模块状态: "
.Write " </div></td>"
.Write " <td height=""30""><input type=""radio"" name=""ChannelStatus"" value=""1"" "
If RS("ChannelStatus") = 1 Then .Write (" checked")
.Write ">"
.Write "正常"
.Write " <input type=""radio"" name=""ChannelStatus"" value=""0"" "
If RS("ChannelStatus") = 0 Then .Write (" checked")
.Write ">"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -