📄 show.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="vbs.asp"-->
<%
id=myCdbl(Request.QueryString("id"))
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" />
<base href="<%=GetPageUrlPath()%>" />
<title><%=Article.Title%></title>
<script language="javascript">
var sPath = document.location.protocol + "//" + document.location.host + document.location.pathname;
if(sPath.indexOf("/article/")>=0)
{
var sPath_tmp = sPath.split("/article/");
var BasePath = sPath_tmp[0]+"/";
document.write('<base href="'+BasePath+'" />');
}
</script>
<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)%> >> 阅读文章</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><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
<tr>
<td align="center"><h1><%=Article.Title%></h1>
<hr size="1" color="#EBEBEB" />
来源:<%=Article.ComeFrom%> 发布时间:<%=Format_Time(Article.AddTime,1)%> 查看次数:<%Call News_Hits(Article.ID)%>
<hr size="1" color="#EBEBEB" />
</td>
</tr>
<tr>
<td style="word-break: break-all; word-wrap:break-word;"><div class="gray14"><%Call OutThisPageContent(Article.ID,Article.Content,"article")%></div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5" style="border:1px solid #EBEBEB; margin-top:8px;">
<tr>
<td class="gray14"><%Call Ok3w_Article_PreNext(Article.ClassID,Article.ID)%></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"><%Call Ok3w_Article_List(Article.ClassID,8,30,False,True,False,"rnd")%></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="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>现在有<strong><%=GetCommentsCount(2,Article.ID)%></strong>人对本文发表评论 <a href="Comments.asp?ArticleID=<%=Article.ID%>" style="color:#990000; text-decoration:underline;">查看所有评论</a></td>
</tr>
<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="8"></td>
</tr>
</table>
<!--#include file="foot.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -