<!-- #include file="../inc/301.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="../inc/Nohtml.asp" -->
<!-- #include file="../inc/other.asp" -->
<%
server_v40=Request.ServerVariables("QUERY_STRING")  
id=Int(replace(replace(server_v40,"/",""),".html",""))
set rs=server.createobject("adodb.recordset")
sql="select s_id from web_shuoshuo where s_id="&id&""
rs.open(sql),conn,1,1
If rs.bof And rs.eof Then
Response.Status = "404 Not Found" 
Response.End
end if
rs.close
set rs=nothing
set rs=server.createobject("adodb.recordset")
sql="select * from web_shuoshuo where s_id="&id&""
rs.open(sql),conn,1,1
s_id=rs("s_id")
s_content=rs("s_content")
ss_content=rs("s_content")
s_author=rs("s_author")
s_time=rs("s_time")
s_ip=rs("s_ip")
s_hit=rs("s_hit")
Publish_Mode=rs("Publish_Mode")
rs.close
set rs=nothing
idss=6
%>

<%
'防止刷新文章记数 
'u_hot=session("u_hot")
'if ( u_hot="" or u_hot<>id ) then
set rs=server.createobject("adodb.recordset")
sql="select s_hit from web_shuoshuo where s_id="&id&""
rs.open sql,conn,1,3
rs("s_hit")=rs("s_hit")+1
'session("u_hot")=id
rs.update
rs.close
set rs=nothing
'end if
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>说说：<%=RemoveHTML(s_content,15)%> - <%=web_name%></title>
<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">
    <!--Container row-->

        <!-- Blog Full Post
        ================================================== --> 
        <div class="span8 blog">

            <!-- Blog Post 1 -->
            <article>        

 <div class="post-content">
 
 <h6 class="title-bg">
<i class="icon-eye-open"></i> <a title="听 <%=s_author%> 说"> 听我说</a><small> （<%=s_hit%>）</small>

</h6>
                    
<div class="post-body about-author">

<img src="../img/admin-avatar.jpg" /><i class="icon-headphones"></i> <%=s_author%> 说：<br />
<%=ss_content%>

</div>
<% 
set rs=server.createobject("adodb.recordset")
sql="select su_sid from web_shuoshuo_comment where su_sid="&id&" and su_view=1"
rs.open(sql),conn,1,1
plsl=rs.recordcount
if plsl=0 then
plslxs="亲，沙发正空着，还不快来抢？"
else
plslxs="<a>"&plsl&"</a> 条评论"
end if
rs.close
set rs=nothing
%>

<% 

set rs=server.createobject("adodb.recordset")
sql="select s_id,s_content from web_shuoshuo where s_id >"&id&" and view_yes=1 order by s_id"
rs.open(sql),conn,1,1

If rs.bof And rs.eof Then
w_title="<a title='上一条：没有了'>没有了</a>"
else
s_content_d=rs("s_content")
s_id=rs("s_id")
w_title="<a href='/shuos/?"&s_id&".html' title='上一条："&RemoveHTML(s_content_d,100)&"...'>"&RemoveHTML(s_content_d,12)&" </a>"

end if

set rs2=server.createobject("adodb.recordset")
sql="select s_id,s_content from web_shuoshuo where s_id <"&id&" and view_yes=1 order by s_id desc"
rs2.open(sql),conn,1,1
If rs2.bof And rs2.eof Then
w_title_up="<a title='下一条：没有了'>没有了</a>"
else
s_id_up=rs2("s_id")
s_content_u=rs2("s_content")
w_title_up="<a href='/shuos/?"&s_id_up&".html' title='下一条："&RemoveHTML(s_content_u,100)&"...'>"&RemoveHTML(s_content_u,12)&"</a>"


end if
rs.close
set rs=nothing
rs2.close
set rs2=nothing
%>	
<% 
set rs2=server.createobject("adodb.recordset")
query="select country from user_ip where (ip1<=" &s_ip& " and ip2>=" &s_ip&")"
rs2.open query,conn,1,1
If rs2.bof And rs2.eof Then
country="未知位置"
else
country=rs2("country")
end if
rs2.close
set rs2=nothing
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

