37 lines
1.6 KiB
HTML
Raw Normal View History

<form name="fieldsubform" action="<?php echo $CFG->wwwroot; ?>/mod/data/fields.php?d=<?php echo ($field->dataid); ?>" method="POST">
<table width="100%">
<tr>
<td span="2">
<input type="hidden" name="fid" value="<?php echo ($field->id); ?>" />
<input type="hidden" name="mode" value="<?php if ($newfield) {echo 'add';} else {echo 'update';} ?>" />
<input type="hidden" name="type" value="<?php echo $this->type; ?>" />
<input name="sesskey" value="<?php echo sesskey(); ?>" type="hidden">
<?php echo ($this->name()); ?>
</td>
</tr>
<tr>
<td>Name:</td>
2006-02-03 09:22:23 +00:00
<td><input style="width:300px;" type="text" name="name" id="name" value="<?php echo($field->name); ?>" /></td>
</tr>
<tr>
<td>Description:</td>
2006-02-03 09:22:23 +00:00
<td><input style="width:300px;" type="text" name="description" id="description" value="<?php echo($field->description); ?>" /></td>
</tr>
<tr>
<td>Width:</td>
2006-02-03 09:22:23 +00:00
<td><input style="width:50px;" type="text" name="param2" id="width" value="<?php echo($field->param2); ?>" /> columns</td>
</tr>
<tr>
<td>Height:</td>
2006-02-03 09:22:23 +00:00
<td><input style="width:50px;" type="text" name="param3" id="height" value="<?php echo($field->param3); ?>" /> rows</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type="submit" value="<?php if ($newfield) {echo get_string('add');} else {echo get_string('save','data');} ?>" \>
<input type="submit" value="<?php echo get_string('cancel'); ?>" onclick="document.fieldsubform.mode.value='void';" \>
</td>
</tr>
</table>
</form>