Name = 'School'; $this->Version = '1.0'; $this->Creator = 'Chronos'; $this->License = 'GNU/GPL'; $this->Description = 'List of dance schools'; $this->Dependencies = array(); $this->RSSChannels = array(); } function Start(): void { $this->System->RegisterPage(['skoly'], 'PageSchoolList'); Core::Cast($this->System)->RegisterMenuItem('/skoly', 'Školy'); } } class PageSchoolList extends Page { function __construct($System) { parent::__construct($System); $this->Title = 'Školy'; $this->Description = 'Taneční školy'; } function Show(): string { $Output = '
Taneční školy
'; $Output .= ''; $Output .= ''; $Output .= ''; $DbResult = $this->Database->select('School', '*', '1 ORDER BY `Name`'); while ($School = $DbResult->fetch_assoc()) { $Output .= ''. ''. ''. ''. ''; } $Output .= '
NázevWebové stránkyAdresa
'.$School['Name'].''.$School['URL'].''.$School['Address'].'
'; return $Output; } }