📄 comments.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Const dbdns=""%>
<!--#include file="AppCode/Conn.asp"-->
<!--#include file="AppCode/fun/function.asp"-->
<!--#include file="AppCode/Class/Ok3w_Article.asp"-->
<!--#include file="AppCode/Pager.asp"-->
<!--#include file="vbs.asp"-->
<%
id=myCdbl(Request.QueryString("ArticleID"))
Set Article = New Ok3w_Article
Call Article.HitsAdd(Id)
Call Article.Load(Id)
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>评论:<%=Article.Title%></title>
<script language="javascript" src="images/js.js"></script>
<link href="css/css2.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="top.asp"-->
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="40">您当前位置:<a href="">网站首页</a> >> <%Call Class_Nav(Article.SortPath)%>
>> <a href="article/<%=Article.ID%>.html">原文</a> >> 评论文章</td>
<form id="form1" name="form1" method="get" action="search.asp">
<td width="344"><span style="font-weight: bold">站内查找:</span>
<input name="keyword" type="text" id="keyword" size="29" />
<input type="submit" name="Submit" value="搜索" />
</td>
</form>
</tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="8" cellspacing="0" style="border:1px solid #AEE1DC;">
<tr>
<td><h1 align="center">评论:<%=Article.Title%></h1>
<hr size="1" color="#EBEBEB" /><!--留言内容示开始-->
<%
Sql = "select * from Ok3w_Guest where IsPass=1 and TypeID=2 and TableID=" & Article.ID
Sql = Sql & " order by ID desc"
Set Page = New TurnPage
Call Page.GetRs(Conn,Rs,Sql,10)
If Not(Rs.Eof And Rs.Bof) Then
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<%Do While Not Rs.Eof And Not Page.Eof%>
<tr>
<td align="left"><br />
<strong><%=OutStr(Rs("UserName"))%></strong><<%=Format_Time(Rs("AddTime"),1)%>>评论说:
<hr size="1" color="#EBEBEB" /></td>
</tr>
<tr>
<td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="gray14"><%=OutStr(Rs("Content"))%></td>
</tr>
<%If Rs("Ad_Ask")<>"" Then%>
<tr>
<td class="gray14" style="color:#346E00; padding:5px; border:1px solid #EBEBEB;">客服回复:<%=OutStr(Rs("Ad_Ask"))%></td>
</tr>
<%End If%>
</table></td>
</tr>
<%
Rs.MoveNext
Page.MoveNext
Loop
%>
</table>
<br />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><%Call Page.GetPageList()%></td>
</tr>
</table>
<br />
<%Else%>
<span class="red18b">
<br />
还没有人发表评论,你来第一条吧。<br />
<br />
</span>
<%
End If
Rs.Close
%>
<!--留言内容显示结束--><table width="100%" border="0" cellspacing="0" cellpadding="8" style="border:1px solid #EBEBEB; margin-top:8px;">
<tr>
<td bgcolor="#f2f6fb" class="black14b">发表评论</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #EBEBEB; margin-top:4px;">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="5">
<form id="form2" name="form2" method="post" action="save.asp">
<script language="JavaScript" type="text/javascript">
String.prototype.trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, "");}
function Ok3w_G_Submit(frm)
{
if(frm.UserName.value.trim()=="" || frm.UserName.value=="请输入您的姓名")
{
alert("请输入姓名");
frm.UserName.focus();
return false;
}
if(frm.Content.value.trim()=="" || frm.Content.value=="请输入您的评论")
{
alert("请输入内容");
frm.Content.focus();
return false;
}
frm.bntSubmit.disabled=true;
frm.submit();
}
</script>
<tr>
<td><input name="UserName" type="text" id="UserName" value="请输入您的姓名" onFocus="this.value='';" maxlength="20" />
<input name="TypeID" type="hidden" id="TypeID" value="2" />
<input name="TableID" type="hidden" id="TableID" value="<%=Article.ID%>" />
<input name="action" type="hidden" id="action" value="Comments" /></td>
</tr>
<tr>
<td><textarea name="Content" cols="50" rows="5" id="Content" onFocus="this.value='';" style="width:99%;">请输入您的评论</textarea></td>
</tr>
<tr>
<td><input name="bntSubmit" type="button" id="bntSubmit" value="Ok!立即提交" onClick="Ok3w_G_Submit(this.form)" /></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="8" style="border:1px solid #EBEBEB; margin-top:8px;">
<tr>
<td bgcolor="#f2f6fb" class="black14b">赞助商链接</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5" style="border:1px solid #EBEBEB; margin-top:4px;">
<tr>
<td class="gray14"><%=GetAdSense(5)%></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="360" align="right" valign="top"><table width="344" border="0" cellpadding="3" cellspacing="1" bgcolor="#AEE1DC">
<tr>
<td align="center" bgcolor="#FFFFFF"><%=GetAdSense(6)%></td>
</tr>
</table>
<table width="344" border="0" cellpadding="0" cellspacing="1" bgcolor="#AEE1DC" style="margin-top:8px;">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/index5_37.gif">
<tr>
<td width="10"> </td>
<td align="left" class="black14b">最新更新</td>
<td align="right"><img src="images/index5_39.gif" width="35" height="29" /></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF" class="gray14"><%Call Ok3w_Article_List(Article.ClassID,15,20,False,False,False,"new")%></td>
</tr>
</table>
<table width="344" border="0" cellpadding="3" cellspacing="1" bgcolor="#AEE1DC" style="margin-top:8px;">
<tr>
<td align="center" bgcolor="#FFFFFF"><%=GetAdSense(7)%></td>
</tr>
</table>
<table width="344" border="0" cellpadding="0" cellspacing="1" bgcolor="#AEE1DC" style="margin-top:8px;">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/index5_37.gif">
<tr>
<td width="10"> </td>
<td align="left" class="black14b">阅读排行</td>
<td align="right"><img src="images/index5_39.gif" width="35" height="29" /></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" bgcolor="#FFFFFF" class="gray14"><%Call Ok3w_Article_List(Article.ClassID,15,20,False,False,False,"hot")%></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="12"></td>
</tr>
</table>
<!--#include file="foot.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -