mirror of
https://github.com/moodle/moodle.git
synced 2025-02-02 14:19:07 +01:00
62 lines
2.3 KiB
HTML
62 lines
2.3 KiB
HTML
<?PHP
|
|
// Make sure all variables are defined
|
|
if (!isset($form->deleteversions)) {
|
|
$form->deleteversions = 1;
|
|
}
|
|
if (!isset($form->changesfield)) {
|
|
$form->changesfield = 72;
|
|
}
|
|
|
|
?>
|
|
<FORM ACTION="admin.php" METHOD="POST" ENCTYPE="multipart/form-data">
|
|
<INPUT TYPE="HIDDEN" NAME="userid" VALUE="<?php print $userid; ?>" />
|
|
<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<?php print $groupid ?>" />
|
|
<INPUT TYPE="HIDDEN" NAME="action" VALUE="<?php print $action; ?>" />
|
|
<INPUT TYPE="HIDDEN" NAME="id" VALUE="<?php print $cm->id ?>" />
|
|
<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<?php print $wikipage?>" />
|
|
|
|
<CENTER>
|
|
<?php
|
|
if($err->remark) {
|
|
formerr($err->remark);
|
|
}
|
|
?>
|
|
<TABLE cellpadding=5>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><?php print_string('authorfieldpattern','wiki') ?>:</B></P></TD>
|
|
<TD>
|
|
<INPUT type="text" name="authorfieldpattern" size=30 value="<?php p($form->authorfieldpattern) ?>" />
|
|
<?php
|
|
helpbutton('revertauthorfieldpattern', get_string('authorfieldpattern', 'wiki'), 'wiki');
|
|
if (!empty($err->authorfieldpattern)) { formerr($err->authorfieldpattern); }
|
|
?>
|
|
</TD>
|
|
</TR>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><?php print_string('changesfield','wiki') ?>:</B></P></TD>
|
|
<TD>
|
|
<INPUT type="text" name="changesfield" size=30 value="<?php p($form->changesfield) ?>" />
|
|
<?php if (!empty($err->changesfield)) { formerr($err->changesfield); } ?>
|
|
</TD>
|
|
</TR>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><?php print_string('howtooperate', 'wiki') ?>:</B></P></TD>
|
|
<TD>
|
|
<?php
|
|
$operations=array( "lastonly" => get_string("revertlastonly","wiki"),
|
|
"allsince" => get_string("revertallsince","wiki"),
|
|
"the" => get_string("revertthe","wiki"));
|
|
choose_from_menu($operations, "howtooperate", $form->howtooperate, "");
|
|
?>
|
|
</TD>
|
|
</TR>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><?php print_string('deleteversions','wiki') ?>:</B></P></TD>
|
|
<TD>
|
|
<INPUT type="text" name="deleteversions" size=2 value="<?php p($form->deleteversions) ?>" />
|
|
<?php if (!empty($err->deleteversions)) { formerr($err->deleteversions); } ?>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<input type="submit" name="proceed" value="<?php print get_string("revertchanges","wiki"); ?>" />
|
|
</center> |