<!--#include file="news/dbconnect/index.inc.asp" -->
<!--#include file="news/dbconnect/functions.asp" -->
<!--#include file="news/inc/setup.asp" -->
<%
Dim content,id
id=request("id")
sql1 = "UPDATE news SET hits = hits + 1 WHERE id = " +id
conn.execute sql1
sql="select top 1 * from news where id="&id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
If Not rs.eof Then
title=rs("title")
adtime=rs("addtime")
addtime=year(adtime)&"/"&month(adtime)&"/"&day(adtime)
hits=rs("hits")
firstImageName=rs("firstImageName")
content=rs("content")
Else
title=" "
addtime=" "
hits=0
content=" "
End If
rs.close
set rs=Nothing
'rs.open "select * from tablename where id="&request("id"),conn,1,3
'rs("a")=request("a")
'rs("b")=request("b")
'rs.update
'rs.close
%>
<!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><%=title%>--<%=homepage_title%></title>
<link href="index.css" rel="stylesheet" type="text/css" />
<meta name="description" content="<%=descriptions%>"/>
<meta name="keywords" content="<%=keywords%>" />
<meta name="oldlei" content="http://www.oldlei.com" />
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div class="all">
<!--#include file="top.asp"-->
<!--#include file="menu.asp"-->
<div id="showmain">
<div id="st">
<div id="showtop">
<span class="weizhi">现在位置:< a href="index.asp">首页</ a>-< a href="jyhz.asp">动态新闻</ a></span>
</div>
<div class="showtitle">
<%=title%>
</div>
<div style="width:748px; text-align:right; font-size:12px;float: left;padding-bottom: 10px;float:left;" >
发布时间:<%=addtime%> 点击次数:<%=hits%>
</div>
<div class="showcontent" id="show_jyhz" >
<%=content
文字和图片需要和导航栏对齐,现在图片长了文字摘了,需要调整一下。