[ Index ]

PHP Cross Reference of moodle-2.8

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


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1