From cb589b25c40fbd3f07cd8de67ca7e1a3d406476f Mon Sep 17 00:00:00 2001 From: Rossiani Wijaya Date: Thu, 13 Sep 2012 16:37:42 +0800 Subject: [PATCH] MDL-34571 report: convert to html_writer --- report/courseoverview/index.php | 14 +++++++------- report/participation/index.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/report/courseoverview/index.php b/report/courseoverview/index.php index 2693e96423f..bf658eac41f 100644 --- a/report/courseoverview/index.php +++ b/report/courseoverview/index.php @@ -68,8 +68,8 @@ if (empty($timeoptions)) { print_error('nostatstodisplay', 'error', $CFG->wwwroot.'/course/view.php?id='.$course->id); } -echo '
'."\n"; -echo '
'; +echo html_writer::start_tag('form', array('action' => 'index.php', 'method' => 'post')); +echo html_writer::start_tag('div'); $table = new html_table(); $table->width = '*'; @@ -82,13 +82,13 @@ $timeoptionsmenu .= html_writer::select($timeoptions,'time',$time, false); $table->data[] = array(get_string('statsreporttype'),$reporttypemenu, get_string('statstimeperiod'),$timeoptionsmenu, - '' . - '', - '') ; + html_writer::label(get_string('numberofcourses'), 'numcourses', false, array('class' => 'accesshide')) . + html_writer::empty_tag('input', array('type' => 'text', 'id' => 'numcourses', 'name' => 'numcourses', 'size' => '3', 'maxlength' => '2', 'value' => $numcourses)), + html_writer::empty_tag('input', array('type' => 'submit', 'value' => get_string('view')))); echo html_writer::table($table); -echo '
'; -echo '
'; +echo html_writer::end_tag('div'); +echo html_writer::end_tag('form'); echo $OUTPUT->heading($reportoptions[$report]); diff --git a/report/participation/index.php b/report/participation/index.php index 069cbcf43ed..ff9435ee497 100644 --- a/report/participation/index.php +++ b/report/participation/index.php @@ -303,7 +303,7 @@ if (!empty($instanceid) && !empty($roleid)) { } echo ''; echo '
'; - echo ''; + echo html_writer::label(get_string('withselectedusers', 'formactionselect'), 'formactionselect'); $displaylist['messageselect.php'] = get_string('messageselectadd'); echo html_writer::select($displaylist, 'formaction', '', array(''=>'choosedots'), array('id'=>'formactionselect')); echo $OUTPUT->help_icon('withselectedusers');