File: mod.html

package info (click to toggle)
moodle 1.4.4.dfsg.1-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 57,876 kB
  • ctags: 29,496
  • sloc: php: 271,617; sql: 5,084; xml: 702; perl: 638; sh: 403; java: 283; makefile: 42; pascal: 21
file content (43 lines) | stat: -rw-r--r-- 1,449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php 
    if (!isset($form->content)) {
        $form->content = '';
    }
?>

<form name="form" method="post" action="mod.php">
<center>
<table cellpadding=5>
<tr valign=top>
    <td align=right><p><b><?php  print_string("labeltext", "label") ?>:</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("form", "description");
        } 
      ?>
      <br />
    </font>
    </td>
    <td>
    <?php
       print_textarea($usehtmleditor, 20, 60, 680, 400, "content", $form->content);
    ?>
    </td>
</tr>

</table>
<!-- these hidden variables are always the same -->
<input type="hidden" name=course        value="<?php  p($form->course) ?>">
<input type="hidden" name=coursemodule  value="<?php  p($form->coursemodule) ?>">
<input type="hidden" name=section       value="<?php  p($form->section) ?>">
<input type="hidden" name=module        value="<?php  p($form->module) ?>">
<input type="hidden" name=modulename    value="<?php  p($form->modulename) ?>">
<input type="hidden" name=instance      value="<?php  p($form->instance) ?>">
<input type="hidden" name=mode          value="<?php  p($form->mode) ?>">
<input type="submit" value="<?php  print_string("savechanges") ?>">
</center>
</form>