2 <!-- $Id: editpage.tmpl,v 1.1 2002-01-19 23:38:47 carstenklapp Exp $ -->
4 $SummaryInput = Element('input',
5 array('type' => 'text',
9 'value' => $FORMVARS['summary']));
11 $MinorEditCb = Element('input',
12 array('type' => 'checkbox',
13 'name' => 'minor_edit',
14 'checked' => (bool) $FORMVARS['minor_edit']));
16 $PreviewB = Element('input',
17 array('type' => 'submit',
20 'value' => _("Preview")));
21 $SaveB = Element('input',
22 array('type' => 'submit',
25 'value' => _("Save")));
28 $SignIn = new WikiTemplate('signin');
29 $SignIn->qreplace('FORMNAME', 'editpage');
31 $s = $Theme->getButtonSeparator();
36 * The <?=$ACTION?>EditPage URL used for the form action parameter is bogus.
37 * This is needed, otherwise the redirect to the real browser
38 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
39 * a redirect from a page to itself.)
41 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
46 <form method="post" action="<?=$ACTION?>EditPage" accept-charset="<?=CHARSET?>" name="editpage">
47 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
48 cellpadding="0" cellspacing="0" border="0"><tr align="baseline">
50 <?php if (isset($PREVIEW_CONTENT)) { ?>
51 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
52 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
55 <?php if (!$IS_CURRENT) { ?>
56 <p><strong><?=_("Warning: You are editing an old revision.")?>
57 <?=_("Saving this page will overwrite the current version.")?></strong></p>
60 <td align="right"><?= $PreviewB ?><?=$s?><?= $SaveB ?></td></tr>
62 <textarea class="wikiedit"
64 rows="<?=$EDIT_AREA_HEIGHT?>"
65 cols="<?=$EDIT_AREA_WIDTH?>"
66 wrap="virtual"><?=$FORMVARS['content']?></textarea>
68 <div class="toolbar" style="text-align: center;">
69 <?=_("Summary:")?> <?= $SummaryInput ?>
71 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
72 cellpadding="0" cellspacing="0" border="0"><tr valign="baseline">
74 <?= $MinorEditCb ?> <?=_("This is a minor change.")?>
77 <?php printf(_("Author will be logged as %s."),
78 QElement('em', $USERID)); ?>
84 <div name="#edit-tips"><?php
85 // FIXME: convert this to use the IncludePage plugin.
86 printf(_("You can change the size of the editing area in %s."),
87 LinkExistingWikiWord(_("UserPreferences")));
88 printf(" " . _("See %s tips for editing."),
89 LinkExistingWikiWord(_("GoodStyle")));
92 <div class="wiki-edithelp">
93 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
96 <input type="hidden" name="action" value="save" />
97 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
98 <input type="hidden" name="editversion" value="<?=$FORMVARS['editversion']?>" />
99 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />