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) ? "" : " > "; menu += new BLL.contents.article_category().GetTitle(Convert.ToInt32(arr[i])) + style; } } return(menu.ToString()); }
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()); }
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(); }
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) ? "" : " > "; menu += new BLL.contents.article_category().GetTitle(Convert.ToInt32(arr[i])) + style; } } return menu.ToString(); }