2 <!-- $Id: editpage.tmpl,v 1.41 2004-04-13 08:29:08 rurban Exp $ -->
4 $WidthI = HTML::input(array('type' => 'text',
8 'name' => 'pref[editWidth]',
9 'value' => $request->getPref('editWidth'),
10 'onchange' => 'this.form.submit();'));
12 $HeightI = HTML::input(array('type' => 'text',
16 'name' => 'pref[editHeight]',
17 'value' => $request->getPref('editHeight'),
18 'onchange' => 'this.form.submit();'));
20 $s = $Theme->getButtonSeparator();
23 <?php if (isset($PREVIEW_CONTENT)) { ?>
24 <p><strong><?=_("Preview only! Changes not saved.")?></strong>
25 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
26 but it does not work currently with the <base> declared in top.tmpl.
27 I think we need to do away with using <base> altogether... -->
28 <?= fmt("Please continue editing. (You'll find your %s at the bottom of the page.)",
29 /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*) */) ?>
31 <hr class="printer" noshade="noshade" />
32 <?= $PREVIEW_CONTENT ?>
33 <hr class="printer" noshade="noshade" />
36 <?= $PAGE_LOCKED_MESSAGE ?>
37 <?= $CONCURRENT_UPDATE_MESSAGE ?>
39 <?php if (! $IS_CURRENT) { ?>
40 <p><strong><?=_("Warning: You are editing an old revision.")?>
41 <?=_("Saving this page will overwrite the current version.")?></strong></p>
45 * The funky URL used for the form action parameter is bogus.
46 * This is needed, otherwise the redirect to the real browser
47 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
48 * a redirect from a page to itself.)
50 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
55 <form method="post" id="editpage" name="editpage"
56 action="<?= $request->getPostURL() ?>"
57 accept-charset="<?=CHARSET?>">
58 <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
59 <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
60 <br clear="all" class="clear-floats" />
61 <div id="editarea-size">
62 <?php if (isset($JS_SEARCHREPLACE)) { ?>
63 <span id="search-replace">
64 <?php /*TODO: use image icons here instead of text */ ?>
65 <?php /*TODO: replace this with Template('toolbar') */ ?>
66 <input class="gridbutton" name="rck" type="button" value="(<?= _("Undo") ?>)" onfocus="if(this.blur && pretxt_anzahl==0) this.blur()" onclick="rueck()"><input class="gridbutton" type="button" value="<?= _("Redo") ?>" onclick="speich()">
67 <input type="button" class="gridbutton" value="<?=_("Search & Replace")?>" onclick="replace()">
70 <?=_("Edit Area Size:")?>
71 <b><?=_("H")?></b> <?=$HeightI?>
72 <b><?=_("W")?></b> <?=$WidthI?>
73 <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
75 <a name="editarea"></a><?=$EDIT_TEXTAREA?>
77 <!-- FIXME: fix layout, move CSS to CSS -->
78 <div class="toolbar" style="text-align: center;">
79 <?=_("Summary:")?> <?=$SUMMARY_INPUT?>
81 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
82 cellpadding="0" cellspacing="0" border="0">
85 <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?><br />
86 <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
90 <?php if ($SAVE_B) { ?>
95 <?= $user->isSignedIn()
97 : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
98 <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
101 <?php if ($user->isadmin()) { ?>
103 <td><?= $LOCKED_CB ?> <?=_("Locked")?></td>
108 <hr noshade="noshade" />
110 <script language="JavaScript1.3" type="text/javascript">
112 function showOldMarkupRules(show) {
113 if (document.getElementById) {
115 document.getElementById('newMarkup').style.display="block";
116 document.getElementById('oldMarkup').style.display="none";
118 document.getElementById('newMarkup').style.display="none";
119 document.getElementById('oldMarkup').style.display="block";
126 <div id="oldMarkup" class="wiki-edithelp">
127 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
128 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
129 <?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
131 <div id="newMarkup" class="wiki-edithelp">
132 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
133 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
134 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
139 <script language="JavaScript1.3" type="text/javascript">
141 if (document.getElementById) {
142 showOldMarkupRules(document.getElementById('useOldMarkup').checked);