public string Fields_GET() { string form = EntityForm.Build <ExtendFieldDto>(new ExtendFieldDto()); ViewData["form"] = form; return(base.RequireTemplate(ResourceMap.GetPageContent(ManagementPage.Site_Extend_List))); }
public void Fields_GET() { string form = EntityForm.Build <ExtendFieldDto>(new ExtendFieldDto(), false, "btn"); base.RenderTemplate(ResourceMap.GetPageContent(ManagementPage.Site_Extend_List), new { form = form }); }
public void RelatedLink_GET() { string form = EntityForm.Build <LinkDto>(new LinkDto(), false, "btn"); base.RenderTemplate(ResourceMap.GetPageContent(ManagementPage.Link_RelatedLink), new { form = form }); }
/// <summary> /// 更新用户 /// </summary> public void UpdateUser_GET() { Cms.Context.Items["ajax"] = "1"; model.User usr = CmsLogic.User.GetUser(base.Request["username"]); usr.Password = "******"; string html = EntityForm.Build <model.User>(usr, true, "保存"); base.RenderTemplate(ResourceMap.GetPageContent(ManagementPage.User_Edit), new { entity = html, groups = Helper.GetUserGroupOptions(usr.GroupID) }); }
public void Edit_GET() { int siteID = int.Parse(base.Request["siteId"] ?? "1"); SiteDto site = SiteCacheManager.GetSite(siteID); string html = EntityForm.Build <SiteDto>(site, true, "提交"); base.RenderTemplate(ResourceMap.GetPageContent(ManagementPage.Site_Edit), new { form = html, tpls = Helper.GetTemplateOptions(site.Tpl) }); }
public void Edit_GET() { int siteId = int.Parse(base.Request["site_id"] ?? "1"); SiteDto site = SiteCacheManager.GetSite(siteId); string html = EntityForm.Build <SiteDto>(site); base.RenderTemplate(ResourceMap.GetPageContent(ManagementPage.Site_Edit), new { form = html, post_url = "?module=site&action=edit", tpls = Helper.GetTemplateOptions(site.Tpl) }); }
/// <summary> /// 创建会员 /// </summary> public void CreateUser_GET() { Cms.Context.Items["ajax"] = "1"; string html = EntityForm.Build <model.User>(new model.User { Available = true }, true, "添加用户"); base.RenderTemplate(ResourceMap.GetPageContent(ManagementPage.User_Edit), new { entity = html, sites = Helper.GetSiteOptions(-1), groups = Helper.GetUserGroupOptions(-1) }); }
public void Edit() { var siteId = int.Parse(Request.Query("site_id").ToString() ?? "1"); var site = SiteCacheManager.GetSite(siteId); var html = EntityForm.Build <SiteDto>(site); RenderTemplate(ResourceMap.GetPageContent(ManagementPage.Site_Edit), new { form = html, post_url = "?module=site&action=edit", tpls = Helper.GetTemplateOptions(site.Tpl) }); }
public void Create_GET() { var site = new SiteDto(); var sites = SiteCacheManager.GetAllSites(); if (sites.Count > 0) { site.SiteId = sites[sites.Count - 1].SiteId + 1; //site.Name = "未命名站点"+site.SiteId.ToString(); } string html = EntityForm.Build <SiteDto>(site, true, "创建"); base.RenderTemplate(ResourceMap.GetPageContent(ManagementPage.Site_Edit), new { form = html, tpls = Helper.GetTemplateOptions("") }); }
public void Create() { var site = new SiteDto(); var sites = SiteCacheManager.GetAllSites(); if (sites.Count > 0) { site.SiteId = sites[sites.Count - 1].SiteId + 1; } //site.Name = "未命名站点"+site.SiteId.ToString(); var html = EntityForm.Build <SiteDto>(site); RenderTemplate(ResourceMap.GetPageContent(ManagementPage.Site_Edit), new { form = html, post_url = "?module=site&action=create", tpls = Helper.GetTemplateOptions("") }); }