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