mirror of
https://github.com/moodle/moodle.git
synced 2025-01-23 08:38:23 +01:00
06d94a5228
- A new function in lib that perhaps could be used in other modules: print_tabbed_table_start and print_tabbed_table_end
79 lines
2.3 KiB
HTML
79 lines
2.3 KiB
HTML
<?
|
|
global $CFG, $THEME;
|
|
require_once("../../config.php");
|
|
?>
|
|
<FORM name="theform" method="post" <?=$onsubmit ?> action="edit.php" enctype="multipart/form-data">
|
|
<table class=generalbox cellpadding=5 bgcolor="<? p($THEME->cellheading)?>">
|
|
<tr valign=top>
|
|
<td align=right><p><b><?php echo get_string("concept","glossary") ?>:</b></p></td>
|
|
<td>
|
|
<INPUT type="text" name="concept" size=30 value="<? p($form->concept) ?>">
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p><b><? echo get_string("definition","glossary") ?>:</b></p>
|
|
<font size="1">
|
|
<?php
|
|
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
|
echo "<br />";
|
|
if ($usehtmleditor) {
|
|
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
|
|
} else {
|
|
emoticonhelpbutton("form", "description");
|
|
}
|
|
?>
|
|
<br />
|
|
</font>
|
|
</td>
|
|
<td>
|
|
<?php
|
|
print_textarea($usehtmleditor, 20, 60, 680, 400, "text", $entry->text);
|
|
|
|
echo "<p align=right>";
|
|
helpbutton("textformat", get_string("helpformatting"));
|
|
print_string("formattexttype");
|
|
echo ": ";
|
|
if (!$form->format) {
|
|
$form->format = $defaultformat;
|
|
}
|
|
choose_from_menu(format_text_menu(), "format", $entry->format, "");
|
|
if ($entry->id) {
|
|
echo "<input type=\"hidden\" name=entry value=\"$entry->id\">";
|
|
}
|
|
echo "</p>";
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p><b><?php print_string("attachment", "glossary") ?>:<br \>(<?php print_string("optional") ?>) </b></p></td>
|
|
<td>
|
|
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_max_upload_file_size() ?>">
|
|
<input type="file" name="attachment" size=40>
|
|
<?php
|
|
helpbutton("attachment", get_string("attachment", "glossary"), "glossary");
|
|
print_string("maxsize", "", display_size(get_max_upload_file_size()));
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=2>
|
|
<p align=center>
|
|
<input type="hidden" name=id value="<?=$cm->id ?>">
|
|
<input type="submit" value="<? print_string("savechanges") ?>">
|
|
<input type="reset" value="<? print_string("revert") ?>">
|
|
</P>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</p>
|
|
|
|
|
|
</form>
|
|
|
|
<?PHP
|
|
if ($usehtmleditor) {
|
|
print_richedit_javascript("theform", "text", "no");
|
|
}
|
|
?>
|
|
|