Пример #1
0
        public static void UpdateAnnouncementDisplayOrder(string displayorder, string[] hid, int userid, int useradminid)
        {
            DataTable announcementList = Announcements.GetAnnouncementList();

            for (int i = 0; i < displayorder.Split(',').Length; i++)
            {
                AnnouncementInfo announcement = Announcements.GetAnnouncement(TypeConverter.StrToInt(hid[i]));
                if (((announcement.Posterid > 0 && announcement.Posterid == userid) || useradminid == 1) && announcement.Displayorder.ToString() != displayorder[i].ToString())
                {
                    Discuz.Data.Announcements.UpdateAnnouncementDisplayOrder(TypeConverter.StrToInt(displayorder.Split(',')[i]), TypeConverter.ObjectToInt(announcementList.Rows[i]["id"]));
                }
            }
        }
Пример #2
0
 public static DataTable GetSimplifiedAnnouncementList(string starttime)
 {
     return(Announcements.GetSpecificAnnouncementList(starttime, "2999-01-01 00:00:00", -1));
 }
Пример #3
0
 public static DataTable GetSimplifiedAnnouncementList(string starttime, string endtime)
 {
     return(Announcements.GetSpecificAnnouncementList(starttime, endtime, -1));
 }