TimeDifference = DateDiff("s", s_time, Now)
if datediff("d",s_time,date)=0 then
ti="今天"
elseif datediff("d",s_time,date)=1 then
ti="昨天"
elseif datediff("d",s_time,date)=2 then
ti="前天"
elseif datediff("d",s_time,date)< 8 then
ti=datediff("d",s_time,date)&" 天前"
else
ti=formatdatetime(s_time,2)
end if
%>

                    <div class="post-summary-footer">
                        <ul class="post-data">
                            <li><i class="icon-calendar"></i><%=ti%>&nbsp;<%=formatdatetime(s_time,4)%></li>
                            <li><i class="icon-user"></i> <a href="../Search/?s=<%=s_author%>" title="本文作者：<%=s_author%>"><%=s_author%></a></li>
                            <li><i class="icon-comment"></i> <a href="#Comment" title="转到评论"><%=plsl%> 条评论</a></li>
                        </ul>
                    </div>
                </div>
            </article>

 <section class="post-content" id="New">
<div class="post-body about-author">
<div class="post-summary-footer">
<ul class="post-data">
说说
</ul>
</div>


<i class="icon-fire"></i><a title="已有 <%=s_hit%> 次浏览"><%=formatNumber(s_hit,0)%></a> ° <i class="icon-share"></i><a title="通过 <%=fbfs%> 发表">来自：<%=fbfs%></a>  <i class="icon-map-marker"></i><a title="<%=s_author%> 当前位于：<%=country%>"><%=country%></a> 
 </div>
</section>
    
            <!-- About the Author -->
<section class="post-content" id="New2">
<div class="post-body about-author">
<div class="post-summary-footer">
<ul class="post-data">
<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
<a class="bds_tsina"></a>
<a class="bds_qzone"></a>
<a class="bds_tqq"></a>
<a class="bds_tsohu"></a>
<a class="bds_t163"></a>
<span class="bds_more"></span>
<a class="shareCount"></a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=0" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->
</ul>
</div>
<i class="icon-arrow-up"></i>上一条： <%=w_title%> <br /> <i class="icon-arrow-down"></i>下一条： <%=w_title_up%>


                </div>

            </section>
            
<h5 class="title-bg">您可能还喜欢这些：</h5>
<div class="row">
<%
if plsl<1 then
sqlsl=8
else
sqlsl=4
end if
set rs=server.createobject("adodb.recordset")
sql= "select top "&sqlsl&" * from web_shuoshuo where s_id<>"&id&" "&Random_shuoshuo&""
rs.open(sql),conn,1,1
sl=rs.recordcount
do while not rs.eof
s_id=rs("s_id")
s_content=rs("s_content")
Randomize Timer
NumTemp=Int((50*Rnd())+1)

%>

<div class="span2">
<a href="../shuos/?<%=s_id%>.html">
<%if web_simg<>1 then%>
<%if w_images<>"" then%>

<img src="<%=replace(a_images,"..", "")%>" class="thumbnail align-left" alt="<%=RemoveHTML(s_content,50)%>" title="<%=RemoveHTML(s_content,50)%>" />
<%else%>
<img src="../img/ArticleImg/<%=Numtemp%>.jpg" class="thumbnail align-left" alt="<%=RemoveHTML(s_content,50)%>" title="<%=RemoveHTML(s_content,50)%>"/>

<%end if%>
<%end if%>

<%if web_simg=1 then%>
<%if w_images<>"" then%>

<img src="../img.asp?path=<%=replace(a_images,"..", "")%>&Width=400&height=308" class="thumbnail align-left" alt="<%=RemoveHTML(s_content,50)%>" title="<%=RemoveHTML(s_content,50)%>" />
<%else%>
<img src="../img.asp?path=/img/ArticleImg/<%=Numtemp%>.jpg&Width=400&height=308" class="thumbnail align-left" alt="<%=RemoveHTML(s_content,50)%>" title="<%=RemoveHTML(s_content,50)%>" />

