Load != '') $BodyParam .= ' onload="'.$this->Load.'"';
if($this->Unload != '') $BodyParam .= ' onunload="'.$this->Unload.'"';
$Output = 'Config['Web']['Charset'].'"?>'."\n".
''.
''.
'
'.
''.
''.
''.$this->Config['Web']['Title'].' - '.$Path.'
'.$this->ShowTopPanel();
return($Output);
}
function ShowTopPanel()
{
$Output = '';
return($Output);
}
function ShowFooter()
{
global $ScriptTimeStart;
$Time = round($this->System->GetMicrotime() - $ScriptTimeStart, 2);
$Output = '';
return($Output);
}
function CenterPanel($Content)
{
$Output = '';
if($this->System->Modules['User']->Data['Id'] != $this->Config['Web']['UserAnonymousId'])
$Output .= '';
$Output .= ''.$Content.' | ';
if(!array_key_exists('Action', $_GET))
{
$NewsView = new NewsView($this->System);
$Output .= $NewsView->View();
}
$Output .= '
';
return($Output);
}
function UserMenu()
{
$Output = 'Uživatelské menu
';
if($this->System->Modules['User']->Data['Id'] != $this->Config['Web']['UserAnonymousId'])
{
$Output .= '';
$Output .= '';
//$Output .= '';
//$Output .= '';
//$Output .= '';
$Output .= '';
//$Output .= '';
if($this->System->Modules['Permission']->Check('News', 'Add'))
{
$Output .= '';
}
}
return($Output);
}
function GetOutput($Content)
{
$Output = $this->ShowHeader($this->FullTitle, $this->ShortTitle).
$this->CenterPanel($Content);
$Output .= $this->ShowFooter();
if($this->Config['Web']['FormatHTML'] == true) echo($this->FormatOutput($Output));
else echo($Output);
}
function SystemMessage($Text)
{
return('Systémová zpráva'.$Text.' |
');
//ShowFooter();
//die();
}
function AccessDenied()
{
return($this->GetOutput($this->SystemMessage($this->System->Translate('AccessDenied'))));
}
}