Changeset 251 for trunk/index.php


Ignore:
Timestamp:
Oct 2, 2009, 7:12:57 AM (15 years ago)
Author:
george
Message:
  • Upraveno: Podpora pro více grafických stylů. Úprava výchozího stylu.
  • Přidáno: Import RSS aktualit zpravodajství TV Beskyd.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r246 r251  
    5656    ),
    5757    'usefull' => array('Užitečné',
    58       array('Mapa ČR', 'http://www.mapy.cz/', ''),
     58      array('Mapa ČR', 'http://www.mapy.cz/', 'www_mapy_cz.ico'),
    5959      array('Online TV', 'http://www.tvinfo.cz/live/televize/evropa/cz', 'www_tvinfo_cz.gif'),
    6060      array('Jízdní řády', 'http://jizdnirady.idnes.cz/', 'www_idos_cz.gif'),
    6161      array('TV programy', 'http://tv.atlas.cz/', 'www_atlas_cz.gif'),
    6262      array('ICQ', 'javascript:openClient(\'flash\')', 'www_icq_com.gif'),
    63       array('Slovníky', 'http://www.slovnik.cz/', ''),
     63      array('Slovníky', 'http://www.slovnik.cz/', 'www_slovnik_cz.ico'),
    6464      array('Počasí', 'http://www.meteopress.cz/', 'pocasi.gif'),
    6565      array('T-Mobile SMS', 'http://www.tzones.cz/', 'www_tzones_cz.gif'),
     
    9292    //{
    9393      $Title = array_shift($LinkGroup);
    94       $Result .= '<div class="PanelTitle">'.$Title.'</div>';
     94      //$Result .= '<h3>'.$Title.'</h3>';
    9595      foreach($LinkGroup as $Link)
    9696      {
     
    102102      }
    103103    //}
    104     return($Result);
     104    return($this->Panel($Title, $Result));
    105105  }
    106106
     
    154154  function UserPanel()
    155155  {
    156     $Output = '<div class="PanelTitle">Nabídka uživatele:</div>'.
    157     '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení uživatele</a><br />';
     156    $Output = '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení uživatele</a><br />';
    158157    if($this->System->Modules['User']->CheckPermission('Finance', 'MemberOptions'))
    159158      $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'?Action=MemberOptions">Nastavení domácnosti</a><br />';
     
    175174  function WebcamPanel()
    176175  {
    177     $Output = '<div class="PanelTitle">Webkamery</div>';
    178     $Output .= $this->System->Modules['Webcam']->ShowImage();
     176    $Output = $this->System->Modules['Webcam']->ShowImage();
    179177    return($Output);
    180178  }
     
    182180  function OnlineHostList()
    183181  {
    184     $Output = '<div class="PanelTitle">Online počítače</div><span style="font-size: smaller;">';
     182    $Output = '<span style="font-size: smaller;">';
    185183    $DbResult = $this->Database->query('SELECT NetworkDevice.Name FROM NetworkDevice LEFT JOIN NetworkDeviceType ON NetworkDeviceType.Id = NetworkDevice.Type WHERE (NetworkDeviceType.ShowOnline = 1) AND (NetworkDevice.Online = 1) ORDER BY NetworkDevice.Name');
    186184    while($Device = $DbResult->fetch_array())
     
    221219    $Uptime = str_replace('min,', 'minut', $Uptime);
    222220    return($Uptime);
     221  }
     222 
     223  function Panel($Title, $Content, $Menu = array())
     224  {
     225    if(count($Menu) > 0)
     226      foreach($Menu as $Item)
     227        $Title .= '<div class="dbTopMenu"><div class="active">'.$Item.'</div></div>';
     228    return('<div class="disignBoxFirst"><div class="boxFirstHeader">'.$Title.'</div><div class="boxContent">'.$Content.'</div></div>');
     229    //return('<div class="Panel"><div><div><div><h3>'.$Title.'</h3>'.$Content.'</div></div></div></div>');
    223230  }
    224231
     
    365372    //$Output .= $this->InfoBar();
    366373    $Output .= '<table id="MainTable"><tr><td valign="top">';
    367     $Output .= '<div class="Panel">'.$this->ShowLinks($this->Links['main']).'</div>';
    368     $Output .= '<div class="Panel">'.$this->ShowLinks($this->Links['hosted']).'</div>';
     374    $Output .= $this->ShowLinks($this->Links['main']);
     375    $Output .= $this->ShowLinks($this->Links['hosted']);
    369376    $Output .= '</td><td valign="top">';
    370     $Output .= '<div class="Panel">'.$this->ShowLinks($this->Links['search']).'</div>';
    371     $Output .= '<div class="Panel">'.$this->ShowLinks($this->Links['usefull']).'</div>';
    372     $Output .= '<div class="Panel">'.$this->ShowLinks($this->Links['fun']).'</div>';
    373     $Output .= '<div class="Panel">'.$this->ShowLinks($this->Links['local']).'</div>';
    374     $Output .= '<div class="Panel">'.$this->ShowLinks($this->Links['citizen']).'</div>';
     377    $Output .= $this->ShowLinks($this->Links['search']);
     378    $Output .= $this->ShowLinks($this->Links['usefull']);
     379    $Output .= $this->ShowLinks($this->Links['fun']);
     380    $Output .= $this->ShowLinks($this->Links['local']);
     381    $Output .= $this->ShowLinks($this->Links['citizen']);
    375382    $Output .= '</td><td id="NewsColumn" valign="top">';
    376     $Output .= '<div class="Panel">'.$this->System->Modules['News']->Show().'</div>';
     383    $Output .= $this->Panel('Aktuality', $this->System->Modules['News']->Show(), array('<a href="?Action=CustomizeNews">Upravit</a>'));
    377384    $Output .= '</td><td valign="top">';
    378385    if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId)
    379     $Output .= '<div class="Panel">'.$this->UserPanel().'</div>';
    380     $Output .= '<div class="Panel">'.$this->WebcamPanel().'</div>';
    381     $Output .= '<div class="Panel">'.$this->OnlineHostList().'</div>';
     386    $Output .= $this->Panel('Nabídka uživatele', $this->UserPanel());
     387    $Output .= $this->Panel('Kamery', $this->WebcamPanel());
     388    $Output .= $this->Panel('Online počítače', $this->OnlineHostList());
    382389    $Output .= '<br />';
    383390    $Output .= '</td></tr></table>';
Note: See TracChangeset for help on using the changeset viewer.