📄 article_commentview.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_CommentView
KSCls.Execute()
Set KSCls = Nothing
Class Article_CommentView
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(1, "KMA10018") Then
Call KSCMS.ReturnErr(0, "")
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 CommentID
CommentID = KSCMS.G("CommentID")
Dim RSObj
Set RSObj=Server.CreateObject("ADODB.Recordset")
RSObj.Open "Select * From KS_Comment Where ID=" & CommentID, conn, 1, 1
If RSObj.EOF And RSObj.BOF Then
Response.Write ("参数传递出错!")
Exit Sub
End If
Response.Write "<body leftmargin=""0"" topmargin=""0"" marginwidth=""0"" marginheight=""0"">"
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>"
Response.Write ("查看评论信息")
Response.Write "</LEGEND>"
Response.Write " <table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">文章标题</div></td>"
Response.Write " <td width=""542""> "
Dim ARS, Url
Set Ars= Server.CreateObject("ADODB.Recordset")
ARS.Open "select ID,tid,title,InfoPurview,ReadPoint,Fname from KS_Article Where NewsID='" & RSObj("InfoID") & "'", conn, 1, 1
If Not ARS.EOF Then
Url = KSCMS.GetInfoUrl(1,ARS)
Response.Write "<a href=""" & Url & """ target=""_blank"">" & ARS("title") & "</a>"
End If
ARS.Close
Set ARS = Nothing
Response.Write " </td></tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">发表人</div></td>"
Response.Write " <td width=""542""> " & RSObj("UserName") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">电子邮箱</div></td>"
Response.Write " <td width=""542""> <a href=""MailTo:" & RSObj("Email") & """ target=""_blank"">" & RSObj("Email") & "</a></td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td height=""25""> <div align=""center"">发表IP </div></td>"
Response.Write " <td>" & RSObj("UserIP") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">发表时间</div></td>"
Response.Write " <td width=""542""> " & RSObj("AddDate") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">支持票数</div></td>"
Response.Write " <td width=""542"">" & RSObj("score") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">反对票数</div></td>"
Response.Write " <td width=""542"">" & RSObj("oscore") & "</td>"
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">评论状态</div></td>"
If RSObj("verific") = 1 Then
Response.Write " <td width=""542""><font color=red>已审核</font></td>"
Else
Response.Write " <td width=""542""><font color=green>未审核</font></td>"
End If
Response.Write " </tr>"
Response.Write " <tr>"
Response.Write " <td width=""179"" height=""25""> <div align=""center"">评论内容</div></td>"
Response.Write " <td width=""542""><div style=""border: double #E7E7E7;height:110; overflow: auto; width:380;"">" & Trim(RSObj("Content")) & "</div></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=""Submit1"" onclick=""javascript:window.open('" & Url & "','new','');"" value=""查看文章"">"
Response.Write " <input type=""button"" name=""Submit2"" onclick=""javascript:window.close()"" value=""关闭窗口"">"
Response.Write " </td>"
Response.Write " </tr>"
Response.Write " </table>"
Response.Write " <br>"
Response.Write "</body>"
Response.Write "</html>"
End Sub
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -