<!--#include file="system/conn.asp"--><%

id=Request.QueryString("id")
If id="" Or Not IsNumeric(id) Then id=0
If id<3 Then Conn.Close:Set Conn=Nothing:Response.Redirect "/"

Set Rs=Server.CreateObject("ADODB.RecordSet")

Rs.Open "SELECT pagestitle,pageskeywords,pagesdescription,pagescontent FROM pages WHERE pagesstate>0 AND id="& id,Conn,1,1
If Not Rs.Bof And Not Rs.Eof Then
	pagestitle=Rs("pagestitle")
	pageskeywords=Rs("pageskeywords")
	pagesdescription=Rs("pagesdescription")
	pagescontent=Rs("pagescontent")
End If


%><!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%If pageskeywords<>"" Then Response.Write pageskeywords Else Response.Write keywords End If%>" />
<meta name="description" content="<%If pagesdescription<>"" Then Response.Write pagesdescription Else Response.Write description End If%>" />
<title><%=pagestitle & "【" & webname & "】"%></title>
<link rel="stylesheet" type="text/css" href="s/c.css" />
</head>
<body>
<div id="container">
<%subTop%>
<div class="wrap_content">
	<div class="location"><a href="/">首页</a> > <span><%=pagestitle%></span></div>
	<div class="pg">
		<div class="pt"><%=pagestitle%></div>
		<div class="ct"><%If pagescontent<>"" Then Response.Write HTMLUnCode(pagescontent) End If%></div>
		<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>
<%subBottom%>
</div>
</body>
</html><%Conn.Close:Set Conn=Nothing%>