Changeset 73 for trunk/www/Application/View/Page.php
- Timestamp:
- Aug 23, 2009, 7:02:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/Page.php
r71 r73 60 60 return($Output); 61 61 } 62 63 function CenterPanel($Content) 64 { 65 $Output = '<table class="BasicTable"><tr>'; 66 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId) 67 $Output .= '<td class="UserMenu">'.$this->UserMenu().'</td>'; 68 $Output .= '<td class="Content">'.$Content.'</td>'; 69 if(!array_key_exists('Action', $_GET)) 70 { 71 $NewsView = new NewsView($this->Database, $this->System); 72 $Output .= $NewsView->View(); 73 } 74 $Output .= '</tr></table>'; 75 return($Output); 76 } 77 78 function UserMenu() 79 { 80 $Output = '<strong>Uživatelské menu</strong><br />'; 81 if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId) 82 { 83 $Output .= '<div><a href="?Module=Server&Action=ItemList&Filter=User">Moje servery</a></div>'; 84 //$Output .= '<div><a href="?Action=RealmList&Filter=User">Moje světy</a></div>'; 85 //$Output .= '<div><a href="?Action=DebugList&Id='.$Server['Id'].'">Ladící záznamy</a></div>'; 86 //$Output .= '<div><a href="?Action=BackupList&Id='.$Server['Id'].'">Zálohy</a></div>'; 87 $Output .= '<div><a href="?Module=Task&Action=ItemList">Fronta úloh</a></div>'; 88 //$Output .= '<div><a href="?Action=UpdateList&Id='.$Server['Id'].'">Dostupné aktualizace</a></div>'; 89 90 if($this->System->Modules['User']->User['Role'] == USER_ROLE_ADMINISTRATOR) 91 { 92 $Output .= '<div><a href="?Module=News&Action=Add">Přidat aktualitu</a></div>'; 93 } 94 } 95 return($Output); 96 } 62 97 63 98 function GetOutput($Content) … … 65 100 global $Config; 66 101 67 $Output = $this->ShowHeader($this->FullTitle, $this->ShortTitle).$Content; 102 $Output = $this->ShowHeader($this->FullTitle, $this->ShortTitle). 103 $this->CenterPanel($Content); 68 104 $Output .= $this->ShowFooter(); 69 105 if($Config['Web']['FormatHTML'] == true) echo($this->FormatOutput($Output));
Note:
See TracChangeset
for help on using the changeset viewer.