MDL-19804 Upgraded calls to helpbutton, print_simple_box* and notify
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
<form action="../empty.php" method="post" target="empty" id="inputForm"
|
||||
onsubmit="return empty_field_and_submit()" style="margin:0">
|
||||
<input type="text" id="input_chat_message" name="chat_message" size="50" value="" />
|
||||
<?php helpbutton('chatting', get_string('helpchatting', 'chat'), 'chat', true, false); ?><br />
|
||||
<?php echo $OUTPUT->help_icon(moodle_help_icon::make('chatting', get_string('helpchatting', 'chat'), 'chat', true)); ?><br />
|
||||
<input type="checkbox" id="auto" size="50" value="" checked='true' /><label for="auto"><?php echo get_string('autoscroll', 'chat');?></label>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<form action="../empty.php" method="get" target="empty" id="inputform"
|
||||
onsubmit="return empty_field_and_submit();">
|
||||
<input type="text" name="chat_message" size="60" value="" />
|
||||
<?php helpbutton("chatting", get_string("helpchatting", "chat"), "chat", true, false); ?>
|
||||
<?php echo $OUTPUT->help_icon(moodle_help_icon::make("chatting", get_string("helpchatting", "chat"), "chat", true)); ?>
|
||||
</form>
|
||||
|
||||
<form action="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport/"; ?>" method="get" target="empty" id="sendform">
|
||||
|
||||
+6
-6
@@ -70,7 +70,7 @@
|
||||
} else {
|
||||
echo '<p class="boxaligncenter">'.userdate($start).' --> '. userdate($end).'</p>';
|
||||
|
||||
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 '<p align="center">'.userdate($sessionstart).' --> '. userdate($sessionend).'</p>';
|
||||
|
||||
print_simple_box_start('center');
|
||||
echo $OUTPUT->box_start();
|
||||
|
||||
arsort($sessionusers);
|
||||
foreach ($sessionusers as $sessionuser => $usermessagecount) {
|
||||
@@ -214,7 +214,7 @@
|
||||
echo "<br /><a href=\"report.php?id=$cm->id&start=$sessionstart&end=$sessionend&deletesession=1\">$strdeletesession</a>";
|
||||
}
|
||||
echo '</p>';
|
||||
print_simple_box_end();
|
||||
echo $OUTPUT->box_end();
|
||||
}
|
||||
|
||||
$sessionend = $message->timestamp;
|
||||
|
||||
Reference in New Issue
Block a user