[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/edit/outcome/ -> course_form.html (source)

   1  <?php $maxlength=70; ?>
   2  
   3  <form action="course.php" method="post">
   4  <div>
   5  <table class="courseoutcomes">
   6      <tr>
   7          <td>
   8              <label for="removeoutcomes"><?php print_string('outcomescourse', 'grades'); ?></label>
   9              <br />
  10              <select id="removeoutcomes" size="20" name="removeoutcomes[]" multiple="multiple">
  11              <?php
  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>';
  16                  }
  17                  echo '</optgroup>';
  18              }
  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>';
  23                  }
  24                  echo '</optgroup>';
  25              }
  26              if ($co_custom) {
  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>';
  30                  }
  31                  echo '</optgroup>';
  32              }
  33              ?>
  34              </select>
  35          </td>
  36          <?php
  37          if (has_capability('moodle/grade:manageoutcomes', $context)) {
  38          ?>
  39          <td>
  40              <p class="arrow_button">
  41                  <input name="add" id="add" type="submit" value="<?php echo '&nbsp; '.$OUTPUT->larrow().' &nbsp; &nbsp; '.get_string('add'); ?>" title="<?php print_string('add'); ?>" />
  42                  <br />
  43                  <input name="remove" id="remove" type="submit" value="<?php echo '&nbsp;'.$OUTPUT->rarrow().' &nbsp; &nbsp; '.get_string('remove'); ?>" title="<?php print_string('remove'); ?>" />
  44              </p>
  45          </td>
  46          <?php } ?>
  47          <td>
  48              <label for="addoutcomes"><?php print_string('outcomesstandardavailable', 'grades'); ?></label>
  49              <br />
  50              <select id="addoutcomes" size="20" name="addoutcomes[]" multiple="multiple">
  51  
  52              <?php
  53              foreach ($standardoutcomes as $outcome) {
  54                  echo '<option value="'.$outcome->id.'">'.shorten_text($outcome->get_name(), $maxlength).'</option>';
  55              }
  56              ?>
  57              </select>
  58          </td>
  59      </tr>
  60  </table>
  61  
  62  <?php
  63  if (has_capability('moodle/grade:manageoutcomes', $context)) {
  64  ?>
  65      <p class="mdl-align">
  66          <a href="<?php echo $CFG->wwwroot ?>/grade/edit/outcome/index.php?id=<?php echo $courseid; ?>"><?php echo get_string('editoutcomes','grades'); ?></a>
  67      </p>
  68  <?php
  69  }
  70  ?>
  71  
  72  <input name="id" type="hidden" value="<?php echo $courseid?>"/>
  73  <input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
  74  </div>
  75  </form>


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1