@using GBLab.Common.Expand;
@{
    Layout = "~/Views/School_Dormitory/Shared/_Layout_Dormitory.cshtml";
    var config = ViewData["DormitoryConfig"] as GBLab.Entities.Config.DormitoryConfig;
    var data = ViewData["data"] as GBLab.Entities.T_DormitoryNewsPager;
}

<div class="row container" style="margin: auto;">
    <div class="col-sm-9">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>公告列表</h5>
            </div>
            <div class="ibox-content">
                <div class="feed-activity-list">
                    @if (data.Data.Count == 0)
                    {
                        <div class="noinfo">
                            未找到资源，请在头部重新输入搜索词搜索试试。
                        </div>
                    }
                    else
                    {
                        <div class="text-center pagenum">
                            @{
                                if (data.rowCount > 10)
                                {
                                    <ul class="listpager">
                                        @(Html.GetPagerQyyShop(Html.TranPager(data.currentPage, data.resultPage, data.pageSize, data.rowCount), Url.Domain_RouteUrl("Site.Dormitory.News.ListPage", new
                                            {
                                            pageindex = "{page}"
                                        })))
                                    </ul>
                                }
                            }
                        </div>

                        foreach (var item in data.Data)
                        {
                            <div class="feed-element">
                                <div>
                                    <small class="pull-right text-navy">@("发布人：" + item.T_AddUser.F_Name.ToString())</small>
                                    <strong><a target="_blank" title="@(item.F_Name)" href="@(Url.Domain_RouteUrl("Site.Dormitory.News.Detail", new { id=item.F_Id}))">@(item.F_Name)</a></strong>
                                    <div class="listdata">@(item.T_Type.F_Name)</div>
                                    <small class="text-muted">@(item.F_AddDate.ToString("yyyy-MM-dd"))</small>
                                </div>
                            </div>
                        }

                        <div class="text-center mtop20">
                            @{
                                if (data.rowCount > 10)
                                {
                                    <ul class="listpager">
                                        @(Html.GetPagerQyyShop(Html.TranPager(data.currentPage, data.resultPage, data.pageSize, data.rowCount), Url.Domain_RouteUrl("Site.Dormitory.News.ListPage", new
                                            {
                                            pageindex = "{page}"
                                        })))
                                    </ul>
                                }
                            }
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>

    <div class="col-sm-3">
        @{Html.RenderPartial("~/Views/School_Dormitory/Views/Block/_Left_New.cshtml");}

        @{Html.RenderPartial("~/Views/School_Dormitory/Views/Block/_Left_Imgs.cshtml");}

    </div>
</div>
