Changeset 901 for trunk/Modules/OpeningHours/OpeningHours.php
- Timestamp:
- Feb 17, 2021, 9:27:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/OpeningHours/OpeningHours.php
r899 r901 43 43 if (ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('OpeningHours', 'Edit')) 44 44 { 45 $Output = '<div class="Cent red">';45 $Output = '<div class="Centered">'; 46 46 $DbResult = $this->Database->select('Subject', 'Name', 'Id='.$Id); 47 47 $DbRow = $DbResult->fetch_assoc(); … … 119 119 function ShowAll(): string 120 120 { 121 $Output = '<div class="Centred">'; 122 $DbResult = $this->Database->query('SELECT SubjectOpenTime.*, DATE_FORMAT(SubjectOpenTime.UpdateTime, "%e.%c.%Y") as UpdateTime, Subject.Id, Subject.Name as Name FROM SubjectOpenTime JOIN Subject ON Subject.Id = SubjectOpenTime.Subject ORDER BY Name'); 121 $Output = '<div class="Centered">'; 122 $DbResult = $this->Database->query('SELECT SubjectOpenTime.*, DATE_FORMAT(SubjectOpenTime.UpdateTime, "%e.%c.%Y") as UpdateTime, '. 123 'Subject.Id, Subject.Name as Name FROM SubjectOpenTime '. 124 'JOIN Subject ON Subject.Id = SubjectOpenTime.Subject ORDER BY Name'); 123 125 while ($Subject = $DbResult->fetch_assoc()) 124 126 { … … 190 192 if ($Subject['Notice'] != '') $Output .= 'Poznámka: '.$Subject['Notice'].'<br />'; 191 193 192 if ($Subject['Photo'] != 0) $Output .= '<a href="file?i d='.$Subject['Photo'].'">Fotka</a> ';194 if ($Subject['Photo'] != 0) $Output .= '<a href="file?i='.$Subject['Photo'].'">Fotka</a> '; 193 195 194 196 if (ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('SubjectOpenTime', 'Edit'))
Note:
See TracChangeset
for help on using the changeset viewer.