Incorrect variable name used for parameter.
[moodle-linuxchix.git] / mod / dialogue / mod.html
blob4daad865f4cba565c33067276e93af1a06cd3bfa
1 <?php
2 if (!isset($form->name)) {
3 $form->name = "";
5 if (!isset($form->intro)) {
6 $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">
24 <table cellpadding=5>
25 <tr valign="top">
26 <td align="right"><p><b><?php print_string("dialoguename", "dialogue") ?>:</b></p></td>
27 <td>
28 <input type="text" name="name" size="30" value="<?php p($form->name) ?>" />
29 </td>
30 </tr>
31 <tr valign="top">
32 <td align="right"><p><b><?php print_string("dialogueintro", "dialogue") ?>:</b></p>
33 <font size="1">
34 <?php
35 helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
36 echo "<br />";
37 emoticonhelpbutton("form", "intro");
39 <br />
40 </font>
42 </td>
43 <td>
44 <?php print_textarea($usehtmleditor, 20, 50, 680, 400, "intro", $form->intro); ?>
45 </td>
46 </tr>
47 <tr valign="top">
48 <td align="right"><p><b><?php print_string("deleteafter", "dialogue") ?>:</b></p></td>
49 <td>
50 <?php
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");
55 </td>
56 </tr>
58 <tr>
59 <td align="right"><p><b><?php print_string("typeofdialogue", "dialogue") ?>:</b></p></td>
60 <td>
61 <?php
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");
68 </td>
69 </tr>
71 <tr>
72 <td align="right"><p><b><?php print_string("allowmultiple", "dialogue") ?>:</b></p></td>
73 <td>
74 <?php
75 unset($options);
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");
80 </td>
81 </tr>
83 <tr>
84 <td align="right"><p><b><?php print_string("mailnotification", "dialogue") ?>:</b></p></td>
85 <td>
86 <?php
87 unset($options);
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");
92 </td>
93 </tr>
94 <?php print_standard_coursemodule_settings($form); ?>
96 </table>
97 <center>
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") ?>" />
108 </center>
109 </form>