fixed issue MDL-14531

added an option to switch autonumbering on or off
This commit is contained in:
agrabs 2008-04-30 22:17:04 +00:00
parent 914061abe1
commit efc5916754
22 changed files with 74 additions and 52 deletions

View file

@ -169,7 +169,13 @@
$itemclass = 'feedback_item_'.$item->typ;
//get the instance of the item-class
$itemobj = new $itemclass();
$itemnr = $itemobj->print_analysed($item, $itemnr, $mygroupid, $coursefilter);
$itemnr++;
if($feedback->autonumbering) {
$printnr = $itemnr.'.';
} else {
$printnr = '';
}
$itemobj->print_analysed($item, $printnr, $mygroupid, $coursefilter);
if (eregi('rated$', $item->typ)) {
echo '<tr><td colspan="2"><a href="#" onclick="setcourseitemfilter('.$item->id.',\''.$item->typ.'\'); return false;">'.
get_string('sort_by_course', 'feedback').'</a></td></tr>';