From aaf168225bc5cc8def549a0a7e3d916d56c49751 Mon Sep 17 00:00:00 2001 From: brong Date: Tue, 19 Feb 2002 01:41:48 +0000 Subject: [PATCH] Move javascript from between and into where it belongs. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2459 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/page_header.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/functions/page_header.php b/functions/page_header.php index 5ce41514..b1bcd781 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -51,7 +51,6 @@ function displayPageHeader($color, $mailbox) { global $delimiter, $hide_sm_attributions, $base_uri, $PHP_SELF, $frame_top, $compose_new_win, $username, $datadir; - displayHtmlHeader (); $module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 ); if (!isset($frame_top)) { @@ -65,9 +64,10 @@ function displayPageHeader($color, $mailbox) { case 'src/search.php': $pos = getPref($data_dir, $username, 'search_pos', 0 ) - 1; $onload = "onLoad=\"document.forms[$pos].elements[2].focus();\""; + displayHtmlHeader (); break; default: - echo '\n"; $onload = "onLoad=\"checkForm();\""; + displayHtmlHeader ('Squirrelmail', $js); break; } + echo "\n\n"; /** Here is the header and wrapping table **/ $shortBoxName = readShortMailboxName($mailbox, $delimiter); @@ -167,7 +169,6 @@ function compose_Header($color, $mailbox) { global $delimiter, $hide_sm_attributions, $base_uri, $PHP_SELF, $frame_top, $compose_new_win; - displayHtmlHeader (_("Compose")); $module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 ); if (!isset($frame_top)) { @@ -181,9 +182,10 @@ function compose_Header($color, $mailbox) { case 'src/search.php': $pos = getPref($data_dir, $username, 'search_pos', 0 ) - 1; $onload = "onLoad=\"document.forms[$pos].elements[2].focus();\""; + displayHtmlHeader (_("Compose")); break; default: - echo '\n"; $onload = "onLoad=\"checkForm();\""; + displayHtmlHeader (_("Compose"), $js); break; } -- 2.25.1