예제 #1
0
    void GetCate()
    {
        DataTable dt = new DataTable();

        fields    = " * ";
        condition = GroupsTSql.GetGroupsCondition(language, Modul, "", " IGENABLE <> '2' ");
        if (ddl_type_groupnews_show.SelectedIndex > 0)
        {
            condition = DataExtension.AndConditon(
                condition,
                GroupsTSql.GetGroupsByIgtotalitems(ddl_type_groupnews_show.SelectedValue));
        }
        orderBy = " IGORDER ASC ";
        dt      = Groups.GetGroups(top, fields, condition, orderBy);

        if (dt.Rows.Count > 0)
        {
            LtCates.Text += "<div id=\"CateOrder-0\" >";
            LtCates.Text += DisplayCate(dt);
            LtCates.Text += "</div>";
        }
    }