private void BindTree() { this.dropParentID.Items.Clear(); this.dropParentID.Items.Add(new ListItem(Site.All, "")); DataSet treeList = new ContentClass().GetTreeList(""); if (!DataSetTools.DataSetIsNull(treeList)) { DataTable dt = treeList.Tables[0]; if (!DataTableTools.DataTableIsNull(dt)) { foreach (DataRow row in dt.Select("ParentID= " + 0)) { string str = row["ClassID"].ToString(); string text = row["ClassName"].ToString(); row["ParentID"].ToString(); text = "╋" + text; this.dropParentID.Items.Add(new ListItem(text, str)); int parentid = int.Parse(str); string blank = "├"; this.BindNode(parentid, dt, blank); } } } this.dropParentID.DataBind(); }
public ActionResult List(int? cid, int? page) { Maticsoft.BLL.CMS.Content content = new Maticsoft.BLL.CMS.Content(); ((dynamic) base.ViewBag).Domain = this.WebSiteSet.BaseHost; ((dynamic) base.ViewBag).WebName = this.WebSiteSet.WebName; Maticsoft.BLL.CMS.ContentClass class2 = new Maticsoft.BLL.CMS.ContentClass(); if (cid.HasValue) { Maticsoft.Model.CMS.ContentClass modelByCache = class2.GetModelByCache(cid.Value); if (modelByCache != null) { ((dynamic) base.ViewBag).Title = Globals.HtmlDecode(modelByCache.ClassName); ((dynamic) base.ViewBag).Keywords = Globals.HtmlDecode(modelByCache.Keywords); ((dynamic) base.ViewBag).Description = Globals.HtmlDecode(modelByCache.Description); if (this.WebSiteSet != null) { dynamic viewBag = base.ViewBag; string str3 = "-" + Globals.HtmlDecode(this.WebSiteSet.WebName); if (<List>o__SiteContainer0.<>p__Site6 == null) {
public static string GetCMSUrl(int NewId, string pageName = "CMS", ApplicationKeyType applicationType = 4) { Maticsoft.BLL.CMS.Content content = new Maticsoft.BLL.CMS.Content(); Maticsoft.Model.CMS.Content modelByCache = content.GetModelByCache(NewId); Maticsoft.BLL.CMS.ContentClass class2 = new Maticsoft.BLL.CMS.ContentClass(); if (modelByCache != null) { string str = content.GetContentUrl(modelByCache) + ".html"; string valueByCache = ConfigSystem.GetValueByCache("ArticleStaticRoot"); valueByCache = (valueByCache.LastIndexOf("/") > -1) ? valueByCache : (valueByCache + "/"); return (valueByCache + class2.GetClassUrl(modelByCache.ClassID) + "/" + str).Replace("--", "-").ToLower(); } return ""; }
public ActionResult Column() { int classID = Globals.SafeInt(ConfigSystem.GetValueByCache("SNSHelpCenter"), 1); Maticsoft.Model.CMS.ContentClass modelByCache = new Maticsoft.BLL.CMS.ContentClass().GetModelByCache(classID); return base.View(modelByCache); }