4 <?php if (isset($PREVIEW_CONTENT)) { ?>
5 <p><strong><?=_("Preview only! Changes not saved.")?></strong>
6 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
7 but it does not work currently with the <base> declared in top.tmpl.
8 I think we need to do away with using <base> altogether... -->
9 <?= fmt("Please continue editing. (You'll find your %s at the bottom of the page.)",
10 /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*) */) ?>
12 <hr class="printer" />
13 <?= $PREVIEW_CONTENT ?>
14 <hr class="printer" />
17 <?= $PAGE_LOCKED_MESSAGE ?>
18 <?= $CONCURRENT_UPDATE_MESSAGE ?>
20 <?php if (! $IS_CURRENT) { ?>
21 <p><strong><?=_("Warning: You are editing an old revision.")?>
22 <?=_("Saving this page will overwrite the current version.")?></strong></p>
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 <form method="post" id="editpage" name="editpage"
32 action="<?= $request->getPostURL() ?>"
33 accept-charset="<?=CHARSET?>">
34 <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
35 <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
36 <br class="clear-floats" />
38 <tr><td><?= $EDIT_TOOLBAR ?></td>
39 <td align="right"><div id="editarea-size">
41 <label for="pref-editHeight"><b><?=_("H")?></b></label> <?=$HEIGHT_PREF?>
42 <label for="pref-editWidth"><b><?=_("W")?></b></label> <?=$WIDTH_PREF?>
43 <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
44 </div></td></tr></table>
45 <?php if (!empty($WYSIWYG_B)) { ?>
46 <br /><div class="hint"><strong>Warning:</strong> Switching to the Wysiwyg editor will not keep your changes.</div>
48 <a id="editarea"></a><?=$EDIT_TEXTAREA?>
49 <!-- FIXME: fix layout, move CSS to CSS -->
50 <div class="toolbar" style="text-align: center;">
51 <label for="edit-summary"><?=_("Summary").':'?></label> <?=$SUMMARY_INPUT?>
53 <?php if (ENABLE_CAPTCHA) { ?>
54 <div class="toolbar" style="text-align: center;">
55 <?php echo $CAPTCHA_IMAGE ?><br/>
56 <?php echo $CAPTCHA_LABEL ?><?= $CAPTCHA_INPUT ?>
59 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
60 cellpadding="0" cellspacing="0" border="0">
63 <?=$MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?=_("This is a minor change.")?></label><br />
64 <?=$OLD_MARKUP_CB ?> <label for="useOldMarkup"><?=_("Use old markup")?></label> <?=$OLD_MARKUP_CONVERT?>
67 <?php if (!empty($WYSIWYG_B)){ ?>
68 <?=$WYSIWYG_B?><?=$SEP?>
71 <?php if ($SAVE_B) { ?>
72 <?=$SEP?><?= $SAVE_B ?>
74 <?=$SEP?><?= $CHANGES_B ?>
76 <td> <?=$AUTHOR_MESSAGE?></td>
80 <?php if ($user->isAdmin()) { ?>
81 <?= $LOCKED_CB ?> <label for="edit-locked" title="<?=_("Make the page read-only?")?>"><?=_("Locked")?></label>
82 <?php if (ENABLE_PAGE_PUBLIC) { ?>
83 <?= $PUBLIC_CB ?> <label for="edit-public" title="<?=_("Export to a seperate public area?")?>"><?=_("Public")?></label>
86 <td colspan="2" align="right">
87 <?php if (!$user->isAuthenticated()) { ?>
88 <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
95 <div style="width:100%;text-align:center;"><?php /*plugin UpLoad autolink=0 mode=edit size=30 */?></div>
99 <script type="text/javascript">
101 function showOldMarkupRules(show) {
102 if (document.getElementById) {
104 document.getElementById('newMarkup').style.display="block";
105 document.getElementById('oldMarkup').style.display="none";
107 document.getElementById('newMarkup').style.display="none";
108 document.getElementById('oldMarkup').style.display="block";
115 <div id="oldMarkup" class="wiki-edithelp">
116 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
117 <p><?= fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
118 <?plugin IncludePage page=_("Help/OldTextFormattingRules") section=_("Synopsis") quiet=1?>
120 <div id="newMarkup" class="wiki-edithelp">
121 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
122 <p><?= fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
123 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
126 <script type="text/javascript">
128 if (document.getElementById) {
129 showOldMarkupRules(document.getElementById('useOldMarkup').checked);