<!--#Include File="conn.asp"-->
<!--#Include File="function.asp"-->
<!doctype html>
<html>
<head>
<%
action=trim(request("action"))
if action="comment" then 
if newscomm_onoff="是"  then 
 Call WuWeiShop_News_Comment
 else
 if session("username")="" then
  Call JsFile() 
  WuWeiShop_Layer_LongTips "请登陆后再评论","2","2","login.asp"
 else
 Call WuWeiShop_News_Comment
 end if :  Response.end 
 End if : Response.end 
 end if  
WuWeiShop_Rs Rs:Rs.open "select * from e_contect where c_id="&request("id"),conn,1,1
if rs.eof or bof then : Call Jsfile():WuWeiShop_Layer_LongTips "对不起没有此新闻!","2","1","1" :response.end:end if 
if not rs("dess")="" then  dess=rs("dess"):if not rs("keys")="" then  keys=rs("keys")
c_title=rs("c_title"):WuWeiShop_Close  Rs
%>
<meta charset="gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><%=c_title%>-<%=siteright%></title>
<meta name="Keywords" content="<%=keys%>" />
<meta name="Description" content="<%=dess%>" />
<link rel="shortcut icon" href="favicon.ico"/>
<link  href="css/top.css" rel="stylesheet" type="text/css" />
<link  href="css/news.css" rel="stylesheet" type="text/css" />
<link  href="css/bottom.css" rel="stylesheet" type="text/css" />
<script src="jquery.min.js"></script> 
<script src="layer.js"></script>
</head>
<body>
<%
id=trim(request("id"))
WuWeiShop_Rs Rs:Rs.open "select *  from e_contect where c_id="&id ,conn,1,1
conn.execute("update e_contect set c_count=c_count+1 where c_id="&id)
If rs.eof then
response.write "无此新闻"
response.end 
end if 
c_id=rs("c_id"):c_title=rs("c_title"):c_contect=rs("c_contect"):c_addtime=rs("c_addtime"):c_count=rs("c_count")
WuWeiShop_close Rs
%>
<!--#Include  file="top.asp"-->
<div class="banner">
<% WuWeiShop_Rs Rs :rs.open "select * from ad",conn,1,1%>
	<img src="<%=rs("news_Pic")%>"><%WuWeiShop_close Rs%>
</div>
<div class="main">
<div class="crumbs">
            <a  href="#">首页</a> &nbsp;&gt;&nbsp;
            <span class="crumbs-level" id="crumbsLevel"><a href="newslist.asp" >新闻资讯</a>&nbsp;&gt;&nbsp;<%=c_title%></span>
</div>
<div class="content">
	<div class="art">
    	<h1 class="title"><%=c_title%></h1>
        <div class="byline">
                    <span class="datetime"><%=c_addtime%></span><span>&nbsp;&nbsp;|&nbsp;&nbsp;</span><span class="views">浏览量：<%=c_count%></span>
        </div>
        <div class="neirong">
        	<%=c_contect%>
        </div>
        <div class="page">
        	<p>上一篇：<%News_Prev(id)%></p>
            <p>下一篇：<%News_Next(id)%></a></p>
        </div>
        <div class="comment">
        	<form method="post" name="Form2" action="?action=comment" onSubmit="return WuWeiShop_news_comment()">
            	<img src="images/avatar.jpg">
				<input type="hidden" name="c_id" value="<%=id%>">
                <textarea  placeholder="写点内容吧..." name="news_comment" rows="6" id="news_memo"></textarea>
                <input type="submit" value="发布">
            </form>
            <div class="comment_total">
			<% WuWeiShop_Rs Rs:Rs.open "select  *  from WuWeiShop_News_Comment where news_id="&id&" and check=true  order by news_id desc" ,conn,1,1%>
            	<h3>最新评论</h3>
                <p><%=rs.recordcount%>条评论</p>
            </div>
			
			<%if rs.eof then %>
            <ul>
			暂无评论，欢迎您评论。
			<%else%><ul>
			<%do while not rs.eof %>
        	<li><%User_Photo(rs("news_user"))%>	
                <div>
                <p class="comment_title"><%=rs("news_user")%>于<%=rs("news_time")%>·来自<%=rs("news_ip")%></p>
                <p class="comment_content"><%=rs("news_memo")%></p>
                </div>
            </li>
           
           <%rs.movenext:loop 
		   end if %>
        </ul>
        </div>
    </div>
    <div class="list">
    	<h2 class="title">热门阅读</h2>
		<% WuWeiShop_Rs Rs:Rs.open "select top 8 *  from e_contect where c_parent2=30 order by c_count desc" ,conn,1,1 
		c_id=rs("c_id"):c_title=rs("c_title"):c_contect=rs("c_contect"):c_addtime=rs("c_addtime"):c_count=rs("c_count")
		%>
        <ul><% do while not rs.eof%>
        	<li>
            	<a href="news.asp?id=<%=rs("c_id")%>"><img src="<%=rs("c_pic")%>"></a>
                <div>
                <h4><a href="news.asp?id=<%=rs("c_id")%>"><%=WuWeiShop_Str_Cut(rs("c_title"),24)%></a></h4>
                <p><%=left(RemoveHTMLTag(rs("c_contect")),50)%></p>
                </div>
            </li>
           <%rs.movenext:loop%>
        </ul>
    </div>
</div>
</div>&nbsp;
<script language="JavaScript">
	function WuWeiShop_news_comment()
	{
	if (Form2.news_comment.value == "")
	{
	 <%=WuWeiShop_Layer_script ("请填写评论内容","2")%>
	document.Form2.news_comment.focus();
	return false;
	}
	}
	</script>
<!--#Include  file="bottom.asp"-->
</body>
</html>
