Changeset 148 for www/style.php
- Timestamp:
- Feb 15, 2009, 7:59:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/style.php
r140 r148 14 14 function ShowHeader($Title, $Path, $BodyParam = '') 15 15 { 16 global $Time_Start, $refresh, $Config, $User, $PathTree ;16 global $Time_Start, $refresh, $Config, $User, $PathTree, $Database, $System; 17 17 18 18 $Time_Start = GetMicrotime(); // Zjisti počáteční čas … … 134 134 $Navigation = substr($Navigation, 0, -6); 135 135 136 $Output = '<?xml version="1.0" encoding="'.$Config['Web']['Charset'].'"?>'. "\n".137 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. "\n".138 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'. "\n".139 '< meta http-equiv="content-type" content="text/html; charset=utf-8" />'.140 '< head><link rel="stylesheet" href="'.$Config['Web']['RootFolder'].'/style.css" type="text/css" media="all" />'."\n".141 '<script type="text/javascript" src="'.$Config['Web']['RootFolder'].'/global.js"></script>'. "\n".142 '<title>'.$Config['Web']['Title'].' - '.$Path.'</title> '."\n".143 '</head><body style="font-family: sans-serif;"'.$BodyParam.'>136 $Output = '<?xml version="1.0" encoding="'.$Config['Web']['Charset'].'"?>'. 137 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. 138 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'. 139 '<head><link rel="stylesheet" href="'.$Config['Web']['RootFolder'].'/style.css" type="text/css" media="all" />'. 140 '<meta http-equiv="content-type" content="text/html; charset='.$Config['Web']['Charset'].'" />'. 141 '<script type="text/javascript" src="'.$Config['Web']['RootFolder'].'/global.js"></script>'. 142 '<title>'.$Config['Web']['Title'].' - '.$Path.'</title> 143 </head><body'.$BodyParam.'> 144 144 <div id="Title">'.$Title.'</div> 145 <div id="Navigation"><span id="MenuItem"><strong>Navigace >></strong> '.$Navigation.'</span><div id="MenuItem2">';146 // if($User->User['Id'] == $User->AnonymousUserId) 147 //$Output .= '<a href="'.$Config['Web']['RootFolder'].'?Action=LoginForm">Přihlášení</a> <a href="'.$Config['Web']['RootFolder'].'?Action=RegistrationForm">Registrace</a>';148 // else $Output .= $User->User['Name'].' <a href="?Action=Logout">Odhlásit</a> <a href="?Action=UserOptions">Nastavení</a>';149 $Output .= ' </div></div>';145 <div class="Navigation"><span class="MenuItem"><strong>Navigace >></strong> '.$Navigation.'</span><div class="MenuItem2"> '; 146 //if($System->Modules['User']->User['Id'] == $System->Modules['User']->AnonymousUserId) 147 // $Output .= '<a href="'.$Config['Web']['RootFolder'].'?Action=LoginForm">Přihlášení</a> <a href="'.$Config['Web']['RootFolder'].'?Action=RegistrationForm">Registrace</a>'; 148 // else $Output .= $System->Modules['User']->User['Name'].' <a href="?Action=Logout">Odhlásit</a> <a href="?Action=UserOptions">Nastavení</a>'; 149 $Output .= '</div></div>'; 150 150 echo($Output); 151 151 } … … 157 157 $Time = floor((GetMicrotime() - $Time_Start) * 100) / 100; 158 158 echo('<div id="Footer"> 159 <i>| Web mistr: Jiří Hajda | e-mail: robie@centrum.cz | ICQ: 277158770| Vygenerováno za '.$Time.' s | Verze: 1.1 | Úprava skriptu: '.date('j.n.Y',filemtime($_SERVER['SCRIPT_FILENAME'])).' |</i>159 <i>| Správa webu: Jiří Hajda | e-mail: robie@centrum.cz | Vygenerováno za '.$Time.' s | Verze: 1.1 | Úprava skriptu: '.date('j.n.Y',filemtime($_SERVER['SCRIPT_FILENAME'])).' |</i> 160 160 </div>'); 161 161 //ShowArray($GLOBALS); … … 163 163 } 164 164 165 165 166 ?>
Note:
See TracChangeset
for help on using the changeset viewer.