private void bindEditInfo(ContentPost post) { set("post.DeleteUrl", to(Delete, post.Id)); set("post.Author", post.Author); set("post.Title", post.Title); set("post.TitleHome", strUtil.EncodeTextarea(post.TitleHome)); set("post.Width", post.Width); set("post.Height", post.Height); editor("Content", post.Content, "250px"); set("post.Created", post.Created); set("post.Hits", post.Hits); set("post.OrderId", post.OrderId); set("post.RedirectUrl", post.RedirectUrl); set("post.MetaKeywords", post.MetaKeywords); set("post.MetaDescription", post.MetaDescription); set("post.Summary", post.Summary); set("post.SourceLink", post.SourceLink); set("post.Style", post.Style); set("post.TagList", post.Tag.TextString); String val = AccessStatusUtil.GetRadioList(post.AccessStatus); set("post.AccessStatus", val); set("post.IsCloseComment", Html.CheckBox("IsCloseComment", lang("closeComment"), "1", cvt.ToBool(post.CommentCondition))); radioList("PickStatus", PickStatus.GetPickStatus(), post.PickStatus.ToString()); }
private void bindEditInfo(long postId, ContentPost post) { set("section.Name", post.SectionName); set("section.Id", post.SectionId); set("post.Author", post.Author); set("post.SourceLink", post.SourceLink); set("post.Style", post.Style); set("post.OrderId", post.OrderId); set("post.Content", post.Content); set("post.Created", post.Created); set("post.Hits", post.Hits); set("post.OrderId", post.OrderId); set("post.RedirectUrl", post.RedirectUrl); set("post.MetaKeywords", post.MetaKeywords); set("post.MetaDescription", post.MetaDescription); set("post.Summary", post.Summary); set("post.SourceLink", post.SourceLink); set("post.Style", post.Style); set("post.TagList", post.Tag.TextString); String val = AccessStatusUtil.GetRadioList(post.AccessStatus); set("post.AccessStatus", val); set("post.IsCloseComment", Html.CheckBox("IsCloseComment", lang("closeComment"), "1", cvt.ToBool(post.CommentCondition))); }
private void bindEdit(BlogPost data, List <BlogCategory> categories) { dropList("CategoryId", categories, "Name=Id", data.Category.Id); set("data.Id", data.Id); set("data.Abstract", data.Abstract); set("data.TagList", data.Tag.TextString); set("data.Title", data.Title); set("Content", data.Content); set("data.AccessStatus", AccessStatusUtil.GetRadioList(data.AccessStatus)); set("data.IsCloseComment", Html.CheckBox("IsCloseComment", lang("closeComment"), "1", cvt.ToBool(data.CommentCondition))); }
private void bindDraftEdit(BlogPost data) { List <BlogCategory> categories = categoryService.GetByApp(ctx.app.Id); dropList("CategoryId", categories, "Name=Id", data.Category.Id); set("data.Id", data.Id); set("data.Abstract", data.Abstract); set("data.TagList", data.Tag.TextString); set("data.Title", data.Title); set("Content", data.Content); set("data.AccessStatus", AccessStatusUtil.GetRadioList(data.AccessStatus)); set("data.IsCloseComment", Html.CheckBox("IsCloseComment", lang("closeComment"), "1", cvt.ToBool(data.CommentCondition))); set("draftActionUrl", to(SaveDraft)); }
public void EditPermission(int id) { Boolean isUserPrivacyClose = Component.IsClose(typeof(UserPrivacy)); if (isUserPrivacyClose) { echo("对不起,本功能已经停用"); return; } //--------------------------------------------------------- target(SavePermission, id); IMemberApp app = userAppService.FindById(id, ctx.owner.Id); AppInstaller info = getAppInfo(app.AppInfoId); bindAppInfo(info); set("app.FriendlyName", app.Name); set("app.AccessStatus", AccessStatusUtil.GetRadioList(app.AccessStatus)); }