File: request.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (69 lines) | stat: -rw-r--r-- 2,476 bytes parent folder | download | duplicates (2)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
// make sure all variables are defined
if (empty($form->shortname)) {
    $form->shortname = '';
}
if (empty($form->fullname)) {
    $form->fullname = '';
}
if (empty($form->summary)) {
    $form->summary = '';
}
if (empty($form->reason)) {
    $form->reason = '';
}
if (empty($usehtmleditor)) {
    $usehtmleditor = 0;
}
if (empty($form->password)) {
    $form->password = '';
}
?>
<form method="post" action="request.php" name="request">
<table cellpadding="9" cellspacing="0" >
<tr valign="top">
    <td align="right"><?php  print_string("fullname") ?>:</td>
    <td><input type="text" name="fullname" maxlength="254" size="50" value="<?php  p($form->fullname) ?>" alt="<?php  print_string("fullname") ?>" />
    <?php  helpbutton("coursefullname", get_string("fullname")) ?>
    <?php  if (isset($err["fullname"])) formerr($err["fullname"]); ?>
    </td>
</tr>
<tr valign="top">
    <td align="right"><?php  print_string("shortname") ?>:</td>
    <td><input type="text" name="shortname" maxlength="15"  size="10" value="<?php  p($form->shortname) ?>" alt="<?php  print_string("shortname") ?>" />
    <?php  helpbutton("courseshortname", get_string("shortname")) ?>
    <?php  if (isset($err["shortname"])) formerr($err["shortname"]); ?>
    </td>
</tr>
<tr valign="top">
    <td align="right"><?php  print_string("summary") ?>:</td>
    <td><?php
        print_textarea($usehtmleditor, 10, 50, 660, 200, "summary", $form->summary);
        helpbutton("text", get_string("helptext"));
        if (isset($err["summary"])) formerr($err["summary"]);
    ?>
    </td>
</tr>
<tr valign="top">
    <td align="right"><?php  print_string("courserequestreason") ?>:</td>
    <td><?php
        print_textarea($usehtmleditor, 10, 50, 660, 200, "reason", $form->reason);
        helpbutton("text", get_string("helptext"));
        if (isset($err["reason"])) formerr($err["reason"]);
    ?>
    </td>
</tr>
<tr valign="top">
    <td align="right"><?php  print_string("enrolmentkey") ?>:</td>
    <td><input type="text" name="password" size="25" value="<?php  p($form->password) ?>" alt="<?php  print_string("enrolmentkey") ?>" />
    <?php  helpbutton("enrolmentkey", get_string("enrolmentkey")) ?>
    <?php  if (isset($err["password"])) formerr($err["password"]); ?>
    </td>
</tr>
<tr>
    <td></td>
    <td><input type="submit" value="<?php  print_string("savechanges") ?>" /></td>
</tr>
</table>
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
</form>