fixed log action inserts
[moodle.git] / edit.html
CommitLineData
02039379
PS
1<!-- $Id: edit.html,v 1.1 2006/03/12 18:39:59 skodak Exp $ //-->
2
3<form name="chaptereditform" method="post" action="edit.php">
4<table align="center" cellpadding="5">
5
6<tr valign="top">
7 <td align="right">
8 <b><?php print_string("chaptertitle", "book") ?>:</b>
9 </td>
10 <td align="left">
11 <input type="text" name="title" size="30" value="<?php p($chapter->title) ?>">
12 </td>
13</tr>
14
15<tr valign="top">
16 <td align="right">
17 <b><?php print_string('subchapter', 'book') ?>:</b>
18 </td>
19 <td align="left">
20 <?php
21 if ($chapter->subchapter) {
22 $selected = ' checked="checked"';
23 } else {
24 $selected = '';
25 }
26 echo '<input name="subchapter" type="checkbox" value="1"'.$selected.' />';
27 ?>
28 </td>
29</tr>
30
31<tr valign="top">
32 <td valign="top" align="right">
33 <p><b><?php print_string('content', 'book') ?>:</b></p>
34 <font size="1">
35 <?PHP
36 helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
37 echo '<br />';
38 if ($usehtmleditor) {
39 helpbutton('richtext', get_string('helprichtext'), 'moodle', true, true);
40 } else {
41 emoticonhelpbutton('theform', 'text');
42 }
43 ?><br />
44 </font>
45 </td>
46 <td align="center">
47 <?php print_textarea($usehtmleditor, 20, 60, 630, 400, 'content', $chapter->content); ?>
48 </td>
49</tr>
50</table>
51<center>
52 <input type="submit" value="<?php print_string('savechanges') ?>" />
53 <input type="reset" value="<?php print_string('revert') ?>" />
54 <?php
55 if($chapter->id == -1) {
56 echo '<font size="-1"> (<a href="import.php?id='.$cm->id.'">'.get_string('doimport', 'book').'</a>)</font>';
57 }
58 ?>
59</center>
60 <input type="hidden" name="id" value="<?php p($cm->id) ?>" />
61 <input type="hidden" name="pagenum" value="<?php p($chapter->pagenum) ?>" />
62 <input type="hidden" name="chapterid" value="<?php p($chapter->id) ?>" />
63 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
64</form>