Moving help files from lt to lt_LT
[squirrelmail.git] / functions / page_header.php
index c6a1f4b0d0280312501b89767cea665c6db886cd..c3d9a66643b51ef15f26752b1e7f0119eb7b2859 100644 (file)
@@ -1,18 +1,35 @@
 <?php
-   /**
-    **  page_header.php
-    **
-    **  Copyright (c) 1999-2001 The Squirrelmail Development Team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Prints the page header (duh)
-    **
-    **  $Id$
-    **/
 
-   // Always set up the language before calling these functions
-
-   function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
+/**
+ * page_header.php
+ *
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Prints the page header (duh)
+ *
+ * $Id$
+ */
+
+/*****************************************************************/
+/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!!           ***/
+/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION.             ***/
+/***    + Base level indent should begin at left margin, as    ***/
+/***      the first line of the function definition below.     ***/
+/***    + All identation should consist of four space blocks   ***/
+/***    + Tab characters are evil.                             ***/
+/***    + all comments should use "slash-star ... star-slash"  ***/
+/***      style -- no pound characters, no slash-slash style   ***/
+/***    + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD      ***/
+/***      ALWAYS USE { AND } CHARACTERS!!!                     ***/
+/***    + Please use ' instead of ", when possible. Note "     ***/
+/***      should always be used in _( ) function calls.        ***/
+/*** Thank you for your help making the SM code more readable. ***/
+/*****************************************************************/
+
+// Always set up the language before calling these functions
+function displayHtmlHeader
+    ($title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
 
         global $theme_css;
 
 
       /** Here is the header and wrapping table **/
       $shortBoxName = readShortMailboxName($mailbox, $delimiter);
-      echo "<A NAME=pagetop></A>\n".
-           "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 WIDTH=\"100%\" CELLSPACING=0 CELLPADDING=2>\n".
-           "   <TR BGCOLOR=\"$color[9]\" >\n".
-           "      <TD ALIGN=left><b>\n";
-      displayInternalLink ("src/signout.php", _("Sign Out"), "_top");
-      echo "      </b></TD><TD ALIGN=right>\n".
-           '         ' . _("Current Folder") . ": <B>$shortBoxName&nbsp;</B>\n".
-           "      </TD>\n".
-           "   </TR>\n".
-           "   <TR BGCOLOR=\"$color[4]\">\n".
-           "      <TD ALIGN=left>\n";
+      echo "<A NAME=pagetop></A>\n"
+         . "<TABLE BGCOLOR=\"$color[4]\" BORDER=0 WIDTH=\"100%\" CELLSPACING=0 CELLPADDING=2>\n"
+         . "   <TR BGCOLOR=\"$color[9]\" >\n"
+         . "      <TD ALIGN=left>\n"
+         . '         ' . _("Current Folder") . ": <B>$shortBoxName&nbsp;</B>\n"
+         . "      </TD>\n"
+         . "      <TD ALIGN=right><b>\n";
+      displayInternalLink ('src/signout.php', _("Sign Out"), '_top');
+      echo "      </b></TD>\n"
+         . "   </TR>\n"
+         . "   <TR BGCOLOR=\"$color[4]\">\n"
+         . "      <TD ALIGN=left>\n";
       $urlMailbox = urlencode($mailbox);
       displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), "right");
       echo "&nbsp;&nbsp;\n";
       // echo "</td></tr></table>";
   }
 
-?>
\ No newline at end of file
+?>