Changeset 148 for www/style.php


Ignore:
Timestamp:
Feb 15, 2009, 7:59:35 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Přepracován systém generování zobrazení výstupu. Pro nový systím přepsáno mnoho stránek.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/style.php

    r140 r148  
    1414function ShowHeader($Title, $Path, $BodyParam = '')
    1515{
    16   global $Time_Start, $refresh, $Config, $User, $PathTree;
     16  global $Time_Start, $refresh, $Config, $User, $PathTree, $Database, $System;
    1717
    1818  $Time_Start = GetMicrotime();         // Zjisti počáteční čas
     
    134134  $Navigation = substr($Navigation, 0, -6);
    135135
    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.'>
    144144<div id="Title">'.$Title.'</div>
    145 <div id="Navigation"><span id="MenuItem"><strong>Navigace &gt;&gt;</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 .= '&nbsp;</div></div>';
     145<div class="Navigation"><span class="MenuItem"><strong>Navigace &gt;&gt;</strong> '.$Navigation.'</span><div class="MenuItem2">&nbsp;';
     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>';
    150150  echo($Output);
    151151}
     
    157157  $Time = floor((GetMicrotime() - $Time_Start) * 100) / 100;
    158158  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>
    160160  </div>');
    161161  //ShowArray($GLOBALS);
     
    163163}
    164164
     165
    165166?>
Note: See TracChangeset for help on using the changeset viewer.