[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/data/field/file/ -> mod.html (source)

   1  <table width="100%" cellpadding="5">
   2      <tr>
   3          <td class="c0"><label for="name"><?php echo get_string('fieldname', 'data'); ?></label></td>
   4          <td class="c1"><input class="fieldname" type="text" name="name" id="name" value="<?php p($this->field->name); ?>" /></td>
   5      </tr>
   6      <tr>
   7          <td class="c0"><label for="description"><?php echo get_string('fielddescription', 'data'); ?></label></td>
   8          <td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php p($this->field->description);?>" /></td>
   9      </tr>
  10      <tr>
  11          <td class="c0"><label for="required"><?php echo get_string('requiredfield', 'data'); ?></label></td>
  12          <td class="c1"><input class="requiredfield" type="checkbox" name="required" id="required" <?php p($this->field->required ? "checked=\"checked\"" : ""); ?>/></td>
  13      </tr>
  14      <tr>
  15          <td class="c0"><label for="param3">
  16              <?php echo get_string('maxsize', 'data'); ?></label></td>
  17          <td class="c1">
  18              <?php
  19                  $course = $DB->get_record('course', array('id'=>$this->data->course));
  20                  $choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes, 0, $this->field->param3);
  21                  echo html_writer::select($choices, 'param3', $this->field->param3, false, array('id' => 'param3'));
  22              ?>
  23          </td>
  24      </tr>
  25  </table>


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