@using System.Data @using ZoomLa.BLL @using ZoomLa.Model @using ZoomLa.BLL.Content @using ZoomLa.Model.Content @using ZoomLa.SQLDAL @using Newtonsoft.Json @{ string nodeDir = CustomerPageAction.customPath2+"Content/Node/"; B_Spec specBll = new B_Spec(); DataTable dt = specBll.SelForShowAll(0); DataRow dr = dt.NewRow();//根节点 dr["NodeID"] = 0; dr["NodeType"] = (int)NodeEnum.Root; dr["NodeName"] = Call.SiteName; dr["NodeDir"] = "root"; dr["Depth"] = 0; dr["ItemCount"] = dt.Compute("SUM(ItemCount)", "ParentID=0"); dr["ChildCount"] = dt.Rows.Count; dr["isShow"] = 1; dr["isOpen"] = 1; dt.Rows.InsertAt(dr, 0); string skey = Context.Request.GetParam("skey"); if (!string.IsNullOrEmpty(skey)) { if (DataConvert.CLng(skey) > 0) { dt.DefaultView.RowFilter = "NodeID='"+skey+"'"; } else { dt.DefaultView.RowFilter = "NodeName LIKE '%"+skey+"%'"; } dt = dt.DefaultView.ToTable(); } int showFlag = ZoomLa.Common.DataConverter.CStr(Context.Request.GetParam("action")).Equals("showall") ? 1 : 0; for (int i = 1; i < dt.Rows.Count; i++) { dt.Rows[i]["isShow"] = showFlag; dt.Rows[i]["isOpen"] = showFlag; } } @section head{@L.专题管理} @section content{ @(Call.SetBread(new Bread[] { new Bread("/{manage}/Main",L.工作台), new Bread(){url="Special",text=L.专题管理,addon="" } }))
ID @L.专题名称 @L.节点类型 @L.创建时间 @L.操作
} @section script{ }