2 <!-- $Id: editpage.tmpl,v 1.19 2002-12-17 18:32:49 dairiki 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.)
31 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
36 <form method="post" name="editpage"
37 action="<?=WikiURL($page,array('action'=>'edit'))?>"
38 accept-charset="<?=CHARSET?>">
39 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
40 cellpadding="0" cellspacing="0" border="0">
43 <?= $PAGE_LOCKED_MESSAGE ?>
44 <?= $CONCURRENT_UPDATE_MESSAGE ?>
45 <?php if (!$IS_CURRENT) { ?>
46 <p><strong><?=_("Warning: You are editing an old revision.")?>
47 <?=_("Saving this page will overwrite the current version.")?></strong></p>
52 <?php if ($SAVE_B) { ?>
53 <?=$s?> <?= $SAVE_B ?>
58 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
60 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
62 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
65 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
66 WikiLink(_("RecentEdits"))) ?>
69 <?=_("Edit Area Size")?>: <b><?=_("H")?></b>
73 <?=Button("submit:", _("Adjust"), 'wikiaction')?>
75 <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
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?>
114 <script language="JavaScript1.3" type="text/javascript">
116 if (document.getElementById) {
117 showOldMarkupRules(document.getElementById('useOldMarkup').checked);