Changeset 303 for trunk/tv/index.php
- Timestamp:
- Jan 30, 2011, 8:19:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tv/index.php
r289 r303 16 16 'Zobrazení playlistu ve VLC lze provést pomocí menu <strong>View - Playlist</strong> nebo klávesové zkratky CTRL+L<br/>'. 17 17 '<br/>'. 18 '<div align="center"><strong>Výpis kanálů:</strong><br>'. 19 '<table class="WideTable">'. 20 '<tr><th>Jméno stanice</th><th>Jazyk</th><th>Zaměření</th><th>Zdroj</th></th><th>Ladění</th></tr>'; 18 '<div align="center"><strong>Výpis kanálů:</strong><br>'; 21 19 22 $DbResult = $this->Database->select('TV', '*', ' (`Stream` <> "") OR (`StreamWeb` <> "") ORDER BY `Name` '); 23 while($Channel = $DbResult->fetch_array()) 24 { 25 $Output .= '<tr><td><a href="'.$Channel['Homepage'].'">'.$Channel['Name'].'</a></td><td>'.$Channel['Language'].'</td><td>'.$Channel['Category'].'</td><td>'.$Channel['SourceType'].'</td><td>'; 26 if($Channel['Stream'] <> '') $Output .= '<a href="playlist.php?id='.$Channel['ShortName'].'">Naladit</a>'; 27 else $Output .= ' '; 28 if($Channel['StreamWeb'] <> '') $Output .= '<a href="'.$Channel['StreamWeb'].'">Naladit</a>'; 29 else $Output .= ' '; 30 $Output .= '</td></tr>'; 20 $Where = 21 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `TV` WHERE (`Stream` <> "") OR (`StreamWeb` <> "")'); 22 $DbRow = $DbResult->fetch_row(); 23 $PageList = GetPageList($DbRow[0]); 24 25 $Output .= $PageList['Output']; 26 $Output .= '<table class="WideTable">'; 27 28 $TableColumns = array( 29 array('Name' => 'Name', 'Title' => 'Jméno stanice'), 30 array('Name' => 'Language', 'Title' => 'Jazyk'), 31 array('Name' => 'Category', 'Title' => 'Zaměření'), 32 array('Name' => 'SourceType', 'Title' => 'Zdroj'), 33 array('Name' => '', 'Title' => 'Ladění'), 34 ); 35 $Order = GetOrderTableHeader($TableColumns, 'Name', 0); 36 $Output .= $Order['Output']; 37 38 $Query = 'SELECT * FROM `TV` WHERE (`Stream` <> "") OR (`StreamWeb` <> "") '.$Order['SQL'].$PageList['SQLLimit']; 39 40 $DbResult = $this->Database->query($Query); 41 while($Line = $DbResult->fetch_assoc()) 42 { 43 if($Line['Stream'] <> '') $Line['Show'] = '<a href="playlist.php?id='.$Line['ShortName'].'">Naladit</a>'; 44 else 45 if($Line['StreamWeb'] <> '') $Line['Show'] = '<a href="'.$Line['StreamWeb'].'">Naladit</a>'; 46 else $Line['Show'] = ' '; 47 48 $Output .= '<tr><td><a href="'.$Line['Homepage'].'">'.$Line['Name'].'</a></td>'. 49 '<td>'.$Line['Language'].'</td>'. 50 '<td>'.$Line['Category'].'</td>'. 51 '<td>'.$Line['SourceType'].'</td>'. 52 '<td>'.$Line['Show'].'</td></tr>'; 31 53 } 32 33 $Output .= '</table></div><br/>'; 54 $Output .= '</table>'; 55 $Output .= $PageList['Output']; 56 57 $Output .= '</div><br/>'; 34 58 35 59 $Output .= 'Originální informace o televizi: <a href="http://tv.hovnet.czf/">HovNet televize</a><br/>';
Note:
See TracChangeset
for help on using the changeset viewer.