adding some strings
[moodle-linuxchix.git] / grade / report / outcomes / course.html
blob4015536804f048d6e1f8531c5bac84aca5d0f9c0
1 <form action="course.php" method="post">
2 <div>
3 <table style="margin-left:auto;margin-right:auto">
4 <tr>
5 <td>
6 <select id="addoutcomes" size="20" name="addoutcomes[]" multiple="multiple">
8 <?php
9 foreach ($outcomes as $outcome) {
11 // do not include items already used in course
12 if (in_array($outcome->id, array_keys($courseoutcomes))) {
13 continue;
16 echo '<option value="'.$outcome->id.'">'.truncate($outcome->fullname, 150).'</option>';
19 </select>
20 </td>
21 <td>
22 <?php
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 '&nbsp; '.$THEME->rarrow.' &nbsp; &nbsp; '.get_string('add'); ?>" title="<?php print_string('add'); ?>" />
28 <br />
29 <input name="remove" id="remove" type="submit" value="<?php echo '&nbsp;'.$THEME->larrow.' &nbsp; &nbsp; '.get_string('remove'); ?>" title="<?php print_string('remove'); ?>" />
30 </p>
31 <?php } ?>
32 </td>
33 <td>
34 <select id="removeoutcomes" size="20" name="removeoutcomes[]" multiple="multiple">
35 <?php
36 foreach ($courseoutcomes as $courseoutcome) {
37 echo '<option value="'.$courseoutcome->id.'">'.truncate($courseoutcome->fullname, 150).'</option>';
40 </select>
41 </td>
42 </tr>
43 </table>
45 <input name="id" type="hidden" value="<?php echo $courseid?>"/>
46 </div>
47 </form>