| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | class CableTVChennelListPage extends Page
|
|---|
| 4 | {
|
|---|
| 5 | function __construct(System $System)
|
|---|
| 6 | {
|
|---|
| 7 | parent::__construct($System);
|
|---|
| 8 | $this->Title = 'Kanály kabelové televize';
|
|---|
| 9 | $this->Description = 'Seznam televizních kanálů místní kabelové televize';
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | function Show(): string
|
|---|
| 13 | {
|
|---|
| 14 | $Output = '<div align="center"><strong>Výpis kanálů:</strong><br>'.
|
|---|
| 15 | '<table class="WideTable">'.
|
|---|
| 16 | '<tr><th>Číslo</th<th>Jméno stanice</th><th>Frekvence [MHz]</th><th>Jazyk</th></tr>';
|
|---|
| 17 | $DbResult = $this->Database->select('TV', '*', ' 1 ORDER BY Id');
|
|---|
| 18 | while ($Row = $DbResult->fetch_array())
|
|---|
| 19 | {
|
|---|
| 20 | $Output .= '<tr><td>'.$Row['Id'].'</td><td><a href="'.$Row['Homepage'].'">'.$Row['Name'].'</a></td><td align="right">'.($Row['Frequency'] / 1000).'</td><td>'.$Row['Language'].'</td></tr>';
|
|---|
| 21 | }
|
|---|
| 22 | $Output .= '</table>Aktualizováno dne 17.12.2007<br></div>';
|
|---|
| 23 | return $Output;
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
| 27 | $Page = new CableTVChennelListPage($System);
|
|---|
| 28 | $Page->GetOutput();
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.