Example #1
0
        protected static string column_menu(int category_id)
        {
            string menu       = "";
            string class_list = new BLL.contents.article_category().GetModel(category_id).class_list.Trim(',');

            string[] arr = class_list.Split(',');
            if (arr.Length > 0)
            {
                for (int i = 0; i < arr.Length; i++)
                {
                    string style = arr.Length == (i + 1) ? "" : "  &gt;  ";
                    menu += new BLL.contents.article_category().GetTitle(Convert.ToInt32(arr[i])) + style;
                }
            }
            return(menu.ToString());
        }
Example #2
0
        protected static string page_menu(int category_id)
        {
            string menu       = "";
            string class_list = new BLL.contents.article_category().GetModel(category_id).class_list.Trim(',');

            string[] arr  = class_list.Split(',');
            int      loop = 0;

            if (arr.Length > 0)
            {
                foreach (string i in arr)
                {
                    loop++;
                    string style = loop == arr.Length ? "" : " <i class=\"arrow\"></i> ";
                    menu += new BLL.contents.article_category().GetTitle(Convert.ToInt32(i)) + style;
                }
            }
            return(menu.ToString());
        }
Example #3
0
 protected static string page_menu(int category_id)
 {
     string menu = "";
     string class_list = new BLL.contents.article_category().GetModel(category_id).class_list.Trim(',');
     string[] arr = class_list.Split(',');
     int loop = 0;
     if (arr.Length > 0) {
         foreach (string i in arr) {
             loop++;
             string style = loop == arr.Length ? "" : " <i class=\"arrow\"></i> ";
             menu += new BLL.contents.article_category().GetTitle(Convert.ToInt32(i)) + style;
         }
     }
     return menu.ToString();
 }
Example #4
0
 protected static string column_menu(int category_id)
 {
     string menu = "";
     string class_list = new BLL.contents.article_category().GetModel(category_id).class_list.Trim(',');
     string[] arr = class_list.Split(',');
     if (arr.Length > 0) {
         for (int i = 0; i < arr.Length; i++) {
             string style = arr.Length == (i + 1) ? "" : "  &gt;  ";
             menu += new BLL.contents.article_category().GetTitle(Convert.ToInt32(arr[i])) + style;
         }
     }
     return menu.ToString();
 }