@using GBLab.Common.Expand;
@{
    Layout = "~/Views/Shared/_Layout_Shop.cshtml";
    var config = ViewData["SystemConfig"] as GBLab.Entities.Config.SystemConfig;
    var data = ViewData["pager"] as GBLab.Entities.T_DormitoryBuildPager;
}

@*头部查询*@
@{Html.RenderPartial("~/Views/Shared/Shop/_Header_Search.cshtml");}

<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">
                    <div class="text-center">
                        @{
                            if (data.rowCount > 10) {
                                <ul class="listpager">
                                    @(Html.GetPagerQyyShop(Html.TranPager(data.currentPage, data.resultPage, data.pageSize, data.rowCount), Url.Domain_RouteUrl("Site.ZYInfo.List", new {
                                        typename = "all",
                                        typedevname="all",
                                        resourcetype = "all",
                                        keword = "all",
                                        pageindex = "{page}"
                                    })))
                                </ul>
                            }
                        }
                    </div>

                    @foreach (var item in data.Data) {
                        <div class="feed-element">
                            <div>
                                <small class="pull-right text-navy">@("积分：" + item.F_Money.ToString())</small>
                                <strong><a target="_blank" title="@(item.T_Type.F_Name)" href="/@(item.T_Type.F_EnName)/all/all/all/1.html">@(item.T_Type.F_Name)</a></strong>
                                <div><a target="_blank" title="@(item.F_Name)" href="/detail/@(item.F_Id.ToString()).html">@(item.F_Name)</a></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.ZYInfo.List", new {
                                        typename = "all",
                                        typedevname="all",
                                        resourcetype = "all",
                                        keword = "all",
                                        pageindex = "{page}"
                                    })))
                                </ul>
                            }
                        }
                    </div>

                </div>
            </div>
        </div>
    </div>

    @{Html.RenderPartial("~/Views/Shop/Block/_Left_Buy.cshtml");}

    @{Html.RenderPartial("~/Views/Shop/Block/_Left_Download.cshtml");}

    @{Html.RenderPartial("~/Views/Shop/Block/_Left_New.cshtml");}

    @{Html.RenderPartial("~/Views/Shop/Block/_Left_TagsList.cshtml");}

</div>