Changeset 63 for trunk/View.php
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 nbproject2 Config.php3 1 .settings 4 2 .project 5 3 .buildpath 4 .htaccess
-
- Property svn:ignore
-
trunk/View.php
r56 r63 5 5 class BaseView extends View 6 6 { 7 var$TimeStart;8 var$FormatHTML = false;9 var$ShowRuntimeInfo = false;10 var$ShowNavigation = false;11 var$BasicHTML = false;12 var$ParentClass = '';13 var $ShortTitle;14 var $FullTitle;15 var$Encoding;16 var$Style;7 public int $TimeStart; 8 public bool $FormatHTML = false; 9 public bool $ShowRuntimeInfo = false; 10 public bool $ShowNavigation = false; 11 public bool $BasicHTML = false; 12 public string $ParentClass = ''; 13 public string $Title; 14 public string $Description; 15 public string $Encoding; 16 public string $Style; 17 17 18 18 function __construct($System) … … 36 36 } 37 37 38 function SystemMessage( $Title, $Text)38 function SystemMessage(string $Title, string $Text): string 39 39 { 40 40 return '<table align="center"><tr><td><div class="SystemMessage"><h3>'.$Title.'</h3><div>'.$Text.'</div></div></td></tr></table>'; … … 43 43 } 44 44 45 function ShowNavigation( $Page)45 function ShowNavigation(Page $Page): string 46 46 { 47 47 if (array_key_exists('REQUEST_URI', $_SERVER)) … … 71 71 } 72 72 73 function ShowHeader($Page) 74 { 75 $Title = $Page->FullTitle; 76 $Path = $Page->ShortTitle; 73 function ShowHeader(Page $Page): string 74 { 75 $Path = $Page->Title; 77 76 78 77 $Navigation = $this->ShowNavigation($Page); … … 99 98 100 99 $Output .= '</head><body'.$BodyParam.'>'; 101 $Output .= $this->System->ShowMenu();100 $Output .= Core::Cast($this->System)->ShowMenu(); 102 101 if ($this->BasicHTML == false) 103 102 { … … 115 114 } 116 115 117 function ShowFooter() 116 function ShowFooter(): string 118 117 { 119 118 global $ScriptTimeStart, $Revision, $ReleaseTime; … … 125 124 $Output .= '<div class="Footer">'. 126 125 '<i>'; 127 $Output .= ' Kontakt: <a href="mailto:'.$this->System->Config['Web']['AdminEmail'].'">'.$this->System->Config['Web']['AdminEmail'].'</a> '; 128 $Output .= ' <a href="https://app.zdechov.net/tanec/">Zdrojový kód</a> '; 126 $Output .= ' Projekt <a href="https://app.zdechov.net/tanec/">Tanec</a> | '; 127 $Output .= ' Správce: <a href="mailto:'.$this->System->Config['Web']['AdminEmail'].'">'.$this->System->Config['Web']['AdminEmail'].'</a> '; 128 129 129 //$Output .= ' Verze: '.$Revision.' ('.HumanDate($ReleaseTime).') '; 130 130 if ($this->ShowRuntimeInfo == true) … … 139 139 } 140 140 141 function GetOutput( $Page)141 function GetOutput(Page $Page): string 142 142 { 143 143 $Page->OnSystemMessage = array($this->System->BaseView, 'SystemMessage'); … … 152 152 } 153 153 154 function NewPage( $ClassName)154 function NewPage(string $ClassName): Page 155 155 { 156 156 $Page = new $ClassName(); … … 162 162 163 163 // XML formating function 164 function FormatOutput( $s)164 function FormatOutput(string $s): string 165 165 { 166 166 $out = '';
Note:
See TracChangeset
for help on using the changeset viewer.