<form id="theform" method="post" action="edit.php">
<table cellpadding="10" cellspacing="0" class="generalbox">
  <tr><td align="right">
     <?php
        helpbutton('reading', get_string('helpreading'), 'moodle', true, true);
        echo '<br />';
        helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
        echo '<br />';
        if ($usehtmleditor) {
           helpbutton('richtext', get_string('helprichtext'), 'moodle', true, true);
        } else {
           emoticonhelpbutton('theform', 'text');
        } 
        echo '<br />';
      ?>
</td></tr>
<tr><td align="center">
<?php  print_textarea($usehtmleditor, 20, 60, 630, 400, "text", clean_text($entry->text, $entry->format)); ?>
</td></tr>
<tr><td align="center">
<?php
   print_string('formattexttype');
   echo ':&nbsp;';
   choose_from_menu(format_text_menu(), 'format', $entry->format, '');
   helpbutton('textformat', get_string('helpformatting'));
?>
</td></tr>
<tr><td align="center" class="generalboxcontent">
<input type="hidden" name="id" value="<?php echo $cm->id ?>" />
<input type="submit" value="<?php  print_string('savechanges') ?>" />
<input type="reset" value="<?php  print_string('revert') ?>" />
</td></tr></table>
</form>

