From 3aac07d8f056f8c6005bd043e328a68dc823a4a3 Mon Sep 17 00:00:00 2001
From: nicolasconnault
Date: Tue, 18 Aug 2009 05:19:25 +0000
Subject: [PATCH] MDL-19825 Upgraded calls to helpbutton, print_simple_box* and
notify
---
user/addnote.php | 4 ++--
user/edit.php | 2 +-
user/emailupdate.php | 4 ++--
user/extendenrol.php | 2 +-
user/groupaddnote.php | 4 ++--
user/groupextendenrol.php | 2 +-
user/index.php | 10 +++++-----
user/message.html | 14 +++++++-------
user/messageselect.php | 6 +++---
user/portfolio.php | 6 +++---
user/profile/index.php | 2 +-
user/repository.php | 2 +-
user/tabs.php | 2 +-
user/view.php | 2 +-
14 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/user/addnote.php b/user/addnote.php
index 5807f4bca2bdf..0505967f9c409 100644
--- a/user/addnote.php
+++ b/user/addnote.php
@@ -62,8 +62,8 @@
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 951a98b55e720..7c7b8532a3ab5 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 4971e7edccc1e..6d0eb00e632c9 100755
--- a/user/emailupdate.php
+++ b/user/emailupdate.php
@@ -33,7 +33,7 @@
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 @@
$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 b4d1b0fef75c6..eb6795c069f52 100644
--- a/user/extendenrol.php
+++ b/user/extendenrol.php
@@ -112,7 +112,7 @@
}
$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 9900ec8dec623..54ea3877fdc98 100755
--- a/user/groupextendenrol.php
+++ b/user/groupextendenrol.php
@@ -109,7 +109,7 @@
}
$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 '