mirror of
https://github.com/moodle/moodle.git
synced 2025-02-02 22:29:18 +01:00
39fcb981b8
I've left out stuff that didn't seem necessary ... including a lot of the Wiki plugins which were quote large... I'm not sure if this is currently working ... I'm about to try it out.
62 lines
2.2 KiB
HTML
62 lines
2.2 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="<? print $userid; ?>">
|
|
<INPUT TYPE="HIDDEN" NAME="groupid" VALUE="<? print $groupid ?>">
|
|
<INPUT TYPE="HIDDEN" NAME="action" VALUE="<? print $action; ?>">
|
|
<INPUT TYPE="HIDDEN" NAME="id" VALUE="<? print $cm->id ?>">
|
|
<INPUT TYPE="HIDDEN" NAME="wikipage" VALUE="<? print $wikipage?>">
|
|
|
|
<CENTER>
|
|
<?
|
|
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) ?>">
|
|
<? 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) ?>">
|
|
<? if (!empty($err->deleteversions)) { formerr($err->deleteversions); } ?>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<input type="submit" name="proceed" value="<? print get_string("revertchanges","wiki"); ?>">
|
|
</center> |