mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
fixed issue MDL-14531
added an option to switch autonumbering on or off
This commit is contained in:
parent
914061abe1
commit
efc5916754
22 changed files with 74 additions and 52 deletions
|
@ -58,18 +58,18 @@ class feedback_item_textarea extends feedback_item_base {
|
|||
return $value->value;
|
||||
}
|
||||
|
||||
function print_analysed($item, $itemnr = 0, $groupid = false, $courseid = false) {
|
||||
function print_analysed($item, $itemnr = '', $groupid = false, $courseid = false) {
|
||||
$values = feedback_get_group_values($item, $groupid, $courseid);
|
||||
if($values) {
|
||||
//echo '<table>';2
|
||||
$itemnr++;
|
||||
echo '<tr><th colspan="2" align="left">'. $itemnr . '.) ' . stripslashes_safe($item->name) .'</th></tr>';
|
||||
// $itemnr++;
|
||||
echo '<tr><th colspan="2" align="left">'. $itemnr . ' ' . stripslashes_safe($item->name) .'</th></tr>';
|
||||
foreach($values as $value) {
|
||||
echo '<tr><td valign="top" align="left">- </td><td align="left" valign="top">' . str_replace("\n", '<br />', $value->value) . '</td></tr>';
|
||||
}
|
||||
//echo '</table>';
|
||||
}
|
||||
return $itemnr;
|
||||
// return $itemnr;
|
||||
}
|
||||
|
||||
function excelprint_item(&$worksheet, $rowOffset, $item, $groupid, $courseid = false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue