fixed log action inserts
[moodle.git] / mod.html
CommitLineData
02039379
PS
1<?php // $Id: mod.html,v 1.1 2006/03/12 18:39:59 skodak Exp $
2require($CFG->dirroot.'/mod/book/lib.php');
3
4if (empty($form->name)) {
5 $form->name = '';
6}
7if (empty($form->summary)) {
8 $form->summary = '';
9}
10if (empty($form->numbering)) {
11 $form->numbering = NUM_NONE;
12}
13if (empty($form->disableprinting)) {
14 $form->disableprinting = 0;
15}
16if (empty($form->customtitles)) {
17 $form->customtitles = 0;
18}
19?>
20
21<form name="form" method="post" action="mod.php">
22<table cellpadding="5" align="center">
23<tr valign="top">
24 <td align="right"><p><b><?php print_string('name') ?>:</b></p></td>
25 <td>
26 <input type="text" name="name" size="30" value="<?php p($form->name) ?>">
27 </td>
28</tr>
29
30<tr valign="top">
31 <td align="right"><p><b><?php print_string('summary') ?>:</b></p>
32 <font size="1">
33 <?php
34 helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
35 echo "<br />";
36 helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
37 echo "<br />";
38 if ($usehtmleditor) {
39 helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
40 } else {
41 emoticonhelpbutton("form", "description");
42 }
43 ?>
44 <br />
45 </font>
46 </td>
47 <td>
48 <?php print_textarea($usehtmleditor, 20, 60, 680, 400, 'summary', $form->summary); ?>
49 </td>
50</tr>
51
52<tr valign="top">
53 <td align="right"><p><b><?php print_string('numbering', 'book') ?>:</b></p></td>
54 <td>
55 <?php
56 choose_from_menu($NUMBERING_TYPE, 'numbering', $form->numbering, '');
57 helpbutton('numberingtype', get_string('numbering', 'book'), 'book');
58 ?>
59 </td>
60</tr>
61
62<tr valign="top">
63 <td align="right"><p><b><?php print_string('disableprinting', 'book') ?>:</b></p></td>
64 <td>
65 <select size="1" name="disableprinting">
66 <option value="1" <?php
67 if ( $form->disableprinting ) {
68 echo 'selected="selected"';
69 }
70 ?>><?php echo get_string('yes') ?>
71 </option>
72 <option value="0" <?php
73 if ( !$form->disableprinting ) {
74 echo 'selected="selected"';
75 }
76 ?>><?php echo get_string('no') ?>
77 </option>
78 </select> <?php helpbutton('disableprinting', get_string('disableprinting', 'book'), 'book') ?>
79 </td>
80</tr>
81
82<tr valign="top">
83 <td align="right"><p><b><?php print_string('customtitles', 'book') ?>:</b></p></td>
84 <td>
85 <select size="1" name="customtitles">
86 <option value="1" <?php
87 if ( $form->customtitles ) {
88 echo 'selected="selected"';
89 }
90 ?>><?php echo get_string('yes') ?>
91 </option>
92 <option value="0" <?php
93 if ( !$form->customtitles ) {
94 echo 'selected="selected"';
95 }
96 ?>><?php echo get_string('no') ?>
97 </option>
98 </select> <?php helpbutton('customtitles', get_string('customtitles', 'book'), 'book') ?>
99 </td>
100</tr>
101
102
103</table>
104<center>
105 <input type="submit" value="<?php print_string('savechanges') ?>" />
106</center>
107 <input type="hidden" name="course" value="<?php p($form->course) ?>" />
108 <input type="hidden" name="sesskey" value="<?php p($form->sesskey) ?>" />
109 <input type="hidden" name="coursemodule" value="<?php p($form->coursemodule) ?>" />
110 <input type="hidden" name="section" value="<?php p($form->section) ?>" />
111 <input type="hidden" name="module" value="<?php p($form->module) ?>" />
112 <input type="hidden" name="modulename" value="<?php p($form->modulename) ?>" />
113 <input type="hidden" name="instance" value="<?php p($form->instance) ?>" />
114 <input type="hidden" name="mode" value="<?php p($form->mode) ?>" />
115</form>
116