<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newsview.aspx.cs" Inherits="xxpeixun.app.newsview" %>

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>新闻详情——<%=xxsoft_check.check.getseting("systitle") %></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="../weui/css/weui.css"/>
    <link rel="stylesheet" href="../weui/css/weuix.css"/>

    <script src="../weui/js/zepto.min.js"></script>
    <script>
        /*$(function () {
            $(".weui-c-like .icon").click(function () {
                if ($(this).hasClass('on')) {
                    $(this).removeClass('on')
                } else {
                    $(this).addClass('on')
                }
            })

        });*/
    </script>

</head>

<body ontouchstart>
<%if (Request.QueryString["id"] == null)
  {
      Response.Redirect("news.aspx");
  }
    string id = Request.QueryString["id"].ToString();
    System.Data.DataTable tb = SqlHelper.dataTable("select * from vnews where id="+id+"");  
 %>
<div class="weui-header bg-blue"> 
  <div class="weui-header-left"> <a class="icon icon-109 f-white" href="javascript:history.go(-1);">返回</a>  </div>
   <h1 class="weui-header-title">新闻详情</h1>
    <div class="weui-header-right"><a class="icon icon-112 f-white" href="exit.aspx"></a></div> 
    </div>
<div class="weui-content">
    <div class="weui-c-inner">
 <div class="weui-c-content">
      <h2 class="weui-c-title"><%=tb.Rows[0]["title"] %></h2>
     <div class="weui-c-meta">
         <span class="weui-c-nickname"><a href="javascript:;"><%=tb.Rows[0]["userxm"] %></a></span>
         <em class="weui-c-nickname"><%=tb.Rows[0]["addtime"] %></em>
     </div>
     <div class="weui-c-article">
      <%=strClass.StringHelper.DecodeFormHtml(tb.Rows[0]["content"].ToString()) %>
     </div>
 </div>
  <div class="weui-c-tools">
      <div class="weui-c-readnum">阅读<span id="readnum"><%=tb.Rows[0]["hits"] %>+</span></div>
      
  </div>
    </div>

</div>

</body>
</html>