Some browsers may complain when fomr not present. Corrected.

This commit is contained in:
philippe_mingo 2001-10-26 11:13:37 +00:00
parent c1e6c7b68c
commit eb189fd848

View file

@ -16,14 +16,10 @@
function displayHtmlHeader ($title="SquirrelMail") { function displayHtmlHeader ($title="SquirrelMail") {
global $theme_css; global $theme_css;
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'; echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">' .
echo "\n\n"; "\n\n<HTML>\n<HEAD>\n";
echo "<HTML>\n"; if ($theme_css != '') {
echo "<HEAD>\n"; echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"$theme_css\">\n";
if ($theme_css != "") {
printf ('<LINK REL="stylesheet" TYPE="text/css" HREF="%s">',
$theme_css);
echo "\n";
} }
do_hook ("generic_header"); do_hook ("generic_header");
@ -32,10 +28,10 @@
echo "</HEAD>\n\n"; echo "</HEAD>\n\n";
} }
function displayInternalLink ($path, $text, $target="") { function displayInternalLink ($path, $text, $target='') {
global $base_uri; global $base_uri;
if ($target != "") if ($target != '')
$target = " target=\"$target\""; $target = " target=\"$target\"";
echo '<a href="'.$base_uri.$path.'"'.$target.'>'.$text.'</a>'; echo '<a href="'.$base_uri.$path.'"'.$target.'>'.$text.'</a>';
@ -44,7 +40,7 @@
function displayPageHeader($color, $mailbox) { function displayPageHeader($color, $mailbox) {
displayHtmlHeader (); displayHtmlHeader ();
echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\" onLoad='if ( document.forms[0].elements[0].type == \"text\" ) { document.forms[0].elements[0].focus(); }'>\n\n"; echo "<BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\" onLoad='if ( 0 in document.forms && document.forms[0].elements[0].type == \"text\" ) { document.forms[0].elements[0].focus(); }'>\n\n";
/** Here is the header and wrapping table **/ /** Here is the header and wrapping table **/
$shortBoxName = readShortMailboxName($mailbox, "."); $shortBoxName = readShortMailboxName($mailbox, ".");
@ -83,4 +79,4 @@
echo " </TR>\n"; echo " </TR>\n";
echo "</TABLE>\n\n"; echo "</TABLE>\n\n";
} }
?> ?>