2 <!-- $Id: editpage.tmpl,v 1.1 2004-04-10 08:02:22 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.)
31 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
36 <div class="wikitext" id="editform">
37 <form method="post" name="editpage" id="editpage"
38 action="<?=WikiURL($page,array('action'=>'edit'))?>"
39 accept-charset="<?=CHARSET?>">
40 <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
41 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
42 cellpadding="0" cellspacing="0" border="0">
45 <?= $PAGE_LOCKED_MESSAGE ?>
46 <?= $CONCURRENT_UPDATE_MESSAGE ?>
47 <?php if (!$IS_CURRENT) { ?>
48 <p><strong><?=_("Warning: You are editing an old revision.")?>
49 <?=_("Saving this page will overwrite the current version.")?></strong></p>
54 <?php if ($SAVE_B) { ?>
55 <?=$s?> <?= $SAVE_B ?>
61 <?php if (isset($JS_SEARCHREPLACE)) { ?>
62 <span id="search-replace">
63 <?php /*TODO: use image icons here instead of text */ ?>
64 <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()">
65 <input type="button" class="gridbutton" value="<?=_("Search & Replace")?>" onclick="replace()">
68 <?=_("Edit Area Size")?>: <b><?=_("H")?></b>
72 <?=Button("submit:", _("Adjust"), 'wikiaction')?>
74 <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
76 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
78 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
80 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
83 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
84 WikiLink(_("RecentEdits"))) ?>
87 <?php if (isset($PREVIEW_CONTENT)) { ?>
89 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
90 <?= $PREVIEW_CONTENT ?>
94 <script language="JavaScript1.3" type="text/javascript">
96 function showOldMarkupRules(show) {
97 if (document.getElementById) {
99 document.getElementById('newMarkup').style.display="block";
100 document.getElementById('oldMarkup').style.display="none";
102 document.getElementById('newMarkup').style.display="none";
103 document.getElementById('oldMarkup').style.display="block";
110 <div id="oldMarkup" class="wiki-edithelp">
111 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
112 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
113 <?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
115 <div id="newMarkup" 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(_("GoodStyle"))) ?></p>
118 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
124 <script language="JavaScript1.3" type="text/javascript">
126 if (document.getElementById) {
127 showOldMarkupRules(document.getElementById('useOldMarkup').checked);