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="<?= $request->getPostURL() ?>"
15 accept-charset="<?=CHARSET?>">
16 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
17 cellpadding="0" cellspacing="0" border="0">
20 <?= $PAGE_LOCKED_MESSAGE ?>
21 <?= $CONCURRENT_UPDATE_MESSAGE ?>
22 <?php if (!$IS_CURRENT) { ?>
23 <p><strong><?=_("Warning: You are editing an old revision.")?>
24 <?=_("Saving this page will overwrite the current version.")?></strong></p>
29 <?php if ($SAVE_B) { ?>
30 <?=$SEP?> <?= $SAVE_B ?>
35 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
37 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
39 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
42 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
43 WikiLink(_("RecentEdits"))) ?>
46 <?=_("Edit Area Size")?>: <b><?=_("H")?></b> <?=$HEIGHT_PREF?>
47 <b><?=_("W")?></b> <?=$WIDTH_PREF?>
48 <?=Button("submit:", _("Adjust"), 'wikiaction')?>
50 <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
53 <?php if (isset($PREVIEW_CONTENT)) { ?>
55 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
56 <?= $PREVIEW_CONTENT ?>
60 <script language="JavaScript1.3" 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><?= 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><?= fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
84 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
89 <script language="JavaScript1.3" type="text/javascript">
91 if (document.getElementById) {
92 showOldMarkupRules(document.getElementById('useOldMarkup').checked);