2 // make sure all variables are defined
3 if (empty($form->shortname
)) {
6 if (empty($form->fullname
)) {
9 if (empty($form->summary
)) {
12 if (empty($form->reason
)) {
15 if (empty($usehtmleditor)) {
18 if (empty($form->password
)) {
22 <form method=
"post" action=
"request.php" name=
"request">
23 <table cellpadding=
"9" cellspacing=
"0" >
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"]); ?>
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"]); ?>
39 <td align=
"right"><?php print_string("summary") ?>:
</td>
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"]);
48 <td align=
"right"><?php print_string("courserequestreason") ?>:
</td>
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"]);
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"]); ?>
65 <td><input type=
"submit" value=
"<?php print_string("savechanges
") ?>" /></td
>
68 <input type
="hidden" name
="sesskey" value
="<?php echo $form->sesskey ?>" />