]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7861, chat realated xhtml strict fixes, changed stlye in notice_yesno
authortoyomoyo <toyomoyo>
Tue, 9 Jan 2007 04:50:07 +0000 (04:50 +0000)
committertoyomoyo <toyomoyo>
Tue, 9 Jan 2007 04:50:07 +0000 (04:50 +0000)
lib/weblib.php
mod/chat/lib.php
mod/chat/report.php

index 034384ddebb6675d576ba0ba6b9a3f41dcb4bac4..4a3298e4928996241fcfd667b75b570b93d72d12 100644 (file)
@@ -4848,7 +4848,7 @@ function notice_yesno ($message, $linkyes, $linkno, $optionsyes=NULL, $optionsno
 
     print_simple_box_start('center', '60%', '', 5, 'generalbox', 'notice');
     echo '<p style="text-align:center">'. $message .'</p>';
-    echo '<table align="center" cellpadding="20"><tr><td>';
+    echo '<table class="boxaligncenter" cellpadding="20"><tr><td>';
     print_single_button($linkyes, $optionsyes, get_string('yes'), $methodyes, $CFG->framename);
     echo '</td><td>';
     print_single_button($linkno, $optionsno, get_string('no'), $methodno, $CFG->framename);
index 6e0efc4a9cae4c7ac57f8967c4725115cfdf9965..f924e898b22715704bd69d062afacb448c8700df 100644 (file)
@@ -539,7 +539,7 @@ function chat_format_message_manually($message, $courseid, $sender, $currentuser
 
     $message->picture = print_user_picture($sender->id, 0, $sender->picture, false, true, false);
     if ($courseid) {
-        $message->picture = "<a target=\"_new\" href=\"$CFG->wwwroot/user/view.php?id=$sender->id&amp;course=$courseid\">$message->picture</a>";
+        $message->picture = "<a onclick=\"window.open('$CFG->wwwroot/user/view.php?id=$sender->id&amp;course=$courseid')\" href=\"$CFG->wwwroot/user/view.php?id=$sender->id&amp;course=$courseid\">$message->picture</a>";
     }
 
     //Calculate the row class
index 82af7f1ed42d86d8e75b6e5233974611c2e44988..8a2ad5a83ca58479b13d81d0f7fcf10274b7631e 100644 (file)
@@ -70,7 +70,7 @@
             print_heading(get_string('nomessages', 'chat'));
 
         } else {
-            echo '<p align="center">'.userdate($start).' --> '. userdate($end).'</p>';
+            echo '<p class="boxaligncenter">'.userdate($start).' --> '. userdate($end).'</p>';
 
             print_simple_box_start('center');
             foreach ($messages as $message) {  // We are walking FORWARDS through messages