public void GetParentChannel(string channelid) { ShowShop.BLL.SystemInfo.ArticleChannel bll = new ShowShop.BLL.SystemInfo.ArticleChannel(); StringBuilder text = new StringBuilder(); SortedList hashtable = bll.GetChannel(channelid); foreach (DictionaryEntry de in hashtable) { text.Append(" → <a href='?q_chanelid="+de.Key.ToString()+"'>" + de.Value.ToString()+"</a>"); } hashtable.Clear(); hashtable = null; this.link.Text = text.ToString().Substring(2); bll = null; }
public void GetParentChannel(string channelid) { ShowShop.BLL.SystemInfo.ArticleChannel bll = new ShowShop.BLL.SystemInfo.ArticleChannel(); StringBuilder text = new StringBuilder(); SortedList hashtable = bll.GetChannel(channelid); text.AppendLine("<a href='article_edit.aspx?channelid=" + channelid + "'><font color='Blue'>添加资讯</font></a>"); int index = 0; //获取父路径 foreach (DictionaryEntry de in hashtable) { if (index == 0) { text.AppendLine(" ◎ "); } else { text.AppendLine(" → "); } text.AppendLine("<a href='?w_z_channel=" + de.Key.ToString() + "'>" + de.Value.ToString() + "</a>"); index++; } hashtable.Clear(); hashtable = null; //获取子路径 hashtable = bll.GetChildChannel(channelid); index = 0; foreach (DictionaryEntry de in hashtable) { if (index == 0) { text.AppendLine(" ◎ "); } else { text.AppendLine(" "); } text.Append("<a href='?w_z_channel=" + de.Key.ToString() + "'><font color='#FF9900'>" + de.Value.ToString() + "</font></a>"); index++; } hashtable.Clear(); hashtable = null; this.ltlLink.Text += text.ToString(); bll = null; }
//private void GetFileList() //{ // ShowShop.Common.SysParameter sp = new ShowShop.Common.SysParameter(); // ChangeHope.Common.FileHelper file = new ChangeHope.Common.FileHelper(); // StringBuilder filelist = new StringBuilder(); // file.rootUrl = Server.MapPath("~/" + sp.DummyPaht + sp.WebSiteTemplatePath + "/banner"); // file.listFileName(file.rootUrl, 0); // filelist.AppendLine("<script type=\"text/javascript\">"); // filelist.AppendLine("d = new dTree('d');"); // filelist.AppendLine("d.add(0,-1,'请选择栏目模版文件夹');"); // filelist.AppendLine(file.fileTree.ToString()); // filelist.AppendLine("document.write(d);"); // filelist.AppendLine("$(\"fileLists\").style.visibility=\"hidden\";"); // filelist.AppendLine("</script>"); // this.ltlFileList.Text = filelist.ToString(); // file = null; //} private void GetParentChannel(string channelid) { ShowShop.BLL.SystemInfo.ArticleChannel bll = new ShowShop.BLL.SystemInfo.ArticleChannel(); StringBuilder text = new StringBuilder(); SortedList hashtable = bll.GetChannel(channelid); foreach (DictionaryEntry de in hashtable) { text.Append("→"+de.Value.ToString()); } hashtable.Clear(); hashtable = null; this.Label1.Text = text.ToString().Substring(1); bll = null; }