📄 ext_channeladd.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 Ext_ChannelAdd
KSCls.Execute()
Set KSCls = Nothing
Class Ext_ChannelAdd
Private KSCMS
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
End Sub
Private Sub Class_Terminate()
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Public Sub Execute()
If Not KSCMS.ReturnPowerResult(0, "KMCT10000") Then '检查外部频道操作(增和改)的权限检查
Call KSCMS.ReturnErr(1, "")
Exit Sub
End If
Response.Write "<html>"
Response.Write "<head>"
Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"
Response.Write "<link href=""../Inc/ModeWindow.css"" rel=""stylesheet"">"
Response.Write "<script language=""JavaScript"" src=""../JS/Common.js""></script>"
Response.Write "<title>添加外部频道</title>"
Response.Write "</head>"
Dim ChannelID, ChannelName,Url,TopFlag,OpenFlag,OrderID,AdminUrl,Descript, Action
Action = KSCMS.G("Action")
ChannelID = KSCMS.G("ChannelID")
If Action = "" Then Action = "AddExt"
If ChannelID <> "" Then
Dim RSObj
Set RSObj = Conn.Execute("Select * From KS_ExtChannel Where ChannelID=" & ChannelID)
If Not RSObj.EOF Then
ChannelName = RSObj("ChannelName")
Descript = RSObj("Description")
Url=RSObj("Url")
AdminUrl=RSObj("AdminUrl")
TopFlag=RSObj("TopFlag")
OpenFlag=RSObj("OpenFlag")
OrderID=RSObj("OrderID")
End If
RSObj.Close
Set RSObj = Nothing
Else
ChannelName = ""
TopFlag=1
Descript = ""
Url="http://"
AdminUrl="http://"
OrderID=0
End If
Response.Write "<body leftmargin=""0"" topmargin=""0"" marginwidth=""0"" marginheight=""0"">"
Response.Write " <form action=""Ext_ChannelAddSave.asp"" name=""ExtForm"" method=""post"">"
Response.Write " <input name=""Action"" type=""hidden"" id=""Action"" value=""" & Action & """>"
Response.Write " <input name=""ChannelID"" type=""hidden"" value=""" & ChannelID & """>"
Response.Write " <br>"
Response.Write " <table width=""99%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"
Response.Write " <tr>"
Response.Write " <td>"
Response.Write " <FIELDSET align=center>"
Response.Write " <LEGEND align=left>"
If ChannelID = "" Then
Response.Write ("添加外部频道")
Else
Response.Write ("修改外部频道")
End If
Response.Write "</LEGEND>"
Response.Write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""35""> <div align=""center"">频道名称</div></td>"
Response.Write " <td width=""542""> <input name=""ChannelName"" value=""" & ChannelName & """ type=""text"" id=""ChannelName"" size=""30"" style=""border-style: solid; border-width: 1""> 概况性说明文字 </td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""35""> <div align=""center"">前台网址</div></td>"
Response.Write " <td width=""542""> <input name=""Url"" value=""" & Url & """ type=""text"" id=""Url"" size=""30"" style=""border-style: solid; border-width: 1""> 前台的访问入口Url </td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""35""> <div align=""center"">管理网址</div></td>"
Response.Write " <td width=""542""> <input name=""AdminUrl"" value=""" & AdminUrl & """ type=""text"" id=""AdminUrl"" size=""30"" style=""border-style: solid; border-width: 1""> 后台的管理入口Url </td>"
Response.Write " </tr>"
Response.Write ("<tr>")
Response.Write ("<td height=""28"" align=""right"" nowrap>")
Response.Write ("<div align=""center"">频道状态:</div></td>")
Response.Write ("<td height=""28"" nowrap>")
If TopFlag = 1 Then
Response.Write ("<input name=""TopFlag"" type=""radio"" value=""1"" checked>")
Else
Response.Write ("<input name=""TopFlag"" type=""radio"" value=""1"">")
End If
Response.Write ("正常 ")
If TopFlag = 0 Then
Response.Write ("<input name=""TopFlag"" type=""radio"" value=""0"" checked>")
Else
Response.Write ("<input name=""TopFlag"" type=""radio"" value=""0"">")
End If
Response.Write ("关闭</td>")
Response.Write ("</tr>")
Response.Write ("<tr>")
Response.Write ("<td height=""28"" align=""right"" nowrap>")
Response.Write ("<div align=""center""> 管理登录方式:</div></td>")
Response.Write ("<td height=""28"" nowrap>")
If OpenFlag = 1 Then
Response.Write ("<input name=""OpenFlag"" type=""radio"" value=""1"" checked>")
Else
Response.Write ("<input name=""OpenFlag"" type=""radio"" value=""1"">")
End If
Response.Write ("新窗口 ")
If OpenFlag = 0 Then
Response.Write ("<input name=""OpenFlag"" type=""radio"" value=""0"" checked>")
Else
Response.Write ("<input name=""OpenFlag"" type=""radio"" value=""0"">")
End If
Response.Write ("嵌入系统</td>")
Response.Write ("</tr>")
Response.Write " <tr>"
Response.Write " <td height=""35""> <div align=""center"">简要说明</div></td>"
Response.Write " <td><textarea name=""Description"" rows=""8"" id=""Description"" style=""width:80%;border-style: solid; border-width: 1"">" & Descript & "</textarea></td>"
Response.Write " </tr>"
Response.Write ("<tr> ")
Response.Write (" <td width=""150"" height=""28"" align=""right"" nowrap> <div align=""center"">频道系号:</div></td>")
Response.Write (" <td height=""28"" nowrap> <input name=""OrderID"" type=""text"" id=""OrderID"" value=""" & OrderID & """ style=""border-style: solid; border-width: 1"">")
Response.Write (" 请输入1000以内的频道系号,值越小排在越前面 </td>")
Response.Write ("</tr>")
Response.Write " </table>"
Response.Write " </FIELDSET>"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <table width=""100%"" height=""30"" border=""0"" cellpadding=""0"" cellspacing=""0"">"
Response.Write " <tr>"
Response.Write " <td height=""40"" align=""center"">"
Response.Write " <input type=""button"" name=""Submit"" Onclick=""CheckForm()"" value="" 确 定 "">"
Response.Write " <input type=""button"" name=""Submit2"" onclick=""window.close()"" value="" 取 消 "">"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " </form>"
Response.Write "</body>"
Response.Write "</html>"
Response.Write "<Script Language=""javascript"">" & vbCrLf
Response.Write "<!--" & vbCrLf
Response.Write "function CheckForm()" & vbCrLf
Response.Write "{ var form=document.ExtForm;" & vbCrLf
Response.Write " if (form.ChannelName.value=='')" & vbCrLf
Response.Write " {"
Response.Write " alert(""请输入频道名称!"");" & vbCrLf
Response.Write " form.ChannelName.focus();" & vbCrLf
Response.Write " return false;"
Response.Write " }"
Response.Write " if (form.Url.value==''||form.Url.value=='http://')" & vbCrLf
Response.Write " {"
Response.Write " alert(""请输入前台访问的URL!"");" & vbCrLf
Response.Write " form.Url.focus();" & vbCrLf
Response.Write " return false;"
Response.Write " }"
Response.Write " if (form.AdminUrl.value==''||form.AdminUrl.value=='http://')" & vbCrLf
Response.Write " {"
Response.Write " alert(""请输入后台管理入口!"");" & vbCrLf
Response.Write " form.AdminUrl.focus();" & vbCrLf
Response.Write " return false;"
Response.Write " }"
Response.Write " form.submit();" & vbCrLf
Response.Write " return true;" & vbCrLf
Response.Write "}" & vbCrLf
Response.Write "//-->" & vbCrLf
Response.Write "</Script>" & vbCrLf
End Sub
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -