@using GBLab.Common.Expand;
@using System.Text;
@{
    Layout = "~/Views/School_Pre/Shared/_Layout.cshtml";
    var data = ViewData["data"] as GBLab.Entities.T_CmsNewsPager;
    var count = 0;
    StringBuilder sb = new StringBuilder();
}
@section HeadStyle{
}
@{Html.RenderPartial("~/Views/School_Pre/Shared/_Part/_HeaderAd.cshtml");}
@{Html.RenderPartial("~/Views/School_Pre/Views/Module/Common/HeadPath.cshtml");}
<div class="box">
    <div id="newslist" class="col-md-8 col-sm-8 col-xs-12">
        <div class="head bs-info">学校资讯</div>
        @{
            count = 0;
            foreach (var item in data.Data)
            {
                count++;
                string plus = "";
                plus += string.Format(@"<span><a href='{1}' class='colori999'>{0}</a></span>", "点击：" + item.F_ViewNum, "#this");
                plus += string.Format(@"<span><a href='{1}' class='colori999'>{0}</a></span>", item.F_AddDate.DefaultIsNullOrEmpty(DateTime.Now).ToShortDateString(), "#this");
                var url = Url.Domain_RouteUrl("Site.CmsNews.Node.Detail", new { typeId = item.F_TypeId, id = item.F_Id });
                <div>
                    <div>
                        <a href="@(url)" target="_blank" class="thumbnail"><img src="@(item.F_Logo.DefaultIsNullOrEmpty("/Resource/QyyShop/images/zixun.png").ChangeToImageUrl(""))" alt="@item.F_Name" data-bd-imgshare-binded="1"></a><div>
                            <a href="@(url)">@item.F_Name</a><br>
                            <span class="minfo">@(item.F_Info.DefaultIsNullOrEmpty("").RemoveHTML().SubstringEllipsis(100, "..."))</span><div></div>
                            <div>@Html.Raw(plus)</div>
                        </div>
                    </div>
                </div>
            }
        }
        <div class="list_pager list-end-pager">
            <nav aria-label="Page navigation">
                <ul class="pagination">
                    @{
                        if (data.rowCount > 10)
                        {
                            @(Html.GetPagerQyyShop(Html.TranPager(data.currentPage, data.resultPage, data.pageSize, data.rowCount), Url.Domain_RouteUrl("Site.CmsNews.Node.ListPage", new { pageindex = "{page}" })))
                        }
                    }
                </ul>
            </nav>
        </div>
    </div>
    <div class="col-md-4 col-sm-4 col-xs-12">
        @{Html.RenderPartial("~/Views/School_Pre/Views/Module/Common/Menu.cshtml");}
        @{Html.RenderPartial("~/Views/School_Pre/Views/Module/CmsNews/_Part/Top10.cshtml");}
    </div>
</div>