using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using Basic; using System.Collections; /// /// 网站配置 /// namespace Basic.BLL { public class news_class { /// /// 获取父级列表 /// /// /// public static Hashtable GetParentList(int _classid) { Hashtable htList = new Hashtable(); int _parentId = _classid; int i = 0; while (_parentId > 0) { Basic.DAL.news_class dalp = new Basic.DAL.news_class(); Basic.Model.news_class modelparent = dalp.GetModel(_parentId); i++; htList.Add("title"+i, modelparent.title); htList.Add("url"+i, modelparent.url); if (modelparent != null) { _parentId = modelparent.parent_id; } } return htList; } } }