source: trunk/tkr.php@ 253

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