@using FHT.Core.UI.ViewModels @using FHT.Core.UI.InputModels.Search @using FHT.Core.UI.ViewModels.TopicPost @using FHT.Utilities @using FHT.Core.CommonTypes @using MvcPaging @using FHT @model SearchTopicPostInputModel @{ ViewBag.Title = "帖子信息审核"; Layout = "~/Views/Shared/_Layout.cshtml"; var topicPosts = (FHT.DDD.QueryResult)ViewBag.TopicPosts; } @section styles{ @Styles.Render("~/Content/layer") @Styles.Render("~/Content/select2") }
@using (Html.BeginForm("AuditTopicPostManage", "Audit", FormMethod.Get, new {role = "form" })) {
@Html.RequiredLabelFor(m => m.TopicPostId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.TopicPostId, new { @class = "form-control"})
@Html.RequiredLabelFor(m => m.UserId, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.UserId, new { @class = "form-autocomplate", data_autocomplate_url="/User/SearchUsers"})
@Html.RequiredLabelFor(m => m.Q, new{@class="pull-left fht-control-label"})
@Html.TextBoxFor(m => m.Q, new { @class = "form-control"})
}
@if (topicPosts.Data.Any()) { foreach (var topicPost in topicPosts.Data) { } } else { }
编号 标题 所属用户 发布时间 状态 操作
@topicPost.TopicPostId @topicPost.Title @topicPost.UserName @topicPost.Lastmodified.ToShortDateString() @topicPost.AuditStatus.GetEnumDescription() @if (topicPost.IsDeleted) { @:/ } else { @Html.ActionLink("编辑", "Form", new { topicPostId = topicPost.TopicPostId }, new { target = "_blank" }) }
暂无数据
@if ((topicPosts.TotalCount - 1) / Model.Limit > 0) { @Html.Pager(Model.Limit, Model.CurrPage, (int)topicPosts.TotalCount).Options(opt => { opt.Action("Index") .PageRouteValueKey("CurrPage") .AddRouteValue("Q", Model.Q) .AddRouteValue("UserId", Model.UserId) .AddRouteValue("TopicPostId", Model.TopicPostId) .SetNextPageText(">") .DisplayTemplate("BootstrapPagination") .SetPreviousPageText("<"); }) }
@section scripts { @Scripts.Render("~/bundles/layer") }