Moved some output, so that page_header.php can send headers.
[squirrelmail.git] / functions / page_header.php
CommitLineData
3302d0d4 1<?
2 /**
a09387f4 3 ** page_header.php
3302d0d4 4 **
5 ** Prints the page header (duh)
6 **
7 **/
8
44139266 9 // This is done to ensure that the character set is correct when
10 // receiving input from HTTP forms
11 header ("Content-Type: text/html; charset=iso-8859-1");
12
f8f9bed9 13 function displayPageHeader($color, $mailbox) {
3302d0d4 14 /** Here is the header and wrapping table **/
15 $shortBoxName = readShortMailboxName($mailbox, ".");
f8f9bed9 16 echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2>";
aa767081 17 echo " <TR BGCOLOR=\"$color[9]\" WIDTH=100%>";
a044cee3 18 echo " <TD ALIGN=left WIDTH=30%>";
32c7898c 19 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"signout.php\" TARGET=_top><B>" . _("Sign Out") . "</B></A></FONT>";
a044cee3 20 echo " </TD><TD ALIGN=right WIDTH=70%>";
32c7898c 21 echo " <FONT FACE=\"Arial,Helvetica\"><div align=right>" . _("Current Folder: ") . "<B>$shortBoxName&nbsp;</div></B></FONT>";
3302d0d4 22 echo " </TD>";
a044cee3 23 echo " </TR></TABLE>\n";
f8f9bed9 24 echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2><TR>";
a044cee3 25 echo " <TD ALIGN=left WIDTH=70%>";
32c7898c 26 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"compose.php\">" . _("Compose") . "</A></FONT>&nbsp&nbsp";
9f9d7d28 27 echo " <FONT FACE=\"Arial,Helvetica\">". _("Addresses") ."</FONT>&nbsp&nbsp";
32c7898c 28 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"folders.php\">" . _("Folders") . "</A></FONT>&nbsp&nbsp";
29 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"options.php\">" . _("Options") . "</A></FONT>&nbsp&nbsp";
a044cee3 30 echo " </TD><TD ALIGN=right WIDTH=30%>";
8dc0fb27 31 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"http://squirrelmail.sourceforge.net\" TARGET=_top>SquirrelMail</A></FONT>";
3302d0d4 32 echo " </TD>";
33 echo "</TABLE>";
34 }
35?>