28,391
社区成员
发帖
与我相关
我的任务
分享
<%@ LANGUAGE = VBScript.Encode %>
<!--#include file="class/sub.asp" -->
<!--#include file="function.inc.asp" --><%owen=request("id")%>
<%
id=cstr(request("id"))
'然后取得page的值和link的值:
if request.QueryString("page")="" then
page=1
else
page=request.querystring("page")
end if
link="shownews.asp?id="&request.querystring("id")
Set rsnews=Server.CreateObject("ADODB.RecordSet")
sql="update news set hits=hits+1 where id="&id
conn.execute sql
sql="select * from news where id="&owen
rsnews.Open sql,conn,1,1
title=rsnews("title")
if rsnews.eof and rsnews.bof then
response.Write("数据库出错")
else
%>
<!--#include file="include/top.asp" -->
<div id='content' style='width:990px;height:634px;background:url(effect/source/bg/cbg.gif);margin:0px auto'>
<!-- 图片/FLASH -->
<div id='pdv_12718' class='pdv_class' title='' style='width:990px;height:70px;top:0px;left:0px; z-index:9'>
<div id='spdv_12718' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px solid;background:;">
<div style="height:25px;margin:1px;display:none;background:;">
<div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:">
</div>
<div style="float:right;margin-right:10px;display:none">
<a href="news/class/-1" style="line-height:25px;color:">更多</a>
</div>
</div>
<div style="padding:0px">
<img src="diy/pics/20100413/1271146066.gif" border="0" width="100%" />
</div>
</div>
</div>
</div>
<!-- 文章一级分类 -->
<div id='pdv_12734' class='pdv_class' title='' style='width:173px;height:200px;top:54px;left:38px; z-index:10'>
<div id='spdv_12734' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
<div style="height:100%;">
<div style="height:54px;border:0px;padding:0;margin:0;background:url(base/border/782/images/title.gif) 0px 0px no-repeat;">
<div style="float:right;width:60px;height:54px;background:url(base/border/782/images/title.gif) -840px 0px no-repeat;"></div>
</div>
<div style="margin:0px;padding:0px;">
<link href="news/templates/css/newsclass_dolphin.css" rel="stylesheet" type="text/css" />
<div class="newsclass_dolphin">
<% call xwleft() %>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 文章翻页检索 -->
<div id='pdv_12732' class='pdv_class' title='新闻检索' style='width:680px;height:500px;top:106px;left:257px; z-index:11'>
<div id='spdv_12732' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px solid;background:;">
<div style="height:25px;margin:1px;display:none;background:;">
<div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:">
新闻检索
</div>
<div style="float:right;margin-right:10px;display:none">
<a href="news/class/-1" style="line-height:25px;color:">更多</a>
</div>
</div>
<div style="padding:0px">
<link href="news/templates/css/newsquery.css" rel="stylesheet" type="text/css" />
<div id="newsquery">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="45" align="center"><strong><%= rsnews("title") %> </strong></td>
</tr>
<tr>
<td height="30" bgcolor="#F2F2F2" style="border-top: 1 solid #666666;border-bottom: 1 solid #666666"> 发布者:<%= rsnews("user") %> 发布时间:<%= rsnews("AddDate") %> 阅读:<font color="#FF0000"><%= rsnews("hits") %></font>次 </td>
</tr>
<tr>
<td><br />
<%call contentfy(rsnews("content"),page,link)%>
<%'rsnews("content") %></td> </tr>
<%
end if
rsnews.close
set rsnews=nothing
%>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- 当前位置提示条 -->
<div id='pdv_12731' class='pdv_class' title='当前位置' style='width:688px;height:30px;top:49px;left:254px; z-index:12'>
<div id='spdv_12731' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="border:0px;background:url(base/border/788/images/title.gif) no-repeat;padding:0px;margin:0px;height:41px">
<link href="news/templates/css/nav.css" rel="stylesheet" type="text/css" />
<div id="nav">
您现在的位置:<a href="index.asp"><%=SiteTitle%></a>
> <a href="news.asp?BigClass=<%= BigClass %>" ><%= BigClass %></a>
</div>
</div>
</div>
</div>
<!-- 文章搜索表单 -->
</div>
<% call newslook %>
<%
rs.close
set rs=nothing
call CloseConn()
%></body>
</html>