<%@ Page Title="" Language="C#" MasterPageFile="~/Master/NewsMaster.master" CodeBehind="Default.aspx.cs" Inherits="WAP2P.Web.PC.News.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="m-crumbs mb10 ">
        <ul class="g-left">
            <li><a href="/"><i class="iconfont">&#xe630;</i> 首页</a> &nbsp;>&nbsp;</li>
            <li><a href="/News/?id=<% =category.Id %>"><% =category.Name %></a> </li>
            <% =article == null ? string.Empty : "<li>&nbsp;>&nbsp;文章内容</li>" %>
        </ul>
        <ruson:Space runat="server" ID="articleMenuSpace" Visible="false">
            <div class="crumbs-btn g-right ">
                <% = pre != null ? string.Format("<a href=\"?aid={0}\"><i class=\"iconfont\">&#xe60a;</i> 上一篇</a>", pre.Id) : "" %>
                <a href="?id=<% =article.CategoryId %>">返回列表</a>
                <% = next != null ? string.Format("<a href=\"?aid={0}\">下一篇 <i class=\"iconfont\">&#xe608;</i></a>", next.Id) : "" %>
            </div>
        </ruson:Space>
    </div>
    <div class="m-globalbox pb10 m-news">
        <h2><span <% = article == null ? "class=\"fcblue-2 m-bdborder\"" : string.Empty%>><% =article == null ? category.Name : article.Title %></span></h2>
        <ruson:Space runat="server" ID="articleSpace" Visible="true">
            <% = article == null ? string.Empty : string.Format ("<div class=\"news-info\">作者：{0} 创建时间：{1} 点击数：{2}</div>",article.Author,article.CreateAt.ToDateTimeString(),article.Hits) %>
            <% = article == null ? string.Empty : string.IsNullOrEmpty(article.Description) ? "" :string.Format ("<div class=\"news-description\"><span class=\"fs16 g-fbold\">内容摘要：</span>{0}</div>",article.Description) %>
            <% = article == null ? string.Format ("<div class=\"mt15 ml20 mr20 js-newDetail\">{0}</div>",category.Detail) :string.Format ("<div class=\"ml20 mr20 js-newDetail\">{0}</div>",article.Detail) %>
        </ruson:Space>
        <ruson:Space runat="server" ID="listSpace" Visible="true">
            <ul class="news-list mt10 mr20">
                <ruson:Repater runat="server" ID="rptList" ItemType="WAP2P.Article.Article">
                    <ItemTemplate>
                        <li class="pl20"><a href="<%# string.Format("?aid={0}", Item.Id) %>"><span class="g-right fs12 fcblueAsh-3">[<%# Item.CreateAt.ToDateString() %>]</span><i class="iconfont fs20 mr10">&#xe62d;</i><%# Item.Title %></a></li>
                    </ItemTemplate>
                    <EmptyTemplate>
                        <li class="pl20">暂无数据。</li>
                    </EmptyTemplate>
                </ruson:Repater>
            </ul>
            <div class="ui-pages g-fright">
                <ruson:Pager runat="server" ID="pages" CssClass="pages" ShowPageSizeSelect="false" />
            </div>
        </ruson:Space>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script>
        $.get(utils.urlParam(location.href, 'action', 'count'));
        $('.js-newDetail').imageWidthReset();
    </script>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="list" runat="server"></asp:Content>
