<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newsview.aspx.cs" Inherits="jiaowu.app.newsview" %>
<%@ Register src="footer.ascx" tagname="footer" tagprefix="uc1" %>
<%@ Register src="head.ascx" tagname="head" tagprefix="uc2" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>周口新翔驾校-手机版</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico"><meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <link href="static/front/Css/main.css?v=1" rel="stylesheet">
    <link href="static/plugin/mMenu/css/component.css" rel="stylesheet" type="text/css" />
    <script src="static/front/Js/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="static/plugin/mMenu/js/modernizr.custom.js"></script>
    <script type="text/javascript" src="static/plugin/mMenu/js/jquery.dlmenu.js"></script>
       <script type="text/javascript">
           $(function () {
               $('#dl-menu').dlmenu();
           });
    </script>
</head>
<body>
<link href="static/front/Css/moble_style.css" rel="stylesheet">
     <form id="form1" runat="server">
      <uc2:head ID="head1" runat="server" /> 
    <!--新闻-->
<div class="sidebar">
<%
    string title = "";
    string addtime = "";
    string hits = "";
    string content = "";
    if (Request.QueryString["id"] != null)
    {
        string id = Request.QueryString["id"].ToString();
        
        if (id == "" || !strClass.StringHelper.IsInteger(id))
        {
            Response.Redirect("news.aspx");
        }
        SqlHelper.ExecuteSql("update news set hits=hits+1 where id=" + id + "");
        string sql = "select * from news where id=" + id;
        System.Data.DataTable tb = SqlHelper.dataTable(sql);
        if (tb.Rows.Count > 0)
        {
            title = tb.Rows[0]["title"].ToString();
            addtime = strClass.StringHelper.FormatDate(tb.Rows[0]["addtime"].ToString());
            hits = tb.Rows[0]["hits"].ToString();
            content =strClass.StringHelper.DecodeFormHtml(tb.Rows[0]["content"].ToString());
        }
    }
     %>
        <div class="active" id="shownews">
            <h1 class="title"><%=title %><p class="hits"><%=addtime %>&nbsp;&nbsp;点击次数：<%=hits%></p></h1>
            <div class="editor">
            <%=content %>
            <div class="clear"></div>
            </div>
            <div class="met_page">
             
            </div>
        </div>
    <div class="clear"></div>
</div>

<!--底部-->
<!--footer 开始-->
<uc1:footer ID="footer1" runat="server" />
<!--footer end-->
<script type='text/javascript' src='static/h5/js/zepto.js' charset='utf-8'></script>
<script type='text/javascript' src='static/h5/js/config.js' charset='utf-8'></script>
<script type='text/javascript' src='static/h5/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='static/h5/js/sm-extend.min.js' charset='utf-8'></script>
<script type='text/javascript' src='static/h5/js/base.js' charset='utf-8'></script>
</form>
</body>
</html>

