function PrintHtmlHeader($logout) { $style = new Style(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >' . "\n"; echo ' <head>' . "\n"; echo ' <title>Shrew Gallery</title>' . "\n"; echo ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n"; echo '<style type="text/css">' . "\n"; echo $style->Generate(); echo '</style>' . "\n"; echo ' </head>' . "\n"; echo ' <body>' . "\n"; echo ' <div id="page">' . "\n"; if ($logout) { echo ' <div id=logout><a href=index.php?want=logout >Déconnection</a></div>' . "\n"; } echo ' <h1>Shrew gallery</h1>' . "\n"; }
function PrintHtmlHeader() { $style = new Style(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >' . "\n"; echo ' <head>' . "\n"; echo ' <title>Shrew Gallery</title>' . "\n"; echo ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n"; echo '<style type="text/css">' . "\n"; echo $style->Generate(); echo '</style>' . "\n"; echo ' </head>' . "\n"; echo ' <body>' . "\n"; echo ' <div id="page">' . "\n"; echo '<div id=top_menu>' . "\n"; if ($this->currentAlbum && $this->currentAlbum->GetPath() != '.') { echo ' <a href="' . LinkManager::GetInstance()->GenerateParent() . '" >Album parent</a> ' . "\n"; } if (LoginManager::GetInstance()->GetCurrentLogin() != 'public') { echo ' <a href="' . LinkManager::GetInstance()->GenerateWant('logout') . '" >Déconnection (' . LoginManager::GetInstance()->GetCurrentLogin() . ')</a>' . "\n"; } echo '</div>' . "\n"; echo ' <h1>Shrew gallery</h1>' . "\n"; }