Esempio n. 1
0
 protected string get_category_title(int category_id, string default_value)
 {
     Rain.BLL.article_category articleCategory = new Rain.BLL.article_category();
     if (articleCategory.Exists(category_id))
     {
         return(articleCategory.GetTitle(category_id));
     }
     return(default_value);
 }
Esempio n. 2
0
        private void LoopChannelMenu(StringBuilder strTxt, string urlKey, int category_id)
        {
            Rain.BLL.article_category articleCategory = new Rain.BLL.article_category();
            int parentId = articleCategory.GetParentId(category_id);

            if (parentId > 0)
            {
                this.LoopChannelMenu(strTxt, urlKey, parentId);
            }
            strTxt.Append("&nbsp;&gt;&nbsp;<a href=\"" + this.linkurl(urlKey, (object)category_id, (object)1) + "\">" + articleCategory.GetTitle(category_id) + "</a>");
        }