mirror of
https://github.com/moodle/moodle.git
synced 2025-02-11 19:16:23 +01:00
These are the changes from MOODLE_13_STABLE, merged into trunk The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point The biggest changes here are the fixes for HTML editor in all standard modules
109 lines
3.6 KiB
HTML
109 lines
3.6 KiB
HTML
<?php
|
|
if (!isset($form->name)) {
|
|
$form->name = "";
|
|
}
|
|
if (!isset($form->intro)) {
|
|
$form->intro = "";
|
|
}
|
|
if (!isset($form->deleteafter)) {
|
|
$form->deleteafter = 0;
|
|
}
|
|
if (!isset($form->dialoguetype)) {
|
|
$form->dialoguetype = 0;
|
|
}
|
|
if (!isset($form->multipleconversations)) {
|
|
$form->multipleconversations = 0;
|
|
}
|
|
if (!isset($form->maildefault)) {
|
|
$form->maildefault = 0;
|
|
}
|
|
print_heading_with_help(get_string("furtherinformation", "dialogue"), "info", "dialogue");
|
|
?>
|
|
|
|
<form name="form" method="post" action="mod.php">
|
|
<table cellpadding=5>
|
|
<tr valign=top>
|
|
<td align=right><p><b><?php print_string("dialoguename", "dialogue") ?>:</b></p></td>
|
|
<td>
|
|
<input type="text" name="name" size=30 value="<?php p($form->name) ?>">
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p><b><?php print_string("dialogueintro", "dialogue") ?>:</b></p>
|
|
<font SIZE="1">
|
|
<?php
|
|
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
|
echo "<br />";
|
|
emoticonhelpbutton("form", "intro");
|
|
?>
|
|
<br />
|
|
</font>
|
|
|
|
</TD>
|
|
<td>
|
|
<?php print_textarea($usehtmleditor, 20, 50, 680, 400, "intro", $form->intro); ?>
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><p><b><?php print_string("deleteafter", "dialogue") ?>:</b></p></td>
|
|
<td>
|
|
<?php
|
|
require("$CFG->dirroot/mod/dialogue/lib.php");
|
|
choose_from_menu($DIALOGUE_DAYS, "deleteafter", $form->deleteafter, "");
|
|
helpbutton("deleteafter", get_string("deleteafter", "dialogue"), "dialogue");
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align=right><P><B><?php print_string("typeofdialogue", "dialogue") ?>:</B></P></TD>
|
|
<td>
|
|
<?php
|
|
$options[0] = get_string("teachertostudent", "dialogue");
|
|
$options[1] = get_string("studenttostudent", "dialogue");
|
|
$options[2] = get_string("everybody", "dialogue");
|
|
choose_from_menu($options, "dialoguetype", $form->dialoguetype, "");
|
|
helpbutton("dialoguetype", get_string("typeofdialogue", "dialogue"), "dialogue");
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align=right><P><B><?php print_string("allowmultiple", "dialogue") ?>:</B></P></TD>
|
|
<td>
|
|
<?php
|
|
unset($options);
|
|
$options[0] = get_string("no"); $options[1] = get_string("yes");
|
|
choose_from_menu($options, "multipleconversations", $form->multipleconversations, "");
|
|
helpbutton("multiple", get_string("allowmultiple", "dialogue"), "dialogue");
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align=right><P><B><?php print_string("maildefault", "dialogue") ?>:</B></P></TD>
|
|
<td>
|
|
<?php
|
|
unset($options);
|
|
$options[0] = get_string("no"); $options[1] = get_string("yes");
|
|
choose_from_menu($options, "maildefault", $form->maildefault, "");
|
|
helpbutton("maildefault", get_string("maildefault", "dialogue"), "dialogue");
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
<center>
|
|
<input type="hidden" name=course value="<?php p($form->course) ?>">
|
|
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
|
|
<input type="hidden" name=section value="<?php p($form->section) ?>">
|
|
<input type="hidden" name=module value="<?php p($form->module) ?>">
|
|
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
|
|
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
|
|
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
|
|
<input type="submit" value="<?php print_string("savechanges") ?>">
|
|
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
|
|
</form>
|
|
</center>
|