diff options
| author | zeldakatze <coffee@zeldakatze.de> | 2025-10-27 01:23:58 +0100 |
|---|---|---|
| committer | zeldakatze <coffee@zeldakatze.de> | 2025-10-27 01:23:58 +0100 |
| commit | 607411f406a1bbbd90e0559de29116ccc8d2e0f2 (patch) | |
| tree | 91f3cf29c13af7aebcc7dae5a68b3326af988e96 /adminPanel.php | |
| parent | 4c71a67bbb00c136c39900afaa79d3c1933d710d (diff) | |
| download | infoCalendar-607411f406a1bbbd90e0559de29116ccc8d2e0f2.tar.gz infoCalendar-607411f406a1bbbd90e0559de29116ccc8d2e0f2.zip | |
Diffstat (limited to 'adminPanel.php')
| -rwxr-xr-x | adminPanel.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/adminPanel.php b/adminPanel.php index a45b75c..d0bd859 100755 --- a/adminPanel.php +++ b/adminPanel.php @@ -214,6 +214,7 @@ function infocalendar_options_page_html() { $wpdb->show_errors = true; ?> + <div id="infocal_adm"> <script> function cal_toggleOldEventsVisibility() { var btn = document.getElementById('cal_hideOldEventsBtn'); @@ -347,7 +348,8 @@ function infocalendar_options_page_html() { WHERE event.id = eventCalendarMap.eventID AND calendar.id = eventCalendarMap.calendarID AND repeatingEvent=0 AND icalImported=0 AND - (startDate > NOW() OR endDate > NOW()) GROUP BY event.id", + (startDate > NOW() OR endDate > NOW()) GROUP BY event.id + ORDER BY startDate", 'ARRAY_A'); foreach($result as $row) { @@ -401,7 +403,7 @@ function infocalendar_options_page_html() { event.id = repeatingEvent.id AND repeatingEvent=1 AND icalImported=0 AND (repeatEndTime > NOW() OR startDate > NOW()) - GROUP BY event.id", 'ARRAY_A'); + GROUP BY event.id ORDER BY startDate", 'ARRAY_A'); foreach($result as $row) { /* get the creator's name */ @@ -462,7 +464,7 @@ function infocalendar_options_page_html() { calendar.id = eventCalendarMap.calendarID AND repeatingEvent=0 AND icalImported=0 AND (startDate < NOW() AND endDate < NOW()) - GROUP BY event.id", 'ARRAY_A'); + GROUP BY event.id ORDER BY startDate", 'ARRAY_A'); foreach($result as $row) { /* get the creator's name */ $creator = get_username_from_id($row['creator']); @@ -543,6 +545,7 @@ function infocalendar_options_page_html() { ?> </table> </div> + </div> <?php } |
