X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=functions%2Fpage_header.php;h=1d2734be24b34bd57f2e12767a97773a38c78ed3;hb=ec291321c8699ff8f0735c96dc6c0b013da6cdc1;hp=b398c3474902dbfca5afa01d82059810179b95b4;hpb=fb3b73a890811507e0c0e6ba597e80cd99693c3e;p=squirrelmail.git diff --git a/functions/page_header.php b/functions/page_header.php index b398c347..1d2734be 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -1,102 +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 "