//------------------------------------------------------------------------------- public void AddCategory() { target(SaveCategory); bind("c", new ForumBoard()); set("ViewId", BoardViewStatus.GetDropList("ViewId", 0)); }
private void bindBoard(ForumBoard board) { set("Name", board.Name); set("Description", board.Description); String logo; if (strUtil.HasText(board.Logo)) { logo = sys.Path.GetPhotoOriginal(board.Logo); logo = "<span id=\"logoContainer\"><img src=\"" + logo + "\"/> " + "<img src=\"" + sys.Path.Img + "delete.gif\" title=\"" + lang("delete") + "\" id=\"deleteLogo\" class=\"right20\" data-action=\"" + to(DeleteLogo, board.Id) + "\"/></span>"; } else { logo = strUtil.Join(sys.Path.Skin, "apps/forum/normal.gif"); logo = "<img src=\"" + logo + "\"/>"; } set("boardLogo", logo); set("chkIsCategory", Html.CheckBox("IsCategory", alang("noPost"), "1", (board.IsCategory == 1))); editor("Notice", board.Notice, "200px"); set("CategoryDropDown", getTree().DropList("ParentId", board.ParentId, board.Id, lang("rootNode"))); set("ViewId", BoardViewStatus.GetDropList("ViewId", board.ViewId)); }
//------------------------------------------------------------------------------ private void bindAddSubBoard(int boardId, ForumBoard board) { set("lblForumAction", alang("addSubBoard")); set("Name", ctx.Post("Name")); set("Description", ctx.Post("Description")); editor("Notice", ctx.Post("Notice"), "200px"); set("boardLogo", string.Empty); set("CategoryDropDown", Html.InputHidden("ParentId", boardId.ToString()) + board.Name); set("ViewId", BoardViewStatus.GetDropList("ViewId", 0)); set("chkIsCategory", Html.CheckBox("IsCategory", alang("noPost"), "1", false)); }