Permalink
Browse files

Added $prefix to form fields so that this code could be used with man…

…ual grading
  • Loading branch information...
1 parent caca24d commit dbb3c4c6eaf19e0ea378466ecd2520f3569f3c76 mark-nielsen committed Apr 8, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/comment.html
View
@@ -10,7 +10,7 @@
</td>
<td>
<?php
- print_textarea($usehtmleditor, 15, 60, 630, 300, 'comment', $state->comment);
+ print_textarea($usehtmleditor, 15, 60, 630, 300, $prefix.'[comment]', $state->comment);
?>
</td>
</tr>
@@ -19,7 +19,7 @@
<b><?php print_string('grade', 'quiz'); ?>: </b>
</td>
<td>
- <input type="text" name="grade" size="2" value="<?php echo $grade; ?>" />/<?php echo $question->maxgrade; ?>
+ <input type="text" name="<?php echo $prefix; ?>[grade]" size="2" value="<?php echo $grade; ?>" />/<?php echo $question->maxgrade; ?>
</td>
</tr>
</table>

0 comments on commit dbb3c4c

Please sign in to comment.