Changeset 251 for trunk/index.php
- Timestamp:
- Oct 2, 2009, 7:12:57 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r246 r251 56 56 ), 57 57 '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'), 59 59 array('Online TV', 'http://www.tvinfo.cz/live/televize/evropa/cz', 'www_tvinfo_cz.gif'), 60 60 array('Jízdní řády', 'http://jizdnirady.idnes.cz/', 'www_idos_cz.gif'), 61 61 array('TV programy', 'http://tv.atlas.cz/', 'www_atlas_cz.gif'), 62 62 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'), 64 64 array('Počasí', 'http://www.meteopress.cz/', 'pocasi.gif'), 65 65 array('T-Mobile SMS', 'http://www.tzones.cz/', 'www_tzones_cz.gif'), … … 92 92 //{ 93 93 $Title = array_shift($LinkGroup); 94 $Result .= '<div class="PanelTitle">'.$Title.'</div>';94 //$Result .= '<h3>'.$Title.'</h3>'; 95 95 foreach($LinkGroup as $Link) 96 96 { … … 102 102 } 103 103 //} 104 return($ Result);104 return($this->Panel($Title, $Result)); 105 105 } 106 106 … … 154 154 function UserPanel() 155 155 { 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 />'; 158 157 if($this->System->Modules['User']->CheckPermission('Finance', 'MemberOptions')) 159 158 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'?Action=MemberOptions">Nastavení domácnosti</a><br />'; … … 175 174 function WebcamPanel() 176 175 { 177 $Output = '<div class="PanelTitle">Webkamery</div>'; 178 $Output .= $this->System->Modules['Webcam']->ShowImage(); 176 $Output = $this->System->Modules['Webcam']->ShowImage(); 179 177 return($Output); 180 178 } … … 182 180 function OnlineHostList() 183 181 { 184 $Output = '< div class="PanelTitle">Online počítače</div><span style="font-size: smaller;">';182 $Output = '<span style="font-size: smaller;">'; 185 183 $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'); 186 184 while($Device = $DbResult->fetch_array()) … … 221 219 $Uptime = str_replace('min,', 'minut', $Uptime); 222 220 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>'); 223 230 } 224 231 … … 365 372 //$Output .= $this->InfoBar(); 366 373 $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']); 369 376 $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']); 375 382 $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>')); 377 384 $Output .= '</td><td valign="top">'; 378 385 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()); 382 389 $Output .= '<br />'; 383 390 $Output .= '</td></tr></table>';
Note:
See TracChangeset
for help on using the changeset viewer.