MDL-11082 Improved groups upgrade performance 1.8x -> 1.9; thanks Eloy for telling...
[moodle-pu.git] / mod / wiki / revertpages.html
blobafef5eb1c9dfa1adda4c5ec55aa99bcfd1284f96
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 <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">
20 <?php
21 if($err->remark) {
22 formerr($err->remark);
25 <table cellpadding="5">
26 <tr valign="top">
27 <td align="right"><p><b><?php print_string('authorfieldpattern','wiki') ?>:</b></p></td>
28 <td>
29 <input type="text" name="authorfieldpattern" size="30" value="<?php p($form->authorfieldpattern) ?>" />
30 <?php
31 helpbutton('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
32 if (!empty($err->authorfieldpattern)) { formerr($err->authorfieldpattern); }
34 </td>
35 </tr>
36 <tr valign="top">
37 <td align="right"><p><b><?php print_string('changesfield','wiki') ?>:</b></p></td>
38 <td>
39 <input type="text" name="changesfield" size="30" value="<?php p($form->changesfield) ?>" />
40 <?php if (!empty($err->changesfield)) { formerr($err->changesfield); } ?>
41 </td>
42 </tr>
43 <tr valign="top">
44 <td align="right"><p><b><?php print_string('howtooperate', 'wiki') ?>:</b></p></td>
45 <td>
46 <?php
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, "");
52 </td>
53 </tr>
54 <tr valign="top">
55 <td align="right"><p><b><?php print_string('deleteversions','wiki') ?>:</b></p></td>
56 <td>
57 <input type="text" name="deleteversions" size="2" value="<?php p($form->deleteversions) ?>" />
58 <?php if (!empty($err->deleteversions)) { formerr($err->deleteversions); } ?>
59 </td>
60 </tr>
61 </table>
62 <input type="submit" name="proceed" value="<?php print get_string("revertchanges","wiki"); ?>" />
63 </div></fieldset></form>