<%end if%>
<%end if%>

</a>

<h5><a href="../shuos/?<%=s_id%>.html" title="<%=RemoveHTML(s_content,50)%>..."><%=RemoveHTML(s_content,10)%></a></h5>
</div>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>


</div>

<% 
set rs=server.createobject("adodb.recordset")
sql="select web_ad3 from Web_ad"
rs.open(sql),conn,1,1
web_ad3=rs("web_ad3")
rs.close
set rs=nothing
if web_ad3<>"" then
%>

<section class="post-content">
<div class="post-body about-author center"  style="overflow:hidden">
<%=web_ad3%>
</div>
</section>
<% end if%>
        <!-- Post Comments
        ================================================== --> 
<section class="comments">
 <h4 class="title-bg">
<%if plsl > 100 then %>
<ul class="post-data"><a href="/Comment/??<%=id%>-1.html">浏览所有评论</a></ul>
<% end if%>
<a name="comments" id="Comment"></a> <%=plslxs%>
</h4>	
<ul>

<% 
set rs=server.createobject("adodb.recordset")
sql="select top 5 su_id,su_name,su_content,su_sid,su_url,su_ip,su_time,su_retime,su_recontent,su_touxiang from web_shuoshuo_comment where su_sid="&id&"  and su_view=1 order by su_id desc"
rs.open(sql),conn,1,1
do while not rs.eof
su_id=rs("su_id")
su_name=rs("su_name")
su_content=rs("su_content")
su_sid=rs("su_sid")
su_url=rs("su_url")
su_ip=rs("su_ip")
su_time=rs("su_time")
su_retime=rs("su_retime")
su_recontent=rs("su_recontent")
su_touxiang=rs("su_touxiang")
%>	

<% 
set rs2=server.createobject("adodb.recordset")
query="select country from user_ip where (ip1<=" &su_ip& " and ip2>=" &su_ip&")"
rs2.open query,conn,1,1
If rs2.bof And rs2.eof Then
country="未知位置"
else
country=rs2("country")
end if
rs2.close
set rs2=nothing
%>
<%
TimeDifference = DateDiff("s", su_time, Now)
if datediff("d",su_time,date)=0 then
u_ti="今天"
elseif datediff("d",su_time,date)=1 then
u_ti="昨天"
elseif datediff("d",su_time,date)=2 then
u_ti="前天"
elseif datediff("d",su_time,date)< 8 then
u_ti=datediff("d",su_time,date)&"天前"
else
u_ti=formatdatetime(su_time,2)
end if
%>

<%
TimeDifference = DateDiff("s", su_retime, Now)
if datediff("d",su_retime,date)=0 then
u_ti="今天"
elseif datediff("d",su_retime,date)=1 then
u_ti="昨天"
elseif datediff("d",su_retime,date)=2 then
u_ti="前天"
elseif datediff("d",su_retime,date)< 8 then
u_ti=datediff("d",su_retime,date)&"天前"
else
u_ti=formatdatetime(su_retime,2)
end if
if now()-su_time <1 then
neti="id=""New2"""
else
neti=""
end if
%>
   
                    <li <%=neti%>>
