Last change
on this file since 577 was 577, checked in by chronos, 12 years ago |
- Opraveno: Malé opravy překlepů.
|
File size:
948 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | class CableTVChennelListPage extends Page
|
---|
4 | {
|
---|
5 | var $FullTitle = 'Seznam televizních kanálů místní kabelové televize';
|
---|
6 | var $ShortTitle = 'Kanály kabelové televize';
|
---|
7 |
|
---|
8 | function Show()
|
---|
9 | {
|
---|
10 | $Output = '<div align="center"><strong>Výpis kanálů:</strong><br>'.
|
---|
11 | '<table class="WideTable">'.
|
---|
12 | '<tr><th>Číslo</th<th>Jméno stanice</th><th>Frekvence [MHz]</th><th>Jazyk</th></tr>';
|
---|
13 | $DbResult = $this->Database->select('TV', '*', ' 1 ORDER BY Id');
|
---|
14 | while($Row = $DbResult->fetch_array())
|
---|
15 | {
|
---|
16 | $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>';
|
---|
17 | }
|
---|
18 | $Output .= '</table>Aktualizováno dne 17.12.2007<br></div>';
|
---|
19 | return($Output);
|
---|
20 | }
|
---|
21 | }
|
---|
22 |
|
---|
23 | $System->AddModule(new CableTVChennelListPage($System));
|
---|
24 | $System->Modules['CableTVChennelListPage']->GetOutput();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.