<!-- #include file="../inc/301.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="../inc/Nohtml.asp" -->
<!-- #include file="../inc/other.asp" -->
<% 
ida=Request.ServerVariables("QUERY_STRING")
id1=replace(ida,".html","")
if instr(id1,"-")>0 then
id2=split(id1,"-")
id=id2(0)
pa=id2(1)
else
id=6
end if
set rs=server.createobject("adodb.recordset")
sql="select n_id,n_name,n_description,n_keywords from Web_Navigation where n_id="&id&""
rs.open(sql),conn,1,1
wz_name=rs("n_name")
wz_description=rs("n_description")
wz_keywords=rs("n_keywords")
rs.close
set rs=nothing
%>

<%
if pa="" then
yema=""
else
yema=" - 第"&Pa&"页"
end if
idss=6
%>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title><%=wz_name%><%=yema%> - <%=web_name%></title>
<meta name="keywords" content="<%=wz_keywords%>" />
<meta name="description" content="<%=wz_description%>" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- #include file="../Config/css.asp" -->
</head>

<body>
      <!-- #include file="../Config/head.asp" -->
     
    <!-- Blog Content
    ================================================== --> 
    <div class="row">

        <!-- Blog Posts
        ================================================== --> 
        <div class="span8 blog">

            <!-- Blog Post 1 -->
            
<div class="well">
<strong><i class="icon-bullhorn"></i>系统消息</strong> <%=web_xiaoxi%>
 </div>



            
<% 
set rs=server.createobject("adodb.recordset")
sql="select s_id,s_content,s_time,s_hit,Publish_Mode,s_author,s_ip from web_shuoshuo where view_yes=1 order by s_id desc"
rs.open(sql),conn,1,1
If rs.bof And rs.eof Then
response.write "暂时没有任何内容。"
response.end
end if
rs.pagesize=8 
Page=""&pa&"" 
if Page="" then Page=1
rs.absolutepage=Page 
for t= 1 to rs.pagesize
if rs.eof then
exit for
end if
s_id=rs("s_id")
s_content=rs("s_content")
s_time=rs("s_time")
Publish_Mode=rs("Publish_Mode")
s_author=rs("s_author")
s_hit=rs("s_hit")
s_ip=rs("s_ip")
Publish_Mode=rs("Publish_Mode")
if Publish_Mode=1 then
fbfs="PC"
elseif Publish_Mode=2 then
fbfs="iPhone"
elseif Publish_Mode=3 then
fbfs="Linux"
elseif Publish_Mode=4 then
fbfs="Android"
else
fbfs="未知设备"
end if
a=a+1
%>
<%
TimeDifference = DateDiff("s", s_time, Now)
if datediff("d",s_time,date)=0 then
ti="今天 " &formatdatetime(s_time,4)
elseif datediff("d",s_time,date)=1 then
ti="昨天 "&formatdatetime(s_time,4)
elseif datediff("d",s_time,date)=2 then
ti="前天 "&formatdatetime(s_time,4)
elseif datediff("d",s_time,date)< 8 then
ti=datediff("d",s_time,date)&"天前 "&formatdatetime(s_time,4)
else
ti=formatdatetime(s_time,2)&" "&formatdatetime(s_time,4)
end if

if now()-s_time <1 then
neti="id=""New2"""
elseif s_hit>200 then
neti="id=""hotwz"""
else
neti=""
end if
%>
<% 
set rs6=server.createobject("adodb.recordset")
query="select country from user_ip where (ip1<=" &s_ip& " and ip2>=" &s_ip&")"
rs6.open query,conn,1,1
If rs6.bof And rs6.eof Then
ipdili="未知位置"
else
ipdili=rs6("country")
end if
rs6.close
set rs6=nothing
%>

<article>
<a id="Comment-<%=s_id%>"></a>
<div class="post-summary">

            
            
<div class="post-body about-author" <%=neti%>>

<img src="../img/admin-avatar.jpg" /><i class="icon-headphones"></i> <%=s_author%><br />
<a href="../shuos/?<%=s_id%>.html"><%=s_content%></a>

</div>

<%
set rs2=server.createobject("adodb.recordset")
sql="select * from web_shuoshuo_comment where su_view=1 and su_sid="&s_id&" order by su_sid desc"
rs2.open(sql),conn,1,1
sul=rs2.recordcount
if sul<>0 then
sull=sul&" 条"
else
sull="暂无"
end if
%>
<div class="post-summary-footer">
                    
<i class="icon-time"></i> <a title="<%=s_author%> 发表于<%=ti%> "><%=ti%></a>︱<i class="icon-share"></i><a title="<%=s_author%> 通过 <%=fbfs%> 发表">来自：<%=fbfs%></a> 
<ul class="post-data">				
                            <li><i class="icon-fire"></i> <a title="共浏览 <%=s_hit%> 次"><%=s_hit%> °</a></li>
                            <li><i class="icon-map-marker"></i> <a title="<%=s_author%> 当前位于 <%=ipdili%>"><%=ipdili%></a></li>
                        </ul>

                    </div>
                </div>   

<h6 class="title-bg">
                <ul class="post-data">				
<li><i class="icon-comment"></i> <a title="<%=sull%>" href="../shuos/?<%=s_id%>.html#Comment"><%=sull%></a></li>
                        </ul>
<i class="icon-eye-open"></i> <a href="../shuos/?<%=s_id%>.html"> 阅读全文</a><small> （<%=s_hit%>）</small>

</h6>
</article>
            
<%
rs.movenext
next
%>
<%
fenye="?"&id&"-"
%>

<div class="pagination">
<div class="post-summary-footer">
<ul class="post-data">
<li ><a>第 <%=Page%> - <%=rs.pagecount%> 页</a> <a>共 <%=rs.recordcount%> 条</a></li>
</ul>
</div>

<ul>
                
<%if Page=1 then%>
<li class="active">
<a>首页</a>
</li>
<%else%>
<li >
<a href="<%=fenye%>1.html">首页</a>
</li>
<%end if%>
                
<%if Page=1 then%>
<li class="active">
<a>上一页</a>
</li>
<%else%>
<li >
<a href="<%=fenye%><%=Page-1%>.html">上一页</a>
</li>
<%end if%>

<%if rs.pagecount<Page+1 then%>
<li class="active">
<a>下一页</a>
</li>
<%else%>
<li >
<a href="<%=fenye%><%=Page+1%>.html">下一页</a>
</li>
<%end if%>
 
<%if rs.pagecount<Page+1 then%>
<li class="active">
<a>尾页</a>
</li>
<%else%>
<li >
<a href="<%=fenye%><%=rs.pagecount%>.html">尾页</a>
</li>
<%end if%>
</ul>
<%
rs.close
set rs=nothing
%>
</div>
       </div>
 <!-- #include file="../Config/Shuo_Sidebar.asp" -->

 <!-- #include file="../Config/foot.asp" -->
    
</body>
</html>
<!-- #include file="../inc/close.asp" -->