2 <!-- $Id: editpage.tmpl,v 1.2 2004-06-03 12:30:38 rurban Exp $ -->
5 $WidthI = HTML::input(array('type' => 'text',
9 'name' => 'pref[editWidth]',
10 'value' => $request->getPref('editWidth'),
11 'onchange' => 'this.form.submit();'));
13 $HeightI = HTML::input(array('type' => 'text',
17 'name' => 'pref[editHeight]',
18 'value' => $request->getPref('editHeight'),
19 'onchange' => 'this.form.submit();'));
21 $s = $Theme->getButtonSeparator();
26 * The funky URL used for the form action parameter is bogus.
27 * This is needed, otherwise the redirect to the real browser
28 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
29 * a redirect from a page to itself.)
32 <div class="wikitext" id="editform">
33 <form method="post" name="editpage" id="editpage"
34 action="<?= $request->getPostURL() ?>"
35 accept-charset="<?=CHARSET?>">
36 <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
37 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
38 cellpadding="0" cellspacing="0" border="0">
41 <?= $PAGE_LOCKED_MESSAGE ?>
42 <?= $CONCURRENT_UPDATE_MESSAGE ?>
43 <?php if (!$IS_CURRENT) { ?>
44 <p><strong><?=_("Warning: You are editing an old revision.")?>
45 <?=_("Saving this page will overwrite the current version.")?></strong></p>
50 <?php if ($SAVE_B) { ?>
51 <?=$s?> <?= $SAVE_B ?>
57 <tr><td><?= $EDIT_TOOLBAR ?></td>
58 <td align="right"><div id="editarea-size">
60 <b><?=_("H")?></b> <?=$HeightI?>
61 <b><?=_("W")?></b> <?=$WidthI?>
62 <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
63 </div></td></tr></table>
65 <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
67 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
69 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
71 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
74 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
75 WikiLink(_("RecentEdits"))) ?>
78 <?php if (isset($PREVIEW_CONTENT)) { ?>
80 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
81 <?= $PREVIEW_CONTENT ?>
85 <script language="JavaScript1.3" type="text/javascript">
87 function showOldMarkupRules(show) {
88 if (document.getElementById) {
90 document.getElementById('newMarkup').style.display="block";
91 document.getElementById('oldMarkup').style.display="none";
93 document.getElementById('newMarkup').style.display="none";
94 document.getElementById('oldMarkup').style.display="block";
101 <div id="oldMarkup" class="wiki-edithelp">
102 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
103 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
104 <?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
106 <div id="newMarkup" class="wiki-edithelp">
107 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
108 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
109 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
115 <script language="JavaScript1.3" type="text/javascript">
117 if (document.getElementById) {
118 showOldMarkupRules(document.getElementById('useOldMarkup').checked);