moodle/mod/data/field/text/mod.html
2006-02-03 09:22:23 +00:00

33 lines
1.5 KiB
HTML
Executable File

<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>
<td><input style="width:300px;" type="text" name="name" id="name" value="<?php echo($field->name); ?>" /></td>
</tr>
<tr>
<td>Description:</td>
<td><input style="width:300px;" type="text" name="description" id="description" value="<?php echo($field->description); ?>" /></td>
</tr>
<tr>
<td>Allow Autolink:</td>
<td><input type="checkbox" name="param1" id="param1" <?php if($field->param1) {echo 'checked="checked"';} ?> value="1" /></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>