3 * The funky URL used for the form action parameter is bogus.
4 * This is needed, otherwise the redirect to the real browser
5 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
6 * a redirect from a page to itself.)
10 <form method="post" name="editpage"
11 action="<?php echo $request->getPostURL() ?>"
12 accept-charset="UTF-8">
13 <table class="toolbar" width="100%"
14 cellpadding="0" cellspacing="0" border="0">
17 <?php echo $PAGE_LOCKED_MESSAGE ?>
18 <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
19 <?php if (!$IS_CURRENT) { ?>
20 <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
21 <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
25 <?php echo $PREVIEW_B ?>
26 <?php if ($SAVE_B) { ?>
27 <?php echo $SEP?> <?php echo $SAVE_B ?>
32 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
34 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
36 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
38 <?php echo $MINOR_EDIT_CB ?>
39 <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
40 WikiLink(_("RecentEdits"))) ?>
43 <?php echo _("Edit Area Size")?>: <b><?php echo _("H")?></b> <?php echo $HEIGHT_PREF?>
44 <b><?php echo _("W")?></b> <?php echo $WIDTH_PREF?>
45 <?php echo Button("submit:", _("Adjust"), 'wikiaction')?>
47 <?php echo $OLD_MARKUP_CB?> <?php echo _("Use old markup")?>
50 <?php if (isset($PREVIEW_CONTENT)) { ?>
52 <p><strong><?php echo _("Preview only! Changes not saved.")?></strong></p>
53 <?php echo $PREVIEW_CONTENT ?>
57 <script type="text/javascript">
59 function showOldMarkupRules(show) {
60 if (document.getElementById) {
62 document.getElementById('newMarkup').style.display="block";
63 document.getElementById('oldMarkup').style.display="none";
65 document.getElementById('newMarkup').style.display="none";
66 document.getElementById('oldMarkup').style.display="block";
73 <div id="oldMarkup" class="wiki-edithelp">
74 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
75 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
76 <?plugin IncludePage page=_("Help")."/"._("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
78 <div id="newMarkup" class="wiki-edithelp">
79 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
80 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
81 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
83 <?php echo $HIDDEN_INPUTS?>
86 <script type="text/javascript">
88 if (document.getElementById) {
89 showOldMarkupRules(document.getElementById('useOldMarkup').checked);