Changed comment about encoding (must be utf-8)
[moodle-linuxchix.git] / course / request.html
blob9ced5ff3b76ecce75a6efcf8e995f5077a10ee79
1 <?php
2 // make sure all variables are defined
3 if (empty($form->shortname)) {
4 $form->shortname = '';
6 if (empty($form->fullname)) {
7 $form->fullname = '';
9 if (empty($form->summary)) {
10 $form->summary = '';
12 if (empty($form->reason)) {
13 $form->reason = '';
15 if (empty($usehtmleditor)) {
16 $usehtmleditor = 0;
18 if (empty($form->password)) {
19 $form->password = '';
22 <form method="post" action="request.php" name="request">
23 <table cellpadding="9" cellspacing="0" >
24 <tr valign="top">
25 <td align="right"><?php print_string("fullname") ?>:</td>
26 <td><input type="text" name="fullname" maxlength="254" size="50" value="<?php p($form->fullname) ?>" alt="<?php print_string("fullname") ?>" />
27 <?php helpbutton("coursefullname", get_string("fullname")) ?>
28 <?php if (isset($err["fullname"])) formerr($err["fullname"]); ?>
29 </td>
30 </tr>
31 <tr valign="top">
32 <td align="right"><?php print_string("shortname") ?>:</td>
33 <td><input type="text" name="shortname" maxlength="15" size="10" value="<?php p($form->shortname) ?>" alt="<?php print_string("shortname") ?>" />
34 <?php helpbutton("courseshortname", get_string("shortname")) ?>
35 <?php if (isset($err["shortname"])) formerr($err["shortname"]); ?>
36 </td>
37 </tr>
38 <tr valign="top">
39 <td align="right"><?php print_string("summary") ?>:</td>
40 <td><?php
41 print_textarea($usehtmleditor, 10, 50, 660, 200, "summary", $form->summary);
42 helpbutton("text", get_string("helptext"));
43 if (isset($err["summary"])) formerr($err["summary"]);
45 </td>
46 </tr>
47 <tr valign="top">
48 <td align="right"><?php print_string("courserequestreason") ?>:</td>
49 <td><?php
50 print_textarea($usehtmleditor, 10, 50, 660, 200, "reason", $form->reason);
51 helpbutton("text", get_string("helptext"));
52 if (isset($err["reason"])) formerr($err["reason"]);
54 </td>
55 </tr>
56 <tr valign="top">
57 <td align="right"><?php print_string("enrolmentkey") ?>:</td>
58 <td><input type="text" name="password" size="25" value="<?php p($form->password) ?>" alt="<?php print_string("enrolmentkey") ?>" />
59 <?php helpbutton("enrolmentkey", get_string("enrolmentkey")) ?>
60 <?php if (isset($err["password"])) formerr($err["password"]); ?>
61 </td>
62 </tr>
63 <tr>
64 <td></td>
65 <td><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
66 </tr>
67 </table>
68 <input type="hidden" name="sesskey" value="<?php echo $form->sesskey ?>" />
69 </form>