|
@@ -51,7 +51,6 @@ function displayPageHeader($color, $mailbox) {
|
|
|
|
|
|
global $delimiter, $hide_sm_attributions, $base_uri, $PHP_SELF, $frame_top, $compose_new_win, $username, $datadir;
|
|
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 );
|
|
$module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 );
|
|
if (!isset($frame_top)) {
|
|
if (!isset($frame_top)) {
|
|
@@ -65,9 +64,10 @@ function displayPageHeader($color, $mailbox) {
|
|
case 'src/search.php':
|
|
case 'src/search.php':
|
|
$pos = getPref($data_dir, $username, 'search_pos', 0 ) - 1;
|
|
$pos = getPref($data_dir, $username, 'search_pos', 0 ) - 1;
|
|
$onload = "onLoad=\"document.forms[$pos].elements[2].focus();\"";
|
|
$onload = "onLoad=\"document.forms[$pos].elements[2].focus();\"";
|
|
|
|
+ displayHtmlHeader ();
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
- echo '<script language="JavaScript">' .
|
|
|
|
|
|
+ $js = '<script language="JavaScript" type="text/javascript">' .
|
|
"\n<!--\n" .
|
|
"\n<!--\n" .
|
|
"function checkForm() {\n".
|
|
"function checkForm() {\n".
|
|
"var f = document.forms.length;\n".
|
|
"var f = document.forms.length;\n".
|
|
@@ -97,19 +97,21 @@ function displayPageHeader($color, $mailbox) {
|
|
$width = (.9*$width);
|
|
$width = (.9*$width);
|
|
$pix_width = intval($width).'0';
|
|
$pix_width = intval($width).'0';
|
|
}
|
|
}
|
|
- echo "function comp_in_new() {\n".
|
|
|
|
|
|
+ $js .= "function comp_in_new() {\n".
|
|
" var newwin = window.open(\"".$base_uri."src/compose.php\"".
|
|
" var newwin = window.open(\"".$base_uri."src/compose.php\"".
|
|
", \"compose_window\", \"width=".$pix_width.",height=650".
|
|
", \"compose_window\", \"width=".$pix_width.",height=650".
|
|
",scrollbars=yes,resizable=yes\");\n".
|
|
",scrollbars=yes,resizable=yes\");\n".
|
|
"}\n";
|
|
"}\n";
|
|
}
|
|
}
|
|
- echo "// -->\n".
|
|
|
|
|
|
+ $js .= "// -->\n".
|
|
"</script>\n";
|
|
"</script>\n";
|
|
$onload = "onLoad=\"checkForm();\"";
|
|
$onload = "onLoad=\"checkForm();\"";
|
|
|
|
+ displayHtmlHeader ('Squirrelmail', $js);
|
|
break;
|
|
break;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\" $onload>\n\n";
|
|
echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\" $onload>\n\n";
|
|
/** Here is the header and wrapping table **/
|
|
/** Here is the header and wrapping table **/
|
|
$shortBoxName = readShortMailboxName($mailbox, $delimiter);
|
|
$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;
|
|
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 );
|
|
$module = substr( $PHP_SELF, ( strlen( $PHP_SELF ) - strlen( $base_uri ) ) * -1 );
|
|
if (!isset($frame_top)) {
|
|
if (!isset($frame_top)) {
|
|
@@ -181,9 +182,10 @@ function compose_Header($color, $mailbox) {
|
|
case 'src/search.php':
|
|
case 'src/search.php':
|
|
$pos = getPref($data_dir, $username, 'search_pos', 0 ) - 1;
|
|
$pos = getPref($data_dir, $username, 'search_pos', 0 ) - 1;
|
|
$onload = "onLoad=\"document.forms[$pos].elements[2].focus();\"";
|
|
$onload = "onLoad=\"document.forms[$pos].elements[2].focus();\"";
|
|
|
|
+ displayHtmlHeader (_("Compose"));
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
- echo '<script language="JavaScript">' .
|
|
|
|
|
|
+ $js = '<script language="JavaScript" type="text/javascript">' .
|
|
"\n<!--\n" .
|
|
"\n<!--\n" .
|
|
"function checkForm() {\n".
|
|
"function checkForm() {\n".
|
|
"var f = document.forms.length;\n".
|
|
"var f = document.forms.length;\n".
|
|
@@ -204,9 +206,10 @@ function compose_Header($color, $mailbox) {
|
|
"document.forms[i-1].elements[pos].focus();\n".
|
|
"document.forms[i-1].elements[pos].focus();\n".
|
|
"}\n".
|
|
"}\n".
|
|
"}\n";
|
|
"}\n";
|
|
- echo "// -->\n".
|
|
|
|
|
|
+ $js .= "// -->\n".
|
|
"</script>\n";
|
|
"</script>\n";
|
|
$onload = "onLoad=\"checkForm();\"";
|
|
$onload = "onLoad=\"checkForm();\"";
|
|
|
|
+ displayHtmlHeader (_("Compose"), $js);
|
|
break;
|
|
break;
|
|
|
|
|
|
}
|
|
}
|