b5d71d5e5c0095658b8ea2f39def69e5d228a645
[squirrelmail.git] / functions / page_header.php
1 <?
2 /**
3 ** page_header.php
4 **
5 ** Prints the page header (duh)
6 **
7 **/
8
9 function displayPageHeader($color, $mailbox) {
10 /** Here is the header and wrapping table **/
11 $shortBoxName = readShortMailboxName($mailbox, ".");
12 echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2>";
13 echo " <TR BGCOLOR=\"$color[9]\" WIDTH=100%>";
14 echo " <TD ALIGN=left WIDTH=30%>";
15 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"signout.php\" TARGET=_top><B>Sign Out</B></A></FONT>";
16 echo " </TD><TD ALIGN=right WIDTH=70%>";
17 echo " <FONT FACE=\"Arial,Helvetica\"><div align=right>Current Folder: <B>$shortBoxName&nbsp;</div></B></FONT>";
18 echo " </TD>";
19 echo " </TR></TABLE>\n";
20 echo "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2><TR>";
21 echo " <TD ALIGN=left WIDTH=70%>";
22 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"compose.php\">Compose</A></FONT>&nbsp&nbsp";
23 echo " <FONT FACE=\"Arial,Helvetica\">Addresses</FONT>&nbsp&nbsp";
24 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"folders.php\">Folders</A></FONT>&nbsp&nbsp";
25 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"options.php\">Options</A></FONT>&nbsp&nbsp";
26 echo " </TD><TD ALIGN=right WIDTH=30%>";
27 echo " <FONT FACE=\"Arial,Helvetica\"><A HREF=\"http://squirrelmail.sourceforge.net\" TARGET=_top>SquirrelMail</A></FONT>";
28 echo " </TD>";
29 echo "</TABLE>";
30 }
31 ?>