//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
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
<?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) {
$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);
echo "<br />";
- print_table($table);
+ echo $OUTPUT->table($table);
/// Finish the page
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) {
<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);?>
$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
$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
$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>