1 <form action=
"course.php" method=
"post">
3 <table style=
"margin-left:auto;margin-right:auto">
6 <select id=
"addoutcomes" size=
"20" name=
"addoutcomes[]" multiple=
"multiple">
9 foreach ($outcomes as $outcome) {
11 // do not include items already used in course
12 if (in_array($outcome->id
, array_keys($courseoutcomes))) {
16 echo '<option value="'.$outcome->id
.'">'.truncate($outcome->fullname
, 150).'</option>';
23 // only show arrows if user has privilages to manage
24 if (has_capability('gradereport/outcomes:manage', get_context_instance(CONTEXT_COURSE
, $courseid))) {
26 <p class=
"arrow_button">
27 <input name=
"add" id=
"add" type=
"submit" value=
"<?php echo ' '.$THEME->rarrow.' '.get_string('add'); ?>" title
="<?php print_string('add'); ?>" />
29 <input name
="remove" id
="remove" type
="submit" value
="<?php echo ' '.$THEME->larrow.' '.get_string('remove'); ?>" title
="<?php print_string('remove'); ?>" />
34 <select id=
"removeoutcomes" size=
"20" name=
"removeoutcomes[]" multiple=
"multiple">
36 foreach ($courseoutcomes as $courseoutcome) {
37 echo '<option value="'.$courseoutcome->id
.'">'.truncate($courseoutcome->fullname
, 150).'</option>';
45 <input name=
"id" type=
"hidden" value=
"<?php echo $courseid?>"/>