@using GBLab.Common.Expand;
@using System.Text;
@{
    Layout = "~/Views/School_Pre/Shared/_Layout.cshtml";
    var data = ViewData["data"] as GBLab.Entities.T_CmsTeacherPager;
}
@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="teacherlist" class="col-md-8 col-sm-8 col-xs-12">
        <div class="head">学校教师</div>
        <div class="list col-xs-12 col-md-12">
            @{
                StringBuilder sbImgHead = new StringBuilder();
                foreach (var item in data.Data) {
                    if (!string.IsNullOrWhiteSpace(item.F_Logo)) {
                        sbImgHead.AppendFormat(@"
<div class='col-xs-6 col-md-4'>
    <a href='{2}' class='thumbnail'>
        <img src='{0}' alt='{1}' data-bd-imgshare-binded='1'>
    </a>
    <h5>{1}</h5>
</div>"
                            , item.F_Logo.ChangeToImageUrl("")
                            , item.F_Name
                            , Url.Domain_RouteUrl("Site.CmsTeacher.Node.Detail", new { typeId = item.F_TypeId, id = item.F_Id })
                        );
                    }
                }
            }
            @Html.Raw(sbImgHead.ToString())
        </div>
        <div class="list_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.CmsTeacher.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/CmsTeacher/_Part/Top10.cshtml");}
    </div>
</div>