X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fpage_header.php;h=7b15f38f860de34b16c8f3089f61c2902f024945;hb=7e343a7db5fd4347901ff8fcaf529933dbc29f1c;hp=1af6a86f32de62f0b4baad6b7e156204d13ce1d6;hpb=7b086a8035ee92e3afe42857f6877522c13f2c76;p=squirrelmail.git diff --git a/functions/page_header.php b/functions/page_header.php index 1af6a86f..7b15f38f 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -57,6 +57,15 @@ echo "\n\n"; } + function displayInternalLink ($path, $text, $target="") { + global $base_uri; + + if ($target != "") + $target = " target=\"$target\""; + + echo ''.$text.''; + } + function displayPageHeader($color, $mailbox) { displayHtmlHeader ($color); @@ -69,27 +78,32 @@ $shortBoxName = stripslashes($shortBoxName); echo "\n"; echo " \n"; - echo " \n"; echo " \n"; echo "
\n"; - echo " " . _("Sign Out") . "\n"; - echo " \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"; + echo " \n"; $urlMailbox = $mailbox; - echo " " . _("Compose") . "  \n"; - echo " " . _("Addresses") . "  \n"; - echo " " . _("Folders") . "  \n"; - echo " " . _("Options") . "  \n"; - echo " " . _("Help") . "  "; + 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/help.php", _("Help"), "right"); + echo "  \n"; do_hook("menuline"); - echo " \n"; - echo " SquirrelMail\n"; + echo " \n"; + echo " SquirrelMail\n"; echo "
\n\n";