MDL-19807 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno
This commit is contained in:
@@ -86,12 +86,12 @@
|
||||
//button "export to excel"
|
||||
//echo '<div class="mdl-align">';
|
||||
// echo '<div class="feedback_centered_button">';
|
||||
echo '<div class="form-buttons">';
|
||||
echo $OUTPUT->container_start('form-buttons');
|
||||
$export_button_link = 'analysis_to_excel.php';
|
||||
$export_button_options = array('sesskey'=>sesskey(), 'id'=>$id);
|
||||
$export_button_label = get_string('export_to_excel', 'feedback');
|
||||
print_single_button($export_button_link, $export_button_options, $export_button_label, 'post');
|
||||
echo '</div>';
|
||||
echo $OUTPUT->button(html_form::make_button($export_button_link, $export_button_options, $export_button_label));
|
||||
echo $OUTPUT->container_end();
|
||||
}
|
||||
|
||||
//get completed feedbacks
|
||||
|
||||
@@ -69,12 +69,12 @@
|
||||
|
||||
if( $capabilities->viewreports ) {
|
||||
//button "export to excel"
|
||||
echo '<div class="mdl-align">';
|
||||
echo $OUTPUT->container_start('mdl-align');
|
||||
$export_button_link = 'analysis_to_excel.php';
|
||||
$export_button_options = array('sesskey'=>sesskey(), 'id'=>$id, 'coursefilter'=>$coursefilter);
|
||||
$export_button_label = get_string('export_to_excel', 'feedback');
|
||||
print_single_button($export_button_link, $export_button_options, $export_button_label, 'post');
|
||||
echo '</div>';
|
||||
echo $OUTPUT->button(html_form::make_button($export_button_link, $export_button_options, $export_button_label));
|
||||
echo $OUTPUT->container_end();
|
||||
}
|
||||
|
||||
//get the groupid
|
||||
|
||||
@@ -136,9 +136,9 @@
|
||||
|
||||
<?php
|
||||
|
||||
echo '<div class="mdl-align">';
|
||||
print_single_button('edit.php', array('id'=>$id, 'do_show'=>'templates'), get_string('cancel'));
|
||||
echo '</div>';
|
||||
echo $OUTPUT->container_start('mdl-align');
|
||||
echo $OUTPUT->button(html_form::make_button('edit.php', array('id'=>$id, 'do_show'=>'templates'), get_string('cancel')));
|
||||
echo $OUTPUT->container_end();
|
||||
echo $OUTPUT->footer();
|
||||
|
||||
function feedback_load_xml_data($filename) {
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
$strtopic = get_string("topic");
|
||||
$strresponses = get_string('responses', 'feedback');
|
||||
|
||||
$table = new html_table();
|
||||
|
||||
if ($course->format == "weeks") {
|
||||
if($capabilities->viewreports) {
|
||||
$table->head = array ($strweek, $strname, $strresponses);
|
||||
@@ -107,7 +109,7 @@
|
||||
|
||||
echo "<br />";
|
||||
|
||||
print_table($table);
|
||||
echo $OUTPUT->table($table);
|
||||
|
||||
/// Finish the page
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ function feedback_print_recent_mod_activity($activity, $courseid, $detail, $modn
|
||||
echo '<table border="0" cellpadding="3" cellspacing="0" class="forum-recent">';
|
||||
|
||||
echo "<tr><td class=\"userpicture\" valign=\"top\">";
|
||||
print_user_picture($activity->user->userid, $courseid, $activity->user->picture);
|
||||
echo $OUTPUT->user_picture(moodle_user_picture::make($activity->user, $courseid));
|
||||
echo "</td><td>";
|
||||
|
||||
if ($detail) {
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="left">
|
||||
<?php echo print_user_picture($student->id, $course->id, $student->picture, false, true);?>
|
||||
<?php echo $OUTPUT->user_picture(moodle_user_picture::make($student, $course->id));?>
|
||||
</td>
|
||||
<td align="left">
|
||||
<?php echo fullname($student);?>
|
||||
@@ -155,7 +155,7 @@
|
||||
$show_button_link = $ME;
|
||||
$show_button_options = array('sesskey'=>sesskey(), 'userid'=>$student->id, 'do_show'=>'showoneentry', 'id'=>$id);
|
||||
$show_button_label = get_string('show_entries', 'feedback');
|
||||
print_single_button($show_button_link, $show_button_options, $show_button_label, 'post');
|
||||
echo $OUTPUT->button(html_form::make_button($show_button_link, $show_button_options, $show_button_label));
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
@@ -166,7 +166,7 @@
|
||||
$delete_button_link = 'delete_completed.php';
|
||||
$delete_button_options = array('sesskey'=>sesskey(), 'completedid'=>$feedbackcompleted->id, 'do_show'=>'showoneentry', 'id'=>$id);
|
||||
$delete_button_label = get_string('delete_entry', 'feedback');
|
||||
print_single_button($delete_button_link, $delete_button_options, $delete_button_label, 'post');
|
||||
echo $OUTPUT->button(html_form::make_button($delete_button_link, $delete_button_options, $delete_button_label));
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
@@ -190,7 +190,7 @@
|
||||
$show_anon_button_link = 'show_entries_anonym.php';
|
||||
$show_anon_button_options = array('sesskey'=>sesskey(), 'userid'=>0, 'do_show'=>'showoneentry', 'id'=>$id);
|
||||
$show_anon_button_label = get_string('show_entries', 'feedback');
|
||||
print_single_button($show_anon_button_link, $show_anon_button_options, $show_anon_button_label, 'post');
|
||||
echo $OUTPUT->button(html_form::make_button($show_anon_button_link, $show_anon_button_options, $show_anon_button_label));
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user