Changeset 153 for www/index.php
- Timestamp:
- Feb 16, 2009, 6:16:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/index.php
r152 r153 77 77 //{ 78 78 $Title = array_shift($LinkGroup); 79 $Result .= '<div class="PanelTitle">'.$Title.' :</div>';79 $Result .= '<div class="PanelTitle">'.$Title.'</div>'; 80 80 foreach($LinkGroup as $Link) 81 81 { … … 137 137 { 138 138 $Output = '<div class="PanelTitle">Nabídka uživatele:</div>'. 139 '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení účtu</a><br />'. 140 '<a href="'.$this->System->Config['Web']['RootFolder'].'/finance/user_state.php">Stav financí</a><br />'. 141 '<a href="'.$this->System->Config['Web']['RootFolder'].'/network/user_hosts.php">Registrované počítače</a><br />'. 142 '<a href="'.$this->System->Config['Web']['RootFolder'].'/aktuality/?action=add">Vložení aktuality</a><br />'; 143 if($this->System->Modules['User']->CheckPermission('EatingPlace', 'Edit')) $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/jidelna/menuedit.php">Editace jídelníčků</a><br />'; 144 if($this->System->Modules['User']->CheckPermission('Finance', 'Manage')) $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/finance/manage.php">Správa financí</a><br />'; 145 if($this->System->Modules['User']->CheckPermission('Network', 'Administration')) $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/is/administration_page.php">Správa sítě</a><br />'; 139 '<a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení účtu</a><br />'; 140 if($this->System->Modules['User']->CheckPermission('Finance', 'DisplaySubjectState')) 141 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/finance/user_state.php">Stav financí</a><br />'; 142 if($this->System->Modules['User']->CheckPermission('Network', 'RegistredHostList')) 143 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/network/user_hosts.php">Registrované počítače</a><br />'; 144 //if($this->System->Modules['User']->CheckPermission('EatingPlace', 'Edit')) 145 $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/aktuality/?action=add">Vložení aktuality</a><br />'; 146 if($this->System->Modules['User']->CheckPermission('EatingPlace', 'Edit')) $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/jidelna/menuedit.php">Editace jídelníčků</a><br />'; 147 if($this->System->Modules['User']->CheckPermission('Finance', 'Manage')) $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/finance/manage.php">Správa financí</a><br />'; 148 if($this->System->Modules['User']->CheckPermission('Network', 'Administration')) $Output .= '<a href="'.$this->System->Config['Web']['RootFolder'].'/is/administration_page.php">Správa sítě</a><br />'; 146 149 return($Output); 147 150 } … … 149 152 function WebcamPanel() 150 153 { 151 $Output = '<div class="PanelTitle">Webkamery :</div>';154 $Output = '<div class="PanelTitle">Webkamery</div>'; 152 155 $Output .= $this->System->Modules['Webcam']->ShowImage(); 153 156 return($Output); … … 159 162 global $Database; 160 163 161 $Output = '<div class="PanelTitle">Online počítače :</div><span style="font-size: smaller;">';164 $Output = '<div class="PanelTitle">Online počítače</div><span style="font-size: smaller;">'; 162 165 $DbResult = $Database->select('hosts', '*', 'online=1 AND show_online=1 ORDER BY name'); 163 166 while($Row = $DbResult->fetch_array()) … … 169 172 } 170 173 171 /*172 174 // Zobrazení seznamu neplaticich uzivatelu 173 175 function ShowBadPayerList() … … 179 181 $Output .= $Row['fullname'].'<br />'; 180 182 } 181 echo('</span>'); 182 return($Output); 183 } 184 */ 183 $Output .= '</span>'; 184 return($Output); 185 } 185 186 186 187 // Zobrazení času běhu počítače … … 208 209 global $Database, $Config, $User; 209 210 210 $Database->select_db('share');211 //$Database->select_db('share'); 211 212 //$Output = $this->InfoBar(); 212 213 213 // Process cookies 214 $Output = ''; 214 215 if(array_key_exists('Action', $_GET)) 215 216 { … … 232 233 </tr> 233 234 <tr align="left"> 234 <td><a href="?Action= RegistrationForm">Registrovat se</a></td>235 <td><a href="?Action=UserRegister">Registrovat se</a></td> 235 236 <td><a href="?Action=PasswordRecovery">Obnova zapomenutého hesla</a></td> 236 237 </tr> … … 310 311 $Output .= '<div class="Panel">'.$this->System->Modules['News']->Show().'</div>'; 311 312 $Output .= '</td><td valign="top">'; 312 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId) $Output .= '<div class="Panel">'.$this->UserPanel().'</div>'; 313 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId) 314 $Output .= '<div class="Panel">'.$this->UserPanel().'</div>'; 313 315 $Output .= '<div class="Panel">'.$this->WebcamPanel().'</div>'; 314 316 $Output .= '<div class="Panel">'.$this->OnlineHostList().'</div>';
Note:
See TracChangeset
for help on using the changeset viewer.