'."\n". ''. ''. ''. ''. ''. ''. ''.$Config['Web']['Title'].''. ''. ''; $Output .= $Content; $Output .= '
Verze: '.$Revision.' ('.HumanDate($ReleaseTime).')'. '   Zdrojový kód   '. 'Historie změn
'; $Output .= ''; echo($Output); } function MakeLink($Target, $Title) { return(''.$Title.''); } function Table($Table) { $Result = ''; $Result .= ''; foreach($Table['Header'] as $Item) $Result .= ''; $Result .= ''; foreach($Table['Rows'] as $Row) { $Result .= ''; foreach($Row as $Item) $Result .= ''; $Result .= ''; } $Result .= '
'.$Item.'
'.$Item.'
'; return($Result); } function ShowEditTable($ClassName, $Values) { global $Classes, $Types; $Class = $Classes[$ClassName]; $Table = array( 'Header' => array('Položka', 'Hodnota'), 'Rows' => array(), ); foreach($Class as $Index => $Item) { if(!array_key_exists($Index, $Values)) $Values[$Index] = $Item['Default']; switch($Item['Type']) { case 'Boolean': if($Values[$Index] == 0) $Checked = ''; else $Checked = ' checked="yes"'; $Edit = ''; break; case 'String': $Edit = ''; break; case 'Integer': $Edit = ''; break; default: $Edit = 'Neznámý typ'; } array_push($Table['Rows'], array($Item['Caption'], $Edit)); } $Output = '

Tabulka '.$ClassName.'

'.Table($Table).MakeLink('?Operation=Add2', 'Přidat'); return($Output); }