Browse Source

Do some HTML4 fixes and upgrade our HTML version to 4.01.

Thijs Kinkhorst 23 years ago
parent
commit
3521d74783
5 changed files with 11 additions and 11 deletions
  1. 1 1
      functions/page_header.php
  2. 1 1
      src/addrbook_popup.php
  3. 1 1
      src/folders.php
  4. 2 2
      src/login.php
  5. 6 6
      src/webmail.php

+ 1 - 1
functions/page_header.php

@@ -30,7 +30,7 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
     }
     global $theme_css, $custom_css;
 
-    echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">' .
+    echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' .
          "\n\n<HTML>\n<HEAD>\n";
 
     if ( !isset( $custom_css ) || $custom_css == 'none' ) {

+ 1 - 1
src/addrbook_popup.php

@@ -19,7 +19,7 @@ require_once(SM_PATH . 'include/validate.php');
 require_once(SM_PATH . 'functions/addressbook.php');
    
 ?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
 
 <HTML>
     <HEAD>

+ 1 - 1
src/folders.php

@@ -238,7 +238,7 @@ echo html_tag( 'tr',
 
 
 /** UNSUBSCRIBE FOLDERS **/
-echo html_tag( 'table', '', 'center', '', 'width="70%" cols="2" cellpadding="4" cellspacing="0" border="0"' ) .
+echo html_tag( 'table', '', 'center', '', 'width="70%" cellpadding="4" cellspacing="0" border="0"' ) .
             html_tag( 'tr',
                 html_tag( 'td', '<b>' . _("Unsubscribe") . '/' . _("Subscribe") . '</b>', 'center', $color[9], 'colspan="2"' )
             ) .

+ 2 - 2
src/login.php

@@ -118,7 +118,7 @@ html_tag( 'table',
                                     '<input type=hidden name="just_logged_in" value=1>' . "\n",
                                 'left', '', 'width="*"' )
                             ) ,
-                        'center', '#ffffff', 'border="0" cols="2" width="100%"' ) ,
+                        'center', '#ffffff', 'border="0" width="100%"' ) ,
                     'left', '#FFFFFF' )
                 ) . 
                 html_tag( 'tr',
@@ -126,7 +126,7 @@ html_tag( 'table',
                         '<center><input type="submit" value="' . _("Login") . '"></center>',
                     'left' )
                 ),
-            '', '#ffffff', 'border="0" cols="1" width="350"' ),
+            '', '#ffffff', 'border="0" width="350"' ) . '</center>',
         'center' )
     ) ,
 '', '#ffffff', 'border="0" cellspacing="0" cellpadding="0" width="100%"' ) .

+ 6 - 6
src/webmail.php

@@ -93,10 +93,10 @@ if ($left_size == "") {
 }
 
 if ($location_of_bar == 'right') {
-    echo "<frameset cols=\"*, $left_size\" frameborder=\"1\" id=\"fs1\">";
+    echo "<frameset cols=\"*, $left_size\" id=\"fs1\">";
 }
 else {
-    echo "<frameset cols=\"$left_size, *\" frameborder=\"1\" id=\"fs1\">";
+    echo "<frameset cols=\"$left_size, *\" id=\"fs1\">";
 }
 
 /*
@@ -129,12 +129,12 @@ if ($right_frame == 'right_main.php') {
 }
 
 if ($location_of_bar == 'right') {
-    echo "<FRAME SRC=\"$right_frame_url\"  NAME=\"right\" frameborder=\"0\">" .
-         '<FRAME SRC="left_main.php"  NAME="left" frameborder="0">';
+    echo "<FRAME SRC=\"$right_frame_url\"  NAME=\"right\" frameborder=\"1\">" .
+         '<FRAME SRC="left_main.php"  NAME="left" frameborder="1">';
 }
 else {
-    echo '<FRAME SRC="left_main.php"  NAME="left" frameborder="0">'.
-         "<FRAME SRC=\"$right_frame_url\"  NAME=\"right\" frameborder=\"0\">";
+    echo '<FRAME SRC="left_main.php"  NAME="left" frameborder="1">'.
+         "<FRAME SRC=\"$right_frame_url\"  NAME=\"right\" frameborder=\"1\">";
 }
 do_hook('webmail_bottom');
 ?>