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

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

<div class="row container" style="margin: auto;">
    <div class="col-sm-12">
        <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.ZYInfo.MyFav", new { pageindex = "{page}" })))
                                    </ul>
                                }
                            }
                        </div>

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