Changeset 130 for www/style.php
- Timestamp:
- Jan 5, 2009, 7:35:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/style.php
r114 r130 105 105 'jidelna' => array('', 106 106 'index.php' => 'Jídelníček', 107 'menuedit.php' => 'Editace jídelníčku', 107 'menuedit.php' => 'Editace jídelníčku', 108 108 ), 109 109 'backup' => array('', 110 'index.php' => 'Nastavení zálohování', 110 'index.php' => 'Nastavení zálohování', 111 111 ), 112 112 'mapa.php' => 'Mapa webu', … … 119 119 array_shift($ScriptNameParts); 120 120 foreach($ScriptNameParts as $ScriptNamePart) 121 { 122 //echo($ScriptNamePart.'<br>'); 123 if(is_array($PathTreeItem[$ScriptNamePart])) 121 { 122 if(is_array($PathTreeItem[$ScriptNamePart])) 124 123 { 125 124 $PathTreeItem = $PathTreeItem[$ScriptNamePart]; … … 127 126 if($PathTreeItem[0] != '') 128 127 $Navigation .= '<a href="'.$Config['Web']['RootFolder'].$PathTreePath.'">'.$PathTreeItem[0].'</a> > '; 129 } else 128 } else 130 129 { 131 130 if($PathTreeItem[$ScriptNamePart] != '') 132 131 $Navigation .= '<a href="'.$Config['Web']['RootFolder'].$PathTreePath.$ScriptNamePart.'">'.$PathTreeItem[$ScriptNamePart].'</a> > '; 133 132 } 134 } 133 } 135 134 $Navigation = substr($Navigation, 0, -6); 136 135 137 $Output = '<?xml version="1.0" encoding="'.$Config['Web']['Charset'].'"?>'. 138 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. 139 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'. 140 '<head><link rel="stylesheet" href="'.$Config['Web']['RootFolder'].'/style.css" type="text/css" media="all" />'. 141 '<script type="text/javascript" src="'.$Config['Web']['RootFolder'].'/global.js" />'.142 '<title>'.$Config['Web']['Title'].' - '.$Path.'</title> 143 </head><body style="font-family: sans-serif;" '.$BodyParam.'>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 '<head><link rel="stylesheet" href="'.$Config['Web']['RootFolder'].'/style.css" type="text/css" media="all" />'."\n". 140 '<script type="text/javascript" src="'.$Config['Web']['RootFolder'].'/global.js"></script>'."\n". 141 '<title>'.$Config['Web']['Title'].' - '.$Path.'</title>'."\n". 142 '</head><body style="font-family: sans-serif;" '.$BodyParam.'> 144 143 <div id="Title">'.$Title.'</div> 145 144 <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 // if($User->User['Id'] == $User->AnonymousUserId) 146 //$Output .= '<a href="'.$Config['Web']['RootFolder'].'?Action=LoginForm">Přihlášení</a> <a href="'.$Config['Web']['RootFolder'].'?Action=RegistrationForm">Registrace</a>'; 147 // else $Output .= $User->User['Name'].' <a href="?Action=Logout">Odhlásit</a> <a href="?Action=UserOptions">Nastavení</a>'; 148 $Output .= ' </div></div>'; 150 149 echo($Output); 151 150 } … … 154 153 { 155 154 global $Time_Start; 155 156 156 $Time = floor((GetMicrotime() - $Time_Start) * 100) / 100; 157 157 echo('<div id="Footer">
Note:
See TracChangeset
for help on using the changeset viewer.