Changeset 61 for trunk/Modules/Event/EventPage.php
- Timestamp:
- Apr 28, 2021, 6:11:27 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Event/EventPage.php
r56 r61 57 57 58 58 $DbResult = $this->Database->query('SELECT COUNT(*) FROM (SELECT *, '. 59 '(SELECT EventSource.Name FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceName FROM `Event`) AS T WHERE (T.Hidden=0)AND '.$Where);59 '(SELECT EventSource.Name FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceName FROM `Event`) AS T WHERE '.GetDefaultEventFilter('T').' AND '.$Where); 60 60 $DbRow = $DbResult->fetch_row(); 61 61 $PageList = GetPageList($DbRow[0]); … … 77 77 $Output .= $Order['Output']; 78 78 $DbResult = $this->Database->query('SELECT * FROM (SELECT *, (SELECT EventSource.Name FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceName, '. 79 '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL FROM Event) AS T WHERE (T.Hidden=0)AND '.79 '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL FROM Event) AS T WHERE '.GetDefaultEventFilter('T').' AND '. 80 80 $Where.$Order['SQL'].$PageList['SQLLimit']); 81 81 while ($Event = $DbResult->fetch_assoc()) … … 198 198 199 199 $DbResult = $this->Database->select('Event', '*, (SELECT EventSource.Name FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceName, '. 200 '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL', '`Hidden`=0ORDER BY `TimeFrom` DESC LIMIT 30');200 '(SELECT EventSource.URL FROM EventSource WHERE EventSource.Id = Event.Source) AS SourceURL', GetDefaultEventFilter().' ORDER BY `TimeFrom` DESC LIMIT 30'); 201 201 while ($Event = $DbResult->fetch_assoc()) 202 202 {
Note:
See TracChangeset
for help on using the changeset viewer.