<form name="theform" method="post" action="edit.php">
<table cellpadding=10 cellspacing=0 class=generalbox>
  <tr><td align=right bgcolor="<?php echo $THEME->cellheading2 ?>">
    <font size="1">
     <?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");
        } 
      ?>
     <br />
    </font>
</td></tr>
<tr><td align=center bgcolor="<?php echo $THEME->cellheading2 ?>">
<?php  print_textarea($usehtmleditor, 20, 60, 630, 400, "text", $entry->text); ?>
</td></tr>
<tr><td align=center bgcolor="<?php echo $THEME->cellheading2 ?>">
<?php
   print_string("formattexttype");
   echo ":&nbsp;";
   choose_from_menu(format_text_menu(), "format", $entry->format, "");
   echo "<font size=\"1\">";
   helpbutton("textformat", get_string("helpformatting"));
   echo "</font>";
?>
</td></tr>
<tr><td align=center bgcolor="<?php echo $THEME->cellheading2 ?>" 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>

