Changeset 153 for www/index.php


Ignore:
Timestamp:
Feb 16, 2009, 6:16:00 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Zobrazování chyb v SQL povelech. Nastavení v konfigureaci.
  • Upraveno: Zpřístupnění stavu financí dle ip i dle přihlášení.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/index.php

    r152 r153  
    7777    //{
    7878      $Title = array_shift($LinkGroup);
    79       $Result .= '<div class="PanelTitle">'.$Title.':</div>';
     79      $Result .= '<div class="PanelTitle">'.$Title.'</div>';
    8080      foreach($LinkGroup as $Link)
    8181      {
     
    137137  {
    138138    $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 />';
    146149    return($Output);
    147150  }
     
    149152  function WebcamPanel()
    150153  {
    151     $Output = '<div class="PanelTitle">Webkamery:</div>';
     154    $Output = '<div class="PanelTitle">Webkamery</div>';
    152155    $Output .= $this->System->Modules['Webcam']->ShowImage();
    153156    return($Output);
     
    159162    global $Database;
    160163
    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;">';
    162165    $DbResult = $Database->select('hosts', '*', 'online=1 AND show_online=1 ORDER BY name');
    163166    while($Row = $DbResult->fetch_array())
     
    169172  }
    170173
    171   /*
    172174  // Zobrazení seznamu neplaticich uzivatelu
    173175  function ShowBadPayerList()
     
    179181      $Output .= $Row['fullname'].'<br />';
    180182    }
    181     echo('</span>');
    182     return($Output);
    183   }
    184   */
     183    $Output .= '</span>';
     184    return($Output);
     185  }
    185186
    186187  // Zobrazení času běhu počítače
     
    208209    global $Database, $Config, $User;
    209210
    210     $Database->select_db('share');
     211    //$Database->select_db('share');
    211212    //$Output = $this->InfoBar();
    212 
    213213    // Process cookies
     214        $Output = '';
    214215    if(array_key_exists('Action', $_GET))
    215216    {
     
    232233        </tr>
    233234        <tr align="left">
    234                 <td><a href="?Action=RegistrationForm">Registrovat se</a></td>
     235                <td><a href="?Action=UserRegister">Registrovat se</a></td>
    235236                <td><a href="?Action=PasswordRecovery">Obnova zapomenutého hesla</a></td>
    236237        </tr>
     
    310311    $Output .= '<div class="Panel">'.$this->System->Modules['News']->Show().'</div>';
    311312    $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>';
    313315    $Output .= '<div class="Panel">'.$this->WebcamPanel().'</div>';
    314316    $Output .= '<div class="Panel">'.$this->OnlineHostList().'</div>';
Note: See TracChangeset for help on using the changeset viewer.