X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fpage_header.php;h=59efe1ef96c6200f0d1516c36260b185cc3587c1;hb=dad8c15a03d38a6f5a3091cb3a9291b4a6ffc684;hp=9e95b3b364f6ac63f1ffff24e3f02e257a9e36df;hpb=ebab5342942eceb498319c31a07fc58db78585e1;p=squirrelmail.git diff --git a/functions/page_header.php b/functions/page_header.php index 9e95b3b3..59efe1ef 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -1,104 +1,499 @@ '; - echo "\n\n"; - echo "\n"; - echo "
\n"; - if ($theme_css != "") { - printf ('', - $theme_css); - echo "\n"; + +/** + * page_header.php + * + * Copyright (c) 1999-2002 The SquirrelMail Project Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Prints the page header (duh) + * + * $Id$ + */ + +require_once('../functions/strings.php'); +require_once('../functions/imap_utf7_decode_local.php'); +require_once('../functions/html.php'); +require_once('../class/html.class'); + +/* Always set up the language before calling these functions */ +function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) { + + global $theme_css, $custom_css, $base_uri; + + echo '' . + "\n\n\n\n"; + + if ( !isset( $custom_css ) || $custom_css == 'none' ) { + if ($theme_css != '') { + echo ""; + } + } else { + echo ''; + } + + if ($do_hook) { + do_hook ("generic_header"); + } + + echo "\n\n"; - displayInternalLink ("src/signout.php", _("Sign Out"), "_top"); - echo " | \n";
- echo " " . _("Current Folder") . ": $shortBoxName \n";
- echo " | \n";
- echo "
\n"; - $urlMailbox = urlencode($mailbox); - displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), "right"); - echo " \n"; - displayInternalLink ("src/addressbook.php", _("Addresses"), "right"); - echo " \n"; - displayInternalLink ("src/folders.php", _("Folders"), "right"); - echo " \n"; - displayInternalLink ("src/options.php", _("Options"), "right"); - echo " \n"; - displayInternalLink ("src/search.php?mailbox=$urlMailbox", _("Search"), "right"); - echo " \n"; - displayInternalLink ("src/help.php", _("Help"), "right"); - echo " \n"; - - do_hook("menuline"); - - echo " | \n"; - echo " SquirrelMail\n"; - echo " | \n"; - echo "