2 if (!isset($form->name
)) {
5 if (!isset($form->intro
)) {
8 if (!isset($form->deleteafter
)) {
9 $form->deleteafter
= 0;
11 if (!isset($form->dialoguetype
)) {
12 $form->dialoguetype
= 0;
14 if (!isset($form->multipleconversations
)) {
15 $form->multipleconversations
= 0;
17 if (!isset($form->maildefault
)) {
18 $form->maildefault
= 0;
20 print_heading_with_help(get_string("furtherinformation", "dialogue"), "info", "dialogue");
23 <form name=
"form" method=
"post" action=
"mod.php">
26 <td align=
"right"><p><b><?php print_string("dialoguename", "dialogue") ?>:
</b></p></td>
28 <input type=
"text" name=
"name" size=
"30" value=
"<?php p($form->name) ?>" />
32 <td align
="right"><p
><b
><?php
print_string("dialogueintro", "dialogue") ?>:
</b></p>
35 helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
37 emoticonhelpbutton("form", "intro");
44 <?php print_textarea($usehtmleditor, 20, 50, 680, 400, "intro", $form->intro
); ?>
48 <td align=
"right"><p><b><?php print_string("deleteafter", "dialogue") ?>:
</b></p></td>
51 require("$CFG->dirroot/mod/dialogue/lib.php");
52 choose_from_menu($DIALOGUE_DAYS, "deleteafter", $form->deleteafter
, "");
53 helpbutton("deleteafter", get_string("deleteafter", "dialogue"), "dialogue");
59 <td align=
"right"><p><b><?php print_string("typeofdialogue", "dialogue") ?>:
</b></p></td>
62 $options[0] = get_string("teachertostudent", "dialogue");
63 $options[1] = get_string("studenttostudent", "dialogue");
64 $options[2] = get_string("everybody", "dialogue");
65 choose_from_menu($options, "dialoguetype", $form->dialoguetype
, "");
66 helpbutton("dialoguetype", get_string("typeofdialogue", "dialogue"), "dialogue");
72 <td align=
"right"><p><b><?php print_string("allowmultiple", "dialogue") ?>:
</b></p></td>
76 $options[0] = get_string("no"); $options[1] = get_string("yes");
77 choose_from_menu($options, "multipleconversations", $form->multipleconversations
, "");
78 helpbutton("multiple", get_string("allowmultiple", "dialogue"), "dialogue");
84 <td align=
"right"><p><b><?php print_string("mailnotification", "dialogue") ?>:
</b></p></td>
88 $options[0] = get_string("no"); $options[1] = get_string("yes");
89 choose_from_menu($options, "maildefault", $form->maildefault
, "");
90 helpbutton("maildefault", get_string("mailnotification", "dialogue"), "dialogue");
94 <?php print_standard_coursemodule_settings($form); ?>
98 <input type=
"hidden" name=
"course" value=
"<?php p($form->course) ?>" />
99 <input type
="hidden" name
="sesskey" value
="<?php p($form->sesskey) ?>" />
100 <input type
="hidden" name
="coursemodule" value
="<?php p($form->coursemodule) ?>" />
101 <input type
="hidden" name
="section" value
="<?php p($form->section) ?>" />
102 <input type
="hidden" name
="module" value
="<?php p($form->module) ?>" />
103 <input type
="hidden" name
="modulename" value
="<?php p($form->modulename) ?>" />
104 <input type
="hidden" name
="instance" value
="<?php p($form->instance) ?>" />
105 <input type
="hidden" name
="mode" value
="<?php p($form->mode) ?>" />
106 <input type
="submit" value
="<?php print_string("savechanges
") ?>" />
107 <input type
="submit" name
="cancel" value
="<?php print_string("cancel
") ?>" />