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 <fieldset class=
"invisiblefieldset">
13 <input type=
"hidden" name=
"userid" value=
"<?php print $userid; ?>" />
14 <input type
="hidden" name
="groupid" value
="<?php print $groupid ?>" />
15 <input type
="hidden" name
="action" value
="<?php print $action; ?>" />
16 <input type
="hidden" name
="id" value
="<?php print $cm->id ?>" />
17 <input type
="hidden" name
="wikipage" value
="<?php print $wikipage?>" />
19 <div
class="boxaligncenter">
22 formerr($err->remark
);
25 <table cellpadding=
"5">
27 <td align=
"right"><p><b><?php print_string('authorfieldpattern','wiki') ?>:
</b></p></td>
29 <input type=
"text" name=
"authorfieldpattern" size=
"30" value=
"<?php p($form->authorfieldpattern) ?>" />
31 helpbutton('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
32 if (!empty($err->authorfieldpattern
)) { formerr($err->authorfieldpattern
); }
37 <td align=
"right"><p><b><?php print_string('changesfield','wiki') ?>:
</b></p></td>
39 <input type=
"text" name=
"changesfield" size=
"30" value=
"<?php p($form->changesfield) ?>" />
40 <?php
if (!empty($err->changesfield
)) { formerr($err->changesfield
); } ?>
44 <td align=
"right"><p><b><?php print_string('howtooperate', 'wiki') ?>:
</b></p></td>
47 $operations=array( "lastonly" => get_string("revertlastonly","wiki"),
48 "allsince" => get_string("revertallsince","wiki"),
49 "the" => get_string("revertthe","wiki"));
50 choose_from_menu($operations, "howtooperate", $form->howtooperate
, "");
55 <td align=
"right"><p><b><?php print_string('deleteversions','wiki') ?>:
</b></p></td>
57 <input type=
"text" name=
"deleteversions" size=
"2" value=
"<?php p($form->deleteversions) ?>" />
58 <?php
if (!empty($err->deleteversions
)) { formerr($err->deleteversions
); } ?>
62 <input type=
"submit" name=
"proceed" value=
"<?php print get_string("revertchanges
","wiki
"); ?>" />
63 </div
></fieldset
></form
>