Ignore:
Timestamp:
Jul 27, 2014, 9:05:14 PM (10 years ago)
Author:
chronos
Message:
  • Opraveno: SQL aktualizace 40 plus chybějící tabulka MeasureMethod.
  • Opraveno: Neplatné ukázkové konfigurační soubory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/View/Page.php

    r40 r46  
    1111
    1212  function ShowHeader($Title, $Path)
    13   {   
     13  {
    1414    $BodyParam = '';
    1515    if($this->Load != '') $BodyParam .= ' onload="'.$this->Load.'"';
    1616    if($this->Unload != '') $BodyParam .= ' onunload="'.$this->Unload.'"';
    1717    $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>'.
    2020    '<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'].'" />'.
    2222    '<script type="text/javascript" src="Application/Style/Global.js"></script>'.
    2323    '<title>'.$this->Config['Web']['Title'].' - '.$Path.'</title>
     
    2525    return($Output);
    2626  }
    27  
     27
    2828  function ShowFooter()
    2929  {
    3030    global $ScriptTimeStart;
    31    
     31
    3232    $Time = round($this->System->GetMicrotime() - $ScriptTimeStart, 2);
    3333    $Output = '<div class="Footer">
     
    3939    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>';
    4040  $Output .= '</ul></div></body></html>';
    41     return($Output); 
     41    return($Output);
    4242  }
    43  
     43
    4444  function GetOutput($Content)
    45   { 
     45  {
    4646    global $Config;
    47    
     47
    4848    $Output = $this->ShowHeader($this->FullTitle, $this->ShortTitle).$Content;
    4949    $Output .= $this->ShowFooter();
     
    5454
    5555  function SystemMessage($Text)
    56   { 
     56  {
    5757    return('<table align="center"><tr><td><div class="SystemMessage"><h3>Systémová zpráva</h3><div>'.$Text.'</div></div</td></tr></table>');
    5858    //ShowFooter();
    5959    //die();
    6060  }
    61  
     61
    6262  function AccessDenied()
    6363  {
    64     return($this->GetOutput($this->SystemMessage($this->System->Translate('AccessDenied')))); 
     64    return($this->GetOutput($this->SystemMessage($this->System->Translate('AccessDenied'))));
    6565  }
    6666}
Note: See TracChangeset for help on using the changeset viewer.