From: nicolasconnault
Date: Tue, 18 Aug 2009 05:19:25 +0000 (+0000)
Subject: MDL-19825 Upgraded calls to helpbutton, print_simple_box* and notify
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3aac07d8f056f8c6005bd043e328a68dc823a4a3;p=moodle.git
MDL-19825 Upgraded calls to helpbutton, print_simple_box* and notify
---
diff --git a/user/addnote.php b/user/addnote.php
index 5807f4bca2..0505967f9c 100644
--- a/user/addnote.php
+++ b/user/addnote.php
@@ -62,8 +62,8 @@ echo '';
echo '';
echo '';
$table->head = array (get_string('fullname'),
- get_string('content', 'notes') . helpbutton('writing', get_string('helpwriting'), 'moodle', true, false, '', true),
- get_string('publishstate', 'notes') . helpbutton('status', get_string('publishstate', 'notes'), 'notes', true, false, '', true),
+ get_string('content', 'notes') . $OUTPUT->help_icon(moodle_help_icon::make('writing', get_string('helpwriting'))),
+ get_string('publishstate', 'notes') . $OUTPUT->help_icon(moodle_help_icon::make('status', get_string('publishstate', 'notes'), 'notes')),
);
$table->align = array ('left', 'center', 'center');
$state_names = note_get_state_names();
diff --git a/user/edit.php b/user/edit.php
index 951a98b55e..7c7b8532a3 100644
--- a/user/edit.php
+++ b/user/edit.php
@@ -126,7 +126,7 @@
$a->oldemail = $usernew->email = $user->email;
$email_changed_html = $OUTPUT->box(get_string('auth_changingemailaddress', 'auth_email', $a), 'generalbox', 'notice');
- $email_changed_html .= print_continue("$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id", true);
+ $email_changed_html .= $OUTPUT->continue_button("$CFG->wwwroot/user/view.php?id=$user->id&course=$course->id");
$email_changed = true;
}
}
diff --git a/user/emailupdate.php b/user/emailupdate.php
index 4971e7edcc..6d0eb00e63 100755
--- a/user/emailupdate.php
+++ b/user/emailupdate.php
@@ -33,7 +33,7 @@ if (empty($preferences['newemailattemptsleft'])) {
if ($DB->get_record('user', array('email' => $user->email))) {
$stremailnowexists = get_string('auth_emailnowexists', 'auth_email');
echo $OUTPUT->box($stremailnowexists, 'center');
- print_continue("$CFG->wwwroot/user/view.php?id=$user->id");
+ echo $OUTPUT->continue_button("$CFG->wwwroot/user/view.php?id=$user->id");
} else {
// update user email
$DB->set_field('user', 'email', $user->email, array('id' => $user->id));
@@ -41,7 +41,7 @@ if (empty($preferences['newemailattemptsleft'])) {
$a->email = $user->email;
$stremailupdatesuccess = get_string('auth_emailupdatesuccess', 'auth_email', $a);
echo $OUTPUT->box($stremailupdatesuccess, 'center');
- print_continue("$CFG->wwwroot/user/view.php?id=$user->id");
+ echo $OUTPUT->continue_button("$CFG->wwwroot/user/view.php?id=$user->id");
}
} else {
diff --git a/user/extendenrol.php b/user/extendenrol.php
index b4d1b0fef7..eb6795c069 100644
--- a/user/extendenrol.php
+++ b/user/extendenrol.php
@@ -112,7 +112,7 @@ if($course->enrollable == 2) {
}
$title = get_string('extendenrol');
-echo $OUTPUT->heading($title . helpbutton('extendenrol', $title, 'moodle', true, false, '', true));
+echo $OUTPUT->heading($title . $OUTPUT->help_icon(moodle_help_icon::make('extendenrol', $title)));
echo "
';
echo '' . get_string('content', 'notes');
-helpbutton('writing', get_string('helpwriting'));
+echo $OUTPUT->help_icon(moodle_help_icon::make('writing', get_string('helpwriting')));
echo '
';
echo '' . $strpublishstate;
-helpbutton('status', $strpublishstate, 'notes');
+echo $OUTPUT->help_icon(moodle_help_icon::make('status', $strpublishstate, 'notes'));
echo $OUTPUT->select(html_select::make($state_names, 'state', empty($state) ? NOTES_STATE_PUBLIC : $state, false));
echo '
';
diff --git a/user/groupextendenrol.php b/user/groupextendenrol.php
index 9900ec8dec..54ea3877fd 100755
--- a/user/groupextendenrol.php
+++ b/user/groupextendenrol.php
@@ -109,7 +109,7 @@ if($course->enrollable == 2) {
}
$title = get_string('groupextendenrol');
-echo $OUTPUT->heading($title . helpbutton('groupextendenrol', $title, 'moodle', true, false, '', true));
+echo $OUTPUT->heading($title . $OUTPUT->help_icon(moodle_help_icon::make('groupextendenrol', $title)));
echo '