示例#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());
        }
示例#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());
        }
示例#3
0
文件: ManagePage.cs 项目: eyren/OScms
 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();
 }
示例#4
0
文件: ManagePage.cs 项目: eyren/OScms
 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();
 }