Cleaning up xhtml markup. Code now validates for xhtml 1.0 transitional.

This commit is contained in:
vyshane 2006-02-20 02:15:45 +00:00
parent 7541b03f28
commit af25f45e1a
21 changed files with 224 additions and 135 deletions

View file

@ -1,11 +1,11 @@
<form name="fieldsubform" action="<?php echo $CFG->wwwroot; ?>/mod/data/fields.php?d=<?php echo ($field->dataid); ?>" method="POST">
<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">
<td colspan="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">
<input name="sesskey" value="<?php echo sesskey(); ?>" type="hidden" />
<?php echo ($this->name()); ?>
</td>
</tr>
@ -24,8 +24,8 @@
<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';" \>
<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>