⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pubnewsdetail.asp

📁 一个不错的个人商务网站的源码
💻 ASP
字号:
<%
dim dbpath
dbpath="../"
%>
<!--#include file="../db_conn.asp"-->
<!--#include file="../comm/comm.asp"-->
<!--#include file="../comm/sub.asp"-->
<!--#include file="../comm/my_request.asp"-->
<!--begin TOP-->
<%
'说明 head(a,b,c)
'a为页标题
'b为页描述
'c为页关键字
call head(r(26)&"-网站公告",r(27),r(28))
id=my_request("id",1)
if id="" or isnull(id) then
response.write"<SCRIPT language=JavaScript>alert('参数错误');"
response.write"javascript:history.go(-1)</SCRIPT>"
end if
id=cint(id)
upsql="update info_list set hitnums=hitnums+1 where id="&id
conn.execute (upsql)
sql="select * from info_list where id="&id
set rs=conn.execute (sql)
title=rs("title")
content=rs("content")
editor=rs("editor")
hitnums=rs("hitnums")
addtime=rs("addtime")
rs.close
set rs=nothing
%>
<!--end TOP-->
<div align="center">
<table border="0" width="760" cellpadding="0" style="border-collapse: collapse">
	<tr>
		<td width="182" valign="top"><!--#include file="../left.asp"--> </td>
		<td width="15" valign="top"> </td>
		<td width="563" valign="top">
	
		<table border="0" width="563" id="table1" cellpadding="0" style="border-collapse: collapse">
			<tr>
				<td width="72" class="topmanu_bg" height="20">
				<p align="center">
				<img border="0" src="<%=dbpath%>images/icon_bulletin.gif" width="16" height="16" align="absmiddle">公告内容</td>
				<td width="490" height="13">
				<p align="right">&nbsp;<img border="0" src="<%=dbpath%>images/redirect.gif" width="13" height="12">
				<a href="../PubNewsList.asp">返回公告列表页面</a></td>
			</tr>
			<tr>
				<td width="563" colspan="2" class="right_nav" height="3"></td>
			</tr>
		</table>
		<table border="0" width="100%" id="table5" cellpadding="0" style="border-collapse: collapse">
			<tr>
				<td> </td>
			</tr>
		</table>
		<table border="0" width="100%" id="table2" cellpadding="4" style="border-collapse: collapse">
			<tr>
				<td>
				<p align="center"><b><%=title%></b></td>
			</tr>
			<tr>
				<td>
				<p align="center"> <font color="#808080">加入时间:<%=addtime%>&nbsp;&nbsp;点击:<font color="#FF0000"><%=hitnums%>次</font>&nbsp;&nbsp;编辑:<%=editor%></font></td>
			</tr>
			<tr>
				<td>&nbsp;&nbsp;&nbsp; <%=content%>
				<br>
				 </td>
			</tr>
			</table>
		<table border="0" width="100%" id="table4" cellpadding="0" style="border-collapse: collapse">
			<tr>
				<td>
				<p align="right"><a href="javascript:window.close()">关闭窗口</a></td>
			</tr>
		</table>
		

		</td>
	</tr>
</table>
</div>
<!--begin end-->
<%call boot()%><!--end end-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -