📄 picture_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 Picture_Left
KSCls.Execute()
Set KSCls = Nothing
Class Picture_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 = Request.QueryString("Type")
ID = Request.QueryString("ID")
StatusFlag = Request.QueryString("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>" & vbCrLf
.Write "<!--" & vbCrLf
.Write "var EnabledTF=true;" & vbCrLf
.Write "function SetEnabledStatus(Value)"
.Write "{" & vbCrLf
.Write "document.all.EnabledArea.disabled=Value;" & vbCrLf
.Write "EnabledTF=!Value;" & vbCrLf
.Write "}" & vbCrLf
.Write "-->" & vbCrLf
.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 PictureTotal From KS_Photo 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,AddDate,Recommend,Popular,Rolls,Slide,Strip,Rank From KS_Photo Where PicID='" & ID & "'"
ObjRS.Open SqlStr, conn, 1, 1
If Not ObjRS.EOF Then
.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(0) & "</strong></div></td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> <div align=""left""> 类 型:"
.Write " 图片组"
.Write " </div></td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 星 级:" & ObjRS(7)
.Write " </td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 属 性:"
If CInt(ObjRS(2)) = 1 Or CInt(ObjRS(3)) = 1 Or CInt(ObjRS(4)) = 1 Or CInt(ObjRS(5)) = 1 Or CInt(ObjRS(6)) = 1 Then
If CInt(ObjRS(2)) = 1 Then
.Write ("<span title=""推荐图片"" style=""cursor:default""><font color=""green"">荐</font></span> ")
End If
If CInt(ObjRS(3)) = 1 Then
.Write ("<span title=""热门图片"" style=""cursor:default""><font color=""red"">热</font></span> ")
End If
If CInt(ObjRS(4)) = 1 Then
.Write ("<span title=""滚动图片"" style=""cursor:default""><font color=""#F709F7"">滚</font></span> ")
End If
If CInt(ObjRS(5)) = 1 Then
.Write ("<span title=""幻灯片图片"" style=""cursor:default""><font color=""black"">幻</font></span> ")
End If
If CInt(ObjRS(6)) = 1 Then
.Write ("<span title=""今日头条图片"" style=""cursor:default""><font color=""blue"">头</font></span>")
End If
Else
.Write ("无")
End If
.Write " </td>"
.Write " </tr>"
.Write " <tr>"
.Write " <td height=""22""> 添加日期:" & ObjRS(1) & "</td>"
.Write " </tr>"
.Write " </table>"
End If
Else
ObjRS.Open "Select Count(ID) As TotalChannel From KS_Class Where ChannelID=2 And TN='0' And DelTF=0", conn, 1, 1
Set CountObjRS = conn.Execute("Select Count(ID) As PictureTotal From KS_Photo Where DelTF=0")
Set CountClassRS = conn.Execute("Select Count(ID) As VerificTotal From KS_Photo 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>"
.Write " 组</td>"
.Write " </tr>"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -