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?>" />
21 formerr($err->remark
);
26 <TD align=right
><P><B><?php print_string('authorfieldpattern','wiki') ?>:
</B></P></TD>
28 <INPUT type=
"text" name=
"authorfieldpattern" size=
30 value=
"<?php p($form->authorfieldpattern) ?>" />
30 helpbutton('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
31 if (!empty($err->authorfieldpattern
)) { formerr($err->authorfieldpattern
); }
36 <TD align=right
><P><B><?php print_string('changesfield','wiki') ?>:
</B></P></TD>
38 <INPUT type=
"text" name=
"changesfield" size=
30 value=
"<?php p($form->changesfield) ?>" />
39 <?php
if (!empty($err->changesfield
)) { formerr($err->changesfield
); } ?>
43 <TD align=right
><P><B><?php print_string('howtooperate', 'wiki') ?>:
</B></P></TD>
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
, "");
54 <TD align=right
><P><B><?php print_string('deleteversions','wiki') ?>:
</B></P></TD>
56 <INPUT type=
"text" name=
"deleteversions" size=
2 value=
"<?php p($form->deleteversions) ?>" />
57 <?php
if (!empty($err->deleteversions
)) { formerr($err->deleteversions
); } ?>
61 <input type=
"submit" name=
"proceed" value=
"<?php print get_string("revertchanges
","wiki
"); ?>" />