[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/data/field/textarea/ -> 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">
   9              <input class="fielddescription" type="text" name="description" id="description"
  10              value="<?php p($this->field->description); ?>" />
  11          </td>
  12      </tr>
  13      <tr>
  14          <td class="c0"><label for="required"><?php echo get_string('requiredfield', 'data'); ?></label></td>
  15          <td class="c1"><input class="requiredfield" type="checkbox" name="required" id="required" <?php p($this->field->required?"checked=\"checked\"":""); ?>/></td>
  16      </tr>
  17      <tr>
  18          <td class="c0"><label for="param2">
  19              <?php echo get_string('fieldwidth', 'data'); ?></label></td>
  20          <td class="c1">
  21              <input class="textareafieldsize" type="text" name="param2" id="param2" value=
  22              <?php
  23                  if (empty($this->field->param2)) {
  24                      echo('"60"');
  25                  } else {
  26                      echo '"'.s($this->field->param2).'"';
  27                  }
  28              ?> /> <?php echo get_string('columns', 'data'); ?>
  29          </td>
  30      </tr>
  31      <tr>
  32          <td class="c0"><label for="param3">
  33              <?php echo get_string('fieldheight', 'data'); ?></label></td>
  34          <td class="c1">
  35              <input class="textareafieldsize" type="text" name="param3" id="param3" value=
  36              <?php
  37                  if (empty($this->field->param3)) {
  38                      echo('"35"');
  39                  } else {
  40                      echo '"'.s($this->field->param3).'"';
  41                  }
  42              ?> /> <?php echo get_string('rows', 'data'); ?>
  43          </td>
  44      </tr>
  45      <tr>
  46          <td class="c0"><label for="param5"><?php echo get_string('maxbytes', 'datafield_textarea'); ?></label></td>
  47          <td class="c1">
  48              <input class="c1" type="text" name="param5" id="param5"
  49                     value="<?php if (isset($this->field->param5)) { p($this->field->param5); } else { echo '0'; } ?>" />
  50              <?php echo get_string('maxbytes_desc', 'datafield_textarea'); ?>
  51          </td>
  52      </tr>
  53  </table>
  54  <input type="hidden" name="param4" id="param4" value="<?php echo FORMAT_HTML; ?>" />


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