Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/TV/TV.php

    r712 r738  
    88  var $ShortTitle = 'IPTV';
    99  var $ParentClass = 'PagePortal';
    10  
     10
    1111  function Show()
    12   {   
     12  {
    1313    if(count($this->System->PathItems) > 1)
    14     { 
     14    {
    1515      if($this->System->PathItems[1] == 'playlist.m3u') return($this->ShowPlayList());
    1616        else return(PAGE_NOT_FOUND);
    1717    } else return($this->ShowChannelList());
    1818  }
    19  
     19
    2020  function ShowChannelList()
    2121  {
    2222    global $Channels;
    23    
     23
    2424    $Output = 'Stažení přehrávače: <a href="http://www.videolan.org/vlc/">VLC Media Player</a><br/>'.
    2525    'Seznam všech kanálů do přehrávače: <a href="playlist.m3u">Playlist</a><br/>'.
     
    2828    '<div align="center"><strong>Výpis kanálů:</strong><br>';
    2929
    30     $Where = 
     30    $Where =
    3131    $DbResult = $this->Database->query('SELECT COUNT(*) FROM `TV` LEFT JOIN `TVGroup` ON `TVGroup`.`Id` = `TV`.`Category` '.
    3232      ' LEFT JOIN `Language` ON `Language`.`Id` = `TV`.`Language` WHERE (`TV`.`Stream` <> "") OR (`TV`.`StreamWeb` <> "")');
    3333    $DbRow = $DbResult->fetch_row();
    34     $PageList = GetPageList($DbRow[0]);   
     34    $PageList = GetPageList($DbRow[0]);
    3535
    3636    $Output .= $PageList['Output'];
    3737    $Output .= '<table class="WideTable">';
    38    
     38
    3939    $TableColumns = array(
    40       array('Name' => 'Name', 'Title' => 'Jméno stanice'), 
    41       array('Name' => 'Language', 'Title' => 'Jazyk'), 
    42       array('Name' => 'Category', 'Title' => 'Zaměření'), 
    43       array('Name' => 'SourceType', 'Title' => 'Zdroj'), 
    44       array('Name' => '', 'Title' => 'Ladění'), 
     40      array('Name' => 'Name', 'Title' => 'Jméno stanice'),
     41      array('Name' => 'Language', 'Title' => 'Jazyk'),
     42      array('Name' => 'Category', 'Title' => 'Zaměření'),
     43      array('Name' => 'SourceType', 'Title' => 'Zdroj'),
     44      array('Name' => '', 'Title' => 'Ladění'),
    4545    );
    4646    $Order = GetOrderTableHeader($TableColumns, 'Name', 0);
     
    5151
    5252    $DbResult = $this->Database->query($Query);
    53     while($Line = $DbResult->fetch_assoc()) 
    54     { 
     53    while($Line = $DbResult->fetch_assoc())
     54    {
    5555      if($Line['Stream'] <> '') $Line['Show'] = '<a href="playlist.m3u?id='.$Line['ShortName'].'">Naladit</a>';
    5656      else
    5757      if($Line['StreamWeb'] <> '') $Line['Show'] = '<a href="'.$Line['StreamWeb'].'">Naladit</a>';
    5858        else $Line['Show'] = '&nbsp;';
    59      
     59
    6060      $Output .= '<tr><td><a href="'.$Line['Homepage'].'">'.$Line['Name'].'</a></td>'.
    6161      '<td>'.$Line['Language'].'</td>'.
     
    6666    $Output .= '</table>';
    6767    $Output .= $PageList['Output'];
    68    
     68
    6969    $Output .= '</div><br/>';
    70    
     70
    7171    $Output .= 'Další online TV na webu: <a href="http://spustit.cz">Spustit.cz</a><br/>';
    7272    $Output .= 'Další online TV na webu: <a href="http://www.tvinfo.cz/live/televize/evropa/cz">TV info</a><br/>';
    73    
     73
    7474    return($Output);
    7575  }
     
    7878  {
    7979    $this->ClearPage = true;
    80        
     80
    8181    Header("Content-Type: audio/mpegurl");
    8282    Header("Content-Disposition: attachment; filename=playlist.m3u");
     
    101101      }
    102102    }
    103   } 
     103  }
    104104}
    105105
     
    115115    $this->Description = 'Television channels management';
    116116    $this->Dependencies = array();
    117   } 
     117  }
    118118
    119119  function DoInstall()
    120120  {
    121121  }
    122  
     122
    123123  function DoUninstall()
    124   {     
     124  {
    125125  }
    126  
     126
    127127  function DoStart()
    128128  {
     
    155155    ));
    156156    $this->System->FormManager->RegisterFormType('TTVGroup', array(
    157         'Type' => 'Reference',
    158         'Table' => 'TVGroup',
    159         'Id' => 'Id',
    160         'Name' => 'Name',
    161         'Filter' => '1',
     157      'Type' => 'Reference',
     158      'Table' => 'TVGroup',
     159      'Id' => 'Id',
     160      'Name' => 'Name',
     161      'Filter' => '1',
    162162    ));
    163163    $this->System->FormManager->RegisterFormType('TTVListCategory', array(
    164         'Type' => 'ManyToOne',
    165         'Table' => 'TV',
    166         'Id' => 'Id',
    167         'Ref' => 'Category',
    168         'Filter' => '1',
    169     ));   
    170   } 
    171  
     164      'Type' => 'ManyToOne',
     165      'Table' => 'TV',
     166      'Id' => 'Id',
     167      'Ref' => 'Category',
     168      'Filter' => '1',
     169    ));
     170  }
     171
    172172  function DoStop()
    173   { 
    174   } 
     173  {
     174  }
    175175}
Note: See TracChangeset for help on using the changeset viewer.