mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Wiki module, copied from contrib/wiki.
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.
This commit is contained in:
parent
fdd1eee7e6
commit
39fcb981b8
55 changed files with 16941 additions and 0 deletions
62
mod/wiki/revertpages.html
Normal file
62
mod/wiki/revertpages.html
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?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>
|
Loading…
Add table
Add a link
Reference in a new issue