Changeset 46 for trunk/Application/View/Page.php
- Timestamp:
- Jul 27, 2014, 9:05:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/View/Page.php
r40 r46 11 11 12 12 function ShowHeader($Title, $Path) 13 { 13 { 14 14 $BodyParam = ''; 15 15 if($this->Load != '') $BodyParam .= ' onload="'.$this->Load.'"'; 16 16 if($this->Unload != '') $BodyParam .= ' onunload="'.$this->Unload.'"'; 17 17 $Output = '<?xml version="1.0" encoding="'.$this->Config['Web']['Charset'].'"?>'."\n". 18 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'.19 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'.18 '<!DOCTYPE html>'. 19 '<html>'. 20 20 '<head><link rel="stylesheet" href="Application/Style/Style.css" type="text/css" media="all" />'. 21 '<meta http-equiv="content-type" content=" application/xhtml+xml; charset='.$this->Config['Web']['Charset'].'" />'.21 '<meta http-equiv="content-type" content="text/html; charset='.$this->Config['Web']['Charset'].'" />'. 22 22 '<script type="text/javascript" src="Application/Style/Global.js"></script>'. 23 23 '<title>'.$this->Config['Web']['Title'].' - '.$Path.'</title> … … 25 25 return($Output); 26 26 } 27 27 28 28 function ShowFooter() 29 29 { 30 30 global $ScriptTimeStart; 31 31 32 32 $Time = round($this->System->GetMicrotime() - $ScriptTimeStart, 2); 33 33 $Output = '<div class="Footer"> … … 39 39 if($this->Config['Web']['ShowRuntimeInfo'] == true) $Output .= '<li>Doba generování: '.$Time.' s / '.ini_get('max_execution_time').' s</li><li>Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B</li>'; 40 40 $Output .= '</ul></div></body></html>'; 41 return($Output); 41 return($Output); 42 42 } 43 43 44 44 function GetOutput($Content) 45 { 45 { 46 46 global $Config; 47 47 48 48 $Output = $this->ShowHeader($this->FullTitle, $this->ShortTitle).$Content; 49 49 $Output .= $this->ShowFooter(); … … 54 54 55 55 function SystemMessage($Text) 56 { 56 { 57 57 return('<table align="center"><tr><td><div class="SystemMessage"><h3>Systémová zpráva</h3><div>'.$Text.'</div></div</td></tr></table>'); 58 58 //ShowFooter(); 59 59 //die(); 60 60 } 61 61 62 62 function AccessDenied() 63 63 { 64 return($this->GetOutput($this->SystemMessage($this->System->Translate('AccessDenied')))); 64 return($this->GetOutput($this->SystemMessage($this->System->Translate('AccessDenied')))); 65 65 } 66 66 }
Note:
See TracChangeset
for help on using the changeset viewer.