📄 article_left.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 Article_Left
KSCls.Execute()
Set KSCls = Nothing
Class Article_Left
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()
Dim OpType, ID, StatusFlag
OpType = KSCMS.G("Type")
ID = KSCMS.G("ID")
StatusFlag = KSCMS.G("StatusFlag")
If ID = "" Then ID = "0"
If OpType = "" Then OpType = "-1"
If ID = "0" And OpType = "0" Then OpType = "-1"
If StatusFlag = "" Then StatusFlag = "0"
With Response
.Write "<html>"
.Write "<head>"
.Write "<meta http-equiv=""Content-Language"" content=""zh-cn"">"
.Write "<meta HTTP-EQUIV=""Content-Type"" CONTENT=""text/html; charset=gb2312"">"
.Write "<title>文章管理</title>"
.Write "<script language=""JavaScript"" src=""../JS/SetFocus.js""></script>"
.Write "<script language=""JavaScript"" src=""../JS/Common.js""></script>"
.Write "<script>"
.Write "<!--" & vbCrLf
.Write "var EnabledTF=true;"
.Write "function SetEnabledStatus(Value)"
.Write "{"
.Write "document.all.EnabledArea.disabled=Value;"
.Write "EnabledTF=!Value;"
.Write "}" & vbCrLf
.Write "-->"
.Write "</script>"
.Write "<link href=""../Inc/ManageMent.css"" rel=""stylesheet"" type=""text/css"">"
.Write "<link href=""../Inc/Admin_Style.CSS"" rel=""stylesheet"">"
.Write "</head>"
.Write "<body leftmargin=""0"" topmargin=""0"" marginwidth=""0"" marginheight=""0"" bgcolor=""#F1FAFA"">"
.Write " <div style="" height:96%; overflow:auto; width:100%"" align=""center"">"
.Write " <table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=""0"">"
.Write " <tr>"
.Write " <td height=""20"" valign=""top"">"
.Write " <table width=""100%"" border=""0"" align=""left"" cellpadding=""0"" cellspacing=""0"">"
.Write " <tr>"
.Write " <td height=""22""> <img src=""../Images/Info.gif"" align=""absmiddle"">详细信息</td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""270"" valign=""top"">"
.Write " <table width=""100%"" height=""100%"" border=""0"" cellpadding=""0"" cellspacing=""0"">"
.Write " <tr>"
.Write " <td height=""100%"" valign=""top"" >"
Dim ObjRS, CountClassRS, CountObjRS, SqlStr
Set ObjRS = Server.CreateObject("AdoDB.RecordSet")
If OpType = 0 Then
SqlStr = "Select FolderName,Tj,CreateDate From KS_Class Where ID='" & ID & "'"
ObjRS.Open SqlStr, conn, 1, 1
If Not ObjRS.EOF Then
Set CountClassRS = conn.Execute("Select Count(ID) As ClassTotal From KS_Class Where TN='" & ID & "'")
Set CountObjRS = conn.Execute("Select Count(ID) As ArticleTotal From KS_Article Where Tid='" & ID & "'")
.Write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
.Write " <tr>"
.Write " <td height=""30"" style=""word-wrap: break-word; word-break: break-all;"">"
.Write " <div align=""left""><strong> " & ObjRS("FolderName") & "</strong></div></td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> <div align=""left""> 类型:"
If ObjRS(1) = 1 Then
.Write ("文章频道")
Else
.Write ("文章栏目")
End If
.Write " </div></td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 栏目总数:<font color=red>" & CountClassRS(0) & "</font>"
.Write " 个</td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 文章总数:<font color=red>" & CountObjRS(0) & "</font>"
.Write " 篇</td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 创建日期:" & ObjRS(2) & "</td>"
.Write " </tr>"
.Write " </table>"
CountClassRS.Close
CountObjRS.Close
Set CountClassRS = Nothing
Set CountObjRS = Nothing
End If
ElseIf OpType = 1 Then
SqlStr = "Select Title,PicNews,AddDate,ArticleContent,Recommend,Popular,Strip,Rolls,Slide,FullTitle From KS_Article Where NewsID='" & ID & "'"
ObjRS.Open SqlStr, conn, 1, 1
If Not ObjRS.EOF Then
Dim TitleStr:TitleStr=ObjRS(9)
IF TitleStr="" Or IsNull(TitleStr) Then TitleStr=ObjRS(0)
.Write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
.Write " <tr>"
.Write " <td height=""30"" style=""word-wrap: break-word; word-break: break-all;"">"
.Write " <div align=""left""><strong> " & TitleStr & "</strong></div></td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> <div align=""left""> 类型:"
If ObjRS(1) = 1 Then
.Write ("图片文章")
Else
.Write ("文章")
End If
.Write " </div></td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 大 小:" & Len(ObjRS(3))
.Write " byte(s)</td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 属 性:"
If CInt(ObjRS(4)) = 1 Or CInt(ObjRS(5)) = 1 Or CInt(ObjRS(6)) = 1 Or CInt(ObjRS(7)) = 1 Or CInt(ObjRS(8)) = 1 Then
If CInt(ObjRS(4)) = 1 Then
.Write ("<span title=""推荐文章"" style=""cursor:default""><font color=""green"">荐</font></span> ")
End If
If CInt(ObjRS(5)) = 1 Then
.Write ("<span title=""热门文章"" style=""cursor:default""><font color=""red"">热</font></span> ")
End If
If CInt(ObjRS(6)) = 1 Then
.Write ("<span title=""今日头条"" style=""cursor:default""><font color=""#0000ff"">头</font></span> ")
End If
If CInt(ObjRS(7)) = 1 Then
.Write ("<span title=""滚动文章"" style=""cursor:default""><font color=""#F709F7"">滚</font></span> ")
End If
If CInt(ObjRS(8)) = 1 Then
.Write ("<span title=""幻灯片文章"" style=""cursor:default""><font color=""black"">幻</font></span>")
End If
Else
.Write ("无")
End If
.Write " </td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 添加日期:" & ObjRS(2) & "</td>"
.Write " </tr>"
.Write " </table>"
End If
Else
ObjRS.Open "Select Count(ID) As TotalChannel From KS_Class Where ChannelID=1 And TN='0' And DelTF=0", conn, 1, 1
Set CountObjRS = conn.Execute("Select Count(ID) As ArticleTotal From KS_Article Where DelTF=0")
Set CountClassRS = conn.Execute("Select Count(ID) As VerificTotal From KS_Article Where Verific=0")
.Write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
.Write " <tr>"
.Write " <td height=""5""></td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 频道总数:<font color=blue>" & ObjRS(0) & "</font>"
.Write " 个</td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 文章总数:<font color=blue>" & CountObjRS(0) & " </font>"
.Write " 篇</td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 待审文章:<font color=Red>" & CountClassRS(0) & "</font>"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -