updated functions
[squirrelmail.git] / functions / page_header.php3
diff --git a/functions/page_header.php3 b/functions/page_header.php3
new file mode 100644 (file)
index 0000000..1dfb4b7
--- /dev/null
@@ -0,0 +1,30 @@
+<?
+   /**
+    **  page_header.php3
+    **
+    **  Prints the page header (duh)
+    **
+    **/
+
+   function displayPageHeader($mailbox) {
+      /** Here is the header and wrapping table **/
+      $shortBoxName = readShortMailboxName($mailbox, ".");
+      echo "<TABLE BGCOLOR=FFFFFF BORDER=0 COLS=2 WIDTH=100% CELLSPACING=0 CELLPADDING=2>";
+      echo "   <TR BGCOLOR=A0B8C8 WIDTH=50%>";
+      echo "      <TD ALIGN=left>";
+      echo "         <FONT FACE=\"Arial,Helvetica\" SIZE=-1><A HREF=\"signout.php3\" TARGET=_top><B>Sign Out</B></A></FONT>";
+      echo "      </TD><TD ALIGN=right WIDTH=50%>";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><div align=right>Current Folder: <B>$shortBoxName</div></B></FONT>";
+      echo "      </TD>";
+      echo "   </TR><TR>";
+      echo "      <TD ALIGN=left WIDTH=50%>";
+      echo "         <FONT FACE=\"Arial,Helvetica\">Compose</FONT>&nbsp&nbsp";
+      echo "         <FONT FACE=\"Arial,Helvetica\">Addresses</FONT>&nbsp&nbsp";
+      echo "         <FONT FACE=\"Arial,Helvetica\">Options</FONT>&nbsp&nbsp";
+      echo "      </TD><TD ALIGN=right WIDTH=50%>";
+      echo "         <FONT FACE=\"Arial,Helvetica\"><A HREF=\"http://adam.usa.om.org/~luke/main.php3\" TARGET=_top>Todos & Bugs</A></FONT>&nbsp&nbsp";
+      echo "         <FONT FACE=\"Arial,Helvetica\">Help!</FONT>";
+      echo "      </TD>";
+      echo "</TABLE>";
+  }
+?>