source: www/tkr.php@ 148

Last change on this file since 148 was 148, checked in by george, 16 years ago
  • Upraveno: Přepracován systém generování zobrazení výstupu. Pro nový systím přepsáno mnoho stránek.
File size: 961 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['www'].'">'.$Row['name'].'</a></td><td align="right">'.($Row['freq']/1000).'</td><td>'.$Row['lang'].'</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.