1 <?php $maxlength=70; ?>
3 <form action=
"course.php" method=
"post">
5 <table style=
"margin-left:auto;margin-right:auto">
8 <label for=
"removeoutcomes"><?php print_string('outcomescourse', 'grades'); ?></label>
10 <select id=
"removeoutcomes" size=
"20" name=
"removeoutcomes[]" multiple=
"multiple">
12 if ($co_standard_notused) {
13 echo '<optgroup label="'.get_string('outcomescoursenotused', 'grades').'">';
14 foreach ($co_standard_notused as $outcome) {
15 echo '<option value="'.$outcome->id
.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
19 if ($co_standard_used) {
20 echo '<optgroup label="'.get_string('outcomescourseused', 'grades').'">';
21 foreach ($co_standard_used as $outcome) {
22 echo '<option value="'.$outcome->id
.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
27 echo '<optgroup label="'.get_string('outcomescoursecustom', 'grades').'">';
28 foreach ($co_custom as $outcome) {
29 echo '<option value="'.$outcome->id
.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
37 if (has_capability('moodle/grade:manageoutcomes', $context)) {
40 <p class=
"arrow_button">
41 <input name=
"add" id=
"add" type=
"submit" value=
"<?php echo ' '.$THEME->larrow.' '.get_string('add'); ?>" title
="<?php print_string('add'); ?>" />
43 <input name
="remove" id
="remove" type
="submit" value
="<?php echo ' '.$THEME->rarrow.' '.get_string('remove'); ?>" title
="<?php print_string('remove'); ?>" />
48 <label for=
"addoutcomes"><?php print_string('outcomesstandardavailable', 'grades'); ?></label>
50 <select id=
"addoutcomes" size=
"20" name=
"addoutcomes[]" multiple=
"multiple">
53 foreach ($standardoutcomes as $outcome) {
54 echo '<option value="'.$outcome->id
.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
62 <input name=
"id" type=
"hidden" value=
"<?php echo $courseid?>"/>