/// <summary> /// Lấy danh sách các nhóm /// </summary> /// <returns></returns> private string GetGroups(string position) { string s = ""; string fields = "", condition = "", orderby = ""; condition = DataExtension.AndConditon( GroupsTSql.GetByParams(position), GroupsTSql.GetByEnable("1"), GroupsTSql.GetByApp(appGroup), GroupsTSql.GetByLang(lang) ); fields = DataExtension.GetListColumns( GroupsColumns.IgidColumn, GroupsColumns.VgnameColumn, GroupsColumns.VgimageColumn, GroupsColumns.VGSEOLINKSEARCHColumn, GroupsColumns.IgtotalitemsColumn ); orderby = GroupsColumns.IgorderColumn; DataTable dt = Groups.GetGroups("", fields, condition, orderby); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { string list = ""; string cateName = ""; list = GetList(dt.Rows[i][GroupsColumns.IgidColumn].ToString(), "5"); // tieu de string link = "", name = ""; link = (UrlExtension.WebisteUrl + dt.Rows[i][GroupsColumns.VGSEOLINKSEARCHColumn] + RewriteExtension.Extensions).ToLower(); name = dt.Rows[i][GroupsColumns.VgnameColumn].ToString(); if (list.Length > 0) { ltrList.Text = @" <div class='main-right'> <span class='btn-comp01 fade-up'><b>" + name + @"</b></span> <div class='list-news03'> " + list + @" </div> </div>"; } } } return(s); }