6 * The funky URL used for the form action parameter is bogus.
7 * This is needed, otherwise the redirect to the real browser
8 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
9 * a redirect from a page to itself.)
13 <form method="post" name="editpage"
14 action="<?php echo $request->getPostURL() ?>"
15 accept-charset="<?php echo CHARSET?>">
16 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
17 cellpadding="0" cellspacing="0" border="0">
20 <?php echo $PAGE_LOCKED_MESSAGE ?>
21 <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
22 <?php if (!$IS_CURRENT) { ?>
23 <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
24 <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
28 <?php echo $PREVIEW_B ?>
29 <?php if ($SAVE_B) { ?>
30 <?php echo $SEP?> <?php echo $SAVE_B ?>
35 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
37 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
39 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
41 <?php echo $MINOR_EDIT_CB ?>
42 <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
43 WikiLink(_("RecentEdits"))) ?>
46 <?php echo _("Edit Area Size")?>: <b><?php echo _("H")?></b> <?php echo $HEIGHT_PREF?>
47 <b><?php echo _("W")?></b> <?php echo $WIDTH_PREF?>
48 <?php echo Button("submit:", _("Adjust"), 'wikiaction')?>
50 <?php echo $OLD_MARKUP_CB?> <?php echo _("Use old markup")?>
53 <?php if (isset($PREVIEW_CONTENT)) { ?>
55 <p><strong><?php echo _("Preview only! Changes not saved.")?></strong></p>
56 <?php echo $PREVIEW_CONTENT ?>
60 <script type="text/javascript">
62 function showOldMarkupRules(show) {
63 if (document.getElementById) {
65 document.getElementById('newMarkup').style.display="block";
66 document.getElementById('oldMarkup').style.display="none";
68 document.getElementById('newMarkup').style.display="none";
69 document.getElementById('oldMarkup').style.display="block";
76 <div id="oldMarkup" class="wiki-edithelp">
77 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
78 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
79 <?plugin IncludePage page=_("Help/OldTextFormattingRules") section=_("Synopsis") quiet=1?>
81 <div id="newMarkup" class="wiki-edithelp">
82 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
83 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
84 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
86 <?php echo $HIDDEN_INPUTS?>
89 <script type="text/javascript">
91 if (document.getElementById) {
92 showOldMarkupRules(document.getElementById('useOldMarkup').checked);