Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c54440410b
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (60 sloc) 2.155 kb
<!-- $Id: edit.html,v 1.2 2007/04/24 19:20:52 stronk7 Exp $ //-->
<form name="chaptereditform" method="post" action="edit.php">
<table align="center" cellpadding="5">
<tr valign="top">
<td align="right">
<b><?php print_string("chaptertitle", "book") ?>:</b>
</td>
<td align="left">
<input type="text" name="title" size="30" value="<?php p($chapter->title) ?>">
</td>
</tr>
<tr valign="top">
<td align="right">
<b><?php print_string('subchapter', 'book') ?>:</b>
</td>
<td align="left">
<?php
if ($chapter->subchapter) {
$selected = ' checked="checked"';
} else {
$selected = '';
}
echo '<input name="subchapter" type="checkbox" value="1"'.$selected.' />';
?>
</td>
</tr>
<tr valign="top">
<td valign="top" align="right">
<p><b><?php print_string('content', 'book') ?>:</b></p>
<font size="1">
<?PHP
helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
echo '<br />';
if ($usehtmleditor) {
helpbutton('richtext', get_string('helprichtext'), 'moodle', true, true);
} else {
emoticonhelpbutton('theform', 'text');
}
?><br />
</font>
</td>
<td align="center">
<?php print_textarea($usehtmleditor, 20, 60, 630, 400, 'content', $chapter->content, $course->id); ?>
</td>
</tr>
</table>
<center>
<input type="submit" value="<?php print_string('savechanges') ?>" />
<input type="reset" value="<?php print_string('revert') ?>" />
<?php
if($chapter->id == -1) {
echo '<font size="-1"> (<a href="import.php?id='.$cm->id.'">'.get_string('doimport', 'book').'</a>)</font>';
}
?>
</center>
<input type="hidden" name="id" value="<?php p($cm->id) ?>" />
<input type="hidden" name="pagenum" value="<?php p($chapter->pagenum) ?>" />
<input type="hidden" name="chapterid" value="<?php p($chapter->id) ?>" />
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
</form>
Jump to Line
Something went wrong with that request. Please try again.