Changeset 77 for www/style.php
- Timestamp:
- May 27, 2008, 10:14:21 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/style.php
r67 r77 4 4 function ShowHeader($Title, $Path, $BodyParam = '') 5 5 { 6 global $Time_Start, $refresh, $Config ;6 global $Time_Start, $refresh, $Config, $User; 7 7 8 8 $Time_Start = GetMicrotime(); // Zjisti počáteční čas … … 77 77 'subscription.php' => 'RSS aktuality', 78 78 ), 79 'sluzby.php' => 'Služby <',79 'sluzby.php' => 'Služby', 80 80 'history.php' => 'Historie', 81 81 'sunrisechat' => array('', … … 121 121 $Navigation = substr($Navigation, 0, -6); 122 122 123 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 124 <html><head> 125 <meta http-equiv="Content-Language" content="cs"> 126 <meta http-equiv="Content-Type" content="text/html; charset='.$Config['Web']['Charset'].'">'); 127 if (isset($refresh)) echo('<meta http-equiv="Refresh" content="'.$refresh."\">\n"); 128 // <link href="style.css" rel="stylesheet" type="text/css"> 129 echo("\n".' <title>Centrála - '.$Path.'</title> 123 $Output = '<?xml version="1.0" encoding="'.$Config['Web']['Charset'].'"?>'. 124 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. 125 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'. 126 '<head><link rel="stylesheet" href="'.$Config['Web']['RootFolder'].'/style.css" type="text/css" media="all" />'. 127 '<script type="text/javascript" src="'.$Config['Web']['RootFolder'].'/global.js" />'. 128 '<title>'.$Config['Web']['Title'].' - '.$Path.'</title> 130 129 </head><body style="font-family: sans-serif;" '.$BodyParam.'> 131 <div style="padding: 3px; font-size: 20px; border-style: solid; border-color: blue; border-width: 1; background-color: #F0F0FF; margin-bottom: 4px;">'.$Title.'</div> 132 <div style="border-style: solid; border-bottom-color: gray; border-width: 0 0 1 0; margin-bottom: 3px; padding-bottom: 2px;"><strong>Navigace >></strong> '.$Navigation.'</div>'); 130 <div id="Title">'.$Title.'</div> 131 <form id="Navigation" action="?Action=Login" method="post"><div> 132 <span id="MenuItem"><strong>Navigace >></strong> '.$Navigation.'</span><div id="MenuItem2">Uživatel: '.$User->User['Name'].'</div></div></form>'; 133 echo(FormatOutput($Output)); 133 134 } 134 135 … … 136 137 { 137 138 global $Time_Start; 138 $Time = floor((GetMicrotime() - $Time_Start) *100)/100;139 echo('<div style="border-style: solid; border-top-color: gray; border-width: 1 0 0 0; margin-top: 7px; padding-top: 2px;" align="center">140 <i style="font-size: 10;">| Web mistr: Jiří Hajda | e-mail: robie@centrum.cz | ICQ: 277158770 | Vygenerováno za '.$Time.' s | Verze: 1.0 | Naposledy aktualizováno: '.date('j.n.Y',filemtime($_SERVER['SCRIPT_FILENAME'])).' |</i>139 $Time = floor((GetMicrotime() - $Time_Start) * 100) / 100; 140 echo('<div id="Footer"> 141 <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> 141 142 </div>'); 142 143 //ShowArray($GLOBALS);
Note:
See TracChangeset
for help on using the changeset viewer.