Incorrect variable name used for parameter.
[moodle-linuxchix.git] / mod / wiki / revertpages.html
blob0ee37735dac506a7e5c6c0939452a3551dee2891
1 <?PHP
2 // Make sure all variables are defined
3 if (!isset($form->deleteversions)) {
4 $form->deleteversions = 1;
6 if (!isset($form->changesfield)) {
7 $form->changesfield = 72;
11 <FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
12 <INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
13 <INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
14 <INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
15 <INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
16 <INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
18 <CENTER>
19 <?php
20 if($err->remark) {
21 formerr($err->remark);
24 <TABLE cellpadding=5>
25 <TR valign=top>
26 <TD align=right><P><B><?php print_string('authorfieldpattern','wiki') ?>:</B></P></TD>
27 <TD>
28 <INPUT type="text" name="authorfieldpattern" size=30 value="<?php p($form->authorfieldpattern) ?>" />
29 <?php
30 helpbutton('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
31 if (!empty($err->authorfieldpattern)) { formerr($err->authorfieldpattern); }
33 </TD>
34 </TR>
35 <TR valign=top>
36 <TD align=right><P><B><?php print_string('changesfield','wiki') ?>:</B></P></TD>
37 <TD>
38 <INPUT type="text" name="changesfield" size=30 value="<?php p($form->changesfield) ?>" />
39 <?php if (!empty($err->changesfield)) { formerr($err->changesfield); } ?>
40 </TD>
41 </TR>
42 <TR valign=top>
43 <TD align=right><P><B><?php print_string('howtooperate', 'wiki') ?>:</B></P></TD>
44 <TD>
45 <?php
46 $operations=array( "lastonly" => get_string("revertlastonly","wiki"),
47 "allsince" => get_string("revertallsince","wiki"),
48 "the" => get_string("revertthe","wiki"));
49 choose_from_menu($operations, "howtooperate", $form->howtooperate, "");
51 </TD>
52 </TR>
53 <TR valign=top>
54 <TD align=right><P><B><?php print_string('deleteversions','wiki') ?>:</B></P></TD>
55 <TD>
56 <INPUT type="text" name="deleteversions" size=2 value="<?php p($form->deleteversions) ?>" />
57 <?php if (!empty($err->deleteversions)) { formerr($err->deleteversions); } ?>
58 </TD>
59 </TR>
60 </TABLE>
61 <input type="submit" name="proceed" value="<?php print get_string("revertchanges","wiki"); ?>" />
62 </center>