]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12864 fix bad XHTML for messaging tabs, merged from 19
authorjerome <jerome>
Fri, 2 May 2008 05:15:26 +0000 (05:15 +0000)
committerjerome <jerome>
Fri, 2 May 2008 05:15:26 +0000 (05:15 +0000)
message/index.php
message/lib.php
message/search.html
message/settings.html

index 53c4511ac38c2675b63ffcce8bdb54a246ebf5e6..70c43c16e5b9cf31fc2312df31ad16ba716b4b25 100644 (file)
@@ -57,7 +57,7 @@
         print_header(get_string('messages', 'message').' - '.format_string($SITE->fullname));
     }
 
-    echo '<table cellspacing="2" cellpadding="2" border="0" align="center" width="95%">';
+    echo '<table cellspacing="2" cellpadding="2" border="0" width="95%" class="boxaligncenter">';  
     echo '<tr>';
 
 /// Print out the tabs
@@ -70,8 +70,8 @@
     $tabrow[] = new tabobject('settings', $CFG->wwwroot.'/message/index.php?tab=settings', 
                                get_string('settings', 'message'));
     $tabrows = array($tabrow);
-
-    print_tabs($tabrows, $tab);
+         
+    print_tabs($tabrows, $tab); 
     
     echo '</td>';
 
index b7278239b46a16e9009978a84e6a3c4537a2d7fd..b36a6526d92d8acb31ca66ae1eb42b95ae8a80eb 100644 (file)
@@ -102,7 +102,7 @@ function message_print_contacts() {
         echo '</div>';
     }
 
-    echo '<table id="message_contacts" align="center" cellspacing="2" cellpadding="0" border="0">';
+    echo '<table id="message_contacts" class="boxaligncenter" cellspacing="2" cellpadding="0" border="0">';
 
     if($countonlinecontacts) {
         /// print out list of online contacts
@@ -160,7 +160,7 @@ function message_print_contacts() {
 document.write("'.$autorefresh.'")
 //]]>
 </script>';
-    echo '<noscript><div align="center">';
+    echo '<noscript><div class="button aligncenter">';
     echo print_single_button('index.php', false, get_string('refresh'));
     echo '</div></noscript>';
 }
index 0d032a641e3d5ba6d56854aedd67ccd72509bbcb..74c5fcf3fe43ec532e493f22d2c4afe16feb3dd1 100644 (file)
@@ -1,8 +1,8 @@
 <form id="personsearch" action="index.php" method="post">
-<input type="hidden" name="tab" value="search" />
+<div><input type="hidden" name="tab" value="search" /></div>
 
 
-<table cellpadding="5" align="center" class="message_form">
+<table cellpadding="5" class="message_form boxaligncenter">
 
 
     <tr>
index 1c0ddcec9b2a20fe876be74dbb2c8c7b42bad8b0..78974203ffca8a3744e02e0642aea664962c0948 100644 (file)
@@ -1,8 +1,8 @@
 <form id="message_settings" action="index.php" method="post">
-<input type="hidden" name="tab" value="settings" />
+<div><input type="hidden" name="tab" value="settings" /></div>
 
 
-<table cellpadding="5" align="center" class="message_form">
+<table cellpadding="5"  class="message_form boxaligncenter">
 
     <tr valign="top">
         <td align="right"><input type="checkbox" name="showmessagewindow" id="showmessagewindow" <?php echo $cbshowmessagewindow ?> /></td>