Changeset 18 for trunk/class/Gui.php
- Timestamp:
- Jun 23, 2012, 12:47:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/class/Gui.php
r14 r18 12 12 private $Pages = array(); 13 13 private $Language; 14 private $User; 14 15 15 16 function __construct($User) … … 21 22 $this->InitLinks(); 22 23 $this->InitPages(); 24 $this->User = $User; 23 25 24 26 //have to be after inicialization of pages … … 29 31 private function InitLinks() { 30 32 $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'); 31 34 32 35 } … … 35 38 private function InitPages() { 36 39 $this->Pages['home'] = new PageHome($this->Language); 40 $this->Pages['login'] = new PageLogin($this->Language); 41 $this->Pages['register'] = new PageRegister($this->Language); 37 42 38 43 } … … 71 76 '<link rel="shortcut icon" href="'.$this->Config->Web['Icon'].'" />'); 72 77 echo('<title>'.$this->Config->Web['Title'].'</title></head><body><table><tr><td>'); 78 //left panel 73 79 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 74 95 } 75 96
Note:
See TracChangeset
for help on using the changeset viewer.