X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fpage_header.php;h=8b1d1d9e531e024177c650f9476a821a57bbcf8c;hp=1af6a86f32de62f0b4baad6b7e156204d13ce1d6;hb=76e6ff644da9490671c2142a042165730ea6c0ea;hpb=7b086a8035ee92e3afe42857f6877522c13f2c76 diff --git a/functions/page_header.php b/functions/page_header.php index 1af6a86f..8b1d1d9e 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -53,10 +53,19 @@ do_hook ("generic_header"); - echo "$title"; + echo "$title\n"; echo "\n\n"; } + function displayInternalLink ($path, $text, $target="") { + global $base_uri; + + if ($target != "") + $target = " target=\"$target\""; + + echo ''.$text.''; + } + function displayPageHeader($color, $mailbox) { displayHtmlHeader ($color); @@ -66,30 +75,38 @@ /** Here is the header and wrapping table **/ $shortBoxName = readShortMailboxName($mailbox, "."); - $shortBoxName = stripslashes($shortBoxName); + $shortBoxName = sqStripSlashes($shortBoxName); + echo "\n"; echo "\n"; echo " \n"; - echo " \n"; echo " \n"; echo "
\n"; - echo " " . _("Sign Out") . "\n"; - echo " \n"; - echo "
" . _("Current Folder: ") . "$shortBoxName 
\n"; + echo "
\n"; + displayInternalLink ("src/signout.php", _("Sign Out"), "_top"); + echo " \n"; + echo "
" . _("Current Folder") . ": $shortBoxName 
\n"; echo "
\n\n"; echo "\n"; echo " \n"; - echo " \n"; echo " \n"; echo "
\n"; - $urlMailbox = $mailbox; - echo " " . _("Compose") . "  \n"; - echo " " . _("Addresses") . "  \n"; - echo " " . _("Folders") . "  \n"; - echo " " . _("Options") . "  \n"; - echo " " . _("Help") . "  "; + 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 " SquirrelMail\n"; echo "
\n\n";