From: nicolasconnault Date: Tue, 18 Aug 2009 05:02:38 +0000 (+0000) Subject: MDL-19804 Upgraded calls to helpbutton, print_simple_box* and notify X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=29cd201ffa0525661b2eea0ba4b768d8c81f2e52;p=moodle.git MDL-19804 Upgraded calls to helpbutton, print_simple_box* and notify --- diff --git a/mod/chat/gui_header_js/chatinput.php b/mod/chat/gui_header_js/chatinput.php index 6db2e979a6..4517321572 100644 --- a/mod/chat/gui_header_js/chatinput.php +++ b/mod/chat/gui_header_js/chatinput.php @@ -39,7 +39,7 @@
-
+ help_icon(moodle_help_icon::make('chatting', get_string('helpchatting', 'chat'), 'chat', true)); ?>
diff --git a/mod/chat/gui_sockets/chatinput.php b/mod/chat/gui_sockets/chatinput.php index 3efadb980f..e54697a301 100644 --- a/mod/chat/gui_sockets/chatinput.php +++ b/mod/chat/gui_sockets/chatinput.php @@ -26,7 +26,7 @@
- + help_icon(moodle_help_icon::make("chatting", get_string("helpchatting", "chat"), "chat", true)); ?>
chat_serverhost:$CFG->chat_serverport/"; ?>" method="get" target="empty" id="sendform"> diff --git a/mod/chat/report.php b/mod/chat/report.php index 8861fdad7a..74abee0077 100644 --- a/mod/chat/report.php +++ b/mod/chat/report.php @@ -70,7 +70,7 @@ } else { echo '

'.userdate($start).' --> '. userdate($end).'

'; - print_simple_box_start('center'); + echo $OUTPUT->box_start('center'); foreach ($messages as $message) { // We are walking FORWARDS through messages $formatmessage = chat_format_message($message, $course->id, $USER); if (isset($formatmessage->html)) { @@ -90,11 +90,11 @@ $button->set_callback_options('chat_portfolio_caller', $buttonoptions, '/mod/chat/lib.php'); $button->render(); } - print_simple_box_end(); + echo $OUTPUT->box_end(); } if (!$deletesession or !has_capability('mod/chat:deletelog', $context)) { - print_continue("report.php?id=$cm->id"); + echo $OUTPUT->continue_button("report.php?id=$cm->id"); } echo $OUTPUT->footer(); @@ -134,7 +134,7 @@ $DB->delete_records_select('chat_messages', "chatid = :chatid AND timestamp >= :start AND timestamp <= :end $groupselect", $params); $strdeleted = get_string('deleted'); - notify("$strdeleted: ".userdate($start).' --> '. userdate($end)); + echo $OUTPUT->notification("$strdeleted: ".userdate($start).' --> '. userdate($end)); unset($deletesession); } @@ -184,7 +184,7 @@ echo '

'.userdate($sessionstart).' --> '. userdate($sessionend).'

'; - print_simple_box_start('center'); + echo $OUTPUT->box_start(); arsort($sessionusers); foreach ($sessionusers as $sessionuser => $usermessagecount) { @@ -214,7 +214,7 @@ echo "
id&start=$sessionstart&end=$sessionend&deletesession=1\">$strdeletesession"; } echo '

'; - print_simple_box_end(); + echo $OUTPUT->box_end(); } $sessionend = $message->timestamp;