Changeset 18 for trunk/class/Gui.php


Ignore:
Timestamp:
Jun 23, 2012, 12:47:30 PM (12 years ago)
Author:
maron
Message:

kostra webu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/class/Gui.php

    r14 r18  
    1212  private $Pages = array();
    1313  private $Language;
     14  private $User;
    1415
    1516  function __construct($User)
     
    2122        $this->InitLinks();
    2223        $this->InitPages();
     24        $this->User = $User;
    2325       
    2426        //have to be after inicialization of pages
     
    2931  private function InitLinks() {
    3032          $this->Links['SourceCode'] = new Link('Zdrojové kódy','http://svn.zdechov.net/svn/phpvpsadmin/',''); 
     33          $this->Links['logout'] = new Link('Odhlásit', '?logout' , 'Odhlásit se z webového systému');
    3134         
    3235  }
     
    3538  private function InitPages() {
    3639          $this->Pages['home'] = new PageHome($this->Language); 
     40          $this->Pages['login'] = new PageLogin($this->Language); 
     41          $this->Pages['register'] = new PageRegister($this->Language); 
    3742         
    3843  }
     
    7176'<link rel="shortcut icon" href="'.$this->Config->Web['Icon'].'" />');
    7277  echo('<title>'.$this->Config->Web['Title'].'</title></head><body><table><tr><td>');
     78  //left panel
    7379
     80        foreach($this->Pages as $Key => $Page )
     81    {
     82                echo $Page->Link->Get();
     83                echo '<br />';
     84    }
     85
     86        if ($this->User->Licence(0)) {
     87                echo 'Přihlášen ';
     88                echo $this->Links['logout']->Get();
     89    }
     90    // else echo 'notlog';
     91       
     92 
     93  echo ('</td><td>');
     94  //right panel
    7495  }
    7596
Note: See TracChangeset for help on using the changeset viewer.