<%if su_url<>"" then %>
<a href="../url/?<%=replace(su_url,"http://", "")%>" id="Comment-<%=su_id%>" target="_blank" rel="nofollow" title="去 <%=su_name%> 的网站看看?">
<%else%>
<a id="Comment-<%=su_id%>" title="<%=su_name%> 没有登记网站?">
<%end if%>
<img src="../img/Portrait/<%=su_touxiang%>.jpg" alt="<%=u_name%>"/>
</a>
<span class="comment-name"><i class="icon-user"></i> <a title="<%=su_name%>"><%=su_name%></a></span>
 
                        <span class="comment-date"><i class="icon-calendar"></i> <%=u_ti%>&nbsp; <%=formatdatetime(su_time,4)%> | <i class="icon-map-marker"></i> <a title="<%=u_name%> 当前位于：<%=country%>"><%=country%></a></span>
                        <div class="comment-content"><%=su_content%></div>
                        <!-- Reply -->
						<%if su_recontent<>"" then%>
                        <ul>
						
                            <li>
                                <img src="../img/admin-avatar.jpg" alt="<%=web_author%>" title="<%=web_author%>"/><img src="../img/ok.png">
                                <span class="comment-name"><span class="comment-name"><i class="icon-user"></i> <a href="<%=web_url%>" target="_blank"><%=web_author%></a></span>
                                <span class="comment-date"><i class="icon-calendar"></i> <%=ru_ti%>&nbsp; <%=formatdatetime(su_retime,4)%> 回复 <a href="#Comment-<%=su_id%>">@<%=su_name%></a> 中说道：</span>
                                <div class="comment-content"><a href="#Comment-<%=su_id%>"><%=su_recontent%></a></div>
                                </li>

                         </ul>
						 <%end if%>
						 
                    </li>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
					
</ul>
<div class="accordion-heading">
<h3>
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#Coon" id="New">
&nbsp;我要评论 / 展开表单
</a>
</h3>
</div>

<div id="Coon" class="accordion-body collapse in">
<form action="../Post/Shuo.asp" id="comment-form"  method="post" />
<div class="alert alert-success">
<% 
set rs=server.createobject("adodb.recordset")
sql="select plsh from Web_Advanced_Settings"
rs.open(sql),conn,1,1
plsh=rs("plsh") '评论审核开关
rs.close
set rs=nothing
%>
<%if plsh<>1 then%>						   
<i class="icon-ban-circle"></i> 评论审核未开启  
<%else%>
<i class="icon-ok-circle"></i> 评论审核已开启  
<%end if%>
<input name="jizhu" type="checkbox" value="1" checked class="comment-fuxuna"/> 记住我的个人信息 
<input name="huifu" type="checkbox" value="1" checked class="comment-fuxuna"/> 回复后邮件通知我   
</div>

                <!-- Comment Form -->
                <div class="comment-form-container">
                    
                        <div class="input-prepend">
                            <span class="add-on"><i class="icon-user"></i></span>
                            <input name="u_name" type="text" class="span4" id="prependedInput" value="<%=Request.Cookies("u_name")%>" size="16" placeholder="您的称呼（必须）" />
							<input name="post_id" type="hidden" id="post_id" value="<%=id%>" />
                        </div>
                        <div class="input-prepend">
                            <span class="add-on"><i class="icon-envelope"></i></span>
                            <input name="u_mail" type="text" class="span4" id="prependedInput" value="<%=Request.Cookies("u_mail")%>" size="16" placeholder="您的邮箱（必须）" />
                        </div>
                        <div class="input-prepend">
                            <span class="add-on"><i class="icon-globe"></i></span>
                            <input name="u_url" type="text" class="span4" id="prependedInput" value="<%=Request.Cookies("u_url")%>" size="16" placeholder="您的网站（选填）" />
                        </div>
                        <textarea name="u_content" class="span6" id="txaArticle" placeholder="评论内容（必须）"></textarea>
                        <div class="input-prepend">
                            <span class="add-on"><i class="icon-question-sign"></i></span>
                            <input name="txt_check" type="text" class="span1" id="prependedInput" size="16" placeholder="验证码" /> <span class="add-on">
                            <img src="../inc/checkcode.asp " title="点击刷新验证码?"  onClick="this.src='../inc/checkcode.asp?t='+(new Date().getTime());" > </span> 
                        </div>
                        <div class="row">
                            <div class="span2">
                      <input type="submit" class="btn btn-inverse" value="提交评论" /> 
                            </div>
                        </div>
                    </form>
                </div>
                </div>
        </section><!-- Close comments section-->
        </div><!--Close container row-->

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