]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/editpage.tmpl
fixed login, theme selection, UserPreferences.
[SourceForge/phpwiki.git] / themes / Portland / templates / editpage.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: editpage.tmpl,v 1.18 2002-08-23 18:29:33 rurban Exp $ -->
3 <?php
4
5 $WidthI = HTML::input(array('type' => 'text',
6                             'size' => 3,
7                             'maxlength' => 4,
8                             'class' => "numeric",
9                             'name' => 'pref[editWidth]',
10                             'value' => $request->getPref('editWidth'),
11                             'onchange' => 'this.form.submit();'));
12
13 $HeightI = HTML::input(array('type' => 'text',
14                              'size' => 3,
15                              'maxlength' => 4,
16                              'class' => "numeric",
17                              'name' => 'pref[editHeight]',
18                              'value' => $request->getPref('editHeight'),
19                              'onchange' => 'this.form.submit();'));
20
21 $s = $Theme->getButtonSeparator();
22 ?>
23
24 <?php /*
25  * FIXME: Hack! 
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.)
30  *
31  * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
32  * to wrap long lines.
33  *
34  */ ?>
35
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">
41 <tr align="bottom">
42   <td>
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>
48     <?php } ?>
49   </td>
50   <td align="right">
51     <?= $PREVIEW_B ?>
52     <?php if ($SAVE_B) { ?>
53       <?=$s?> <?= $SAVE_B ?>
54     <?php } ?>
55   </td>
56 </tr>
57 </table>
58 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
59 <br />
60 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
61 <br />
62 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
63 <br />
64 <?= $MINOR_EDIT_CB ?>
65 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
66         WikiLink(_("RecentEdits"))) ?>
67 <br />
68 <p>
69   <?=_("Edit Area Size")?>: <b><?=_("H")?></b>
70   <?=$HeightI?>
71   <b><?=_("W")?></b>
72   <?=$WidthI?>
73   <?=Button("submit:", _("Adjust"), 'wikiaction')?>
74   <br />
75   <?=$NEW_MARKUP_CB?>  <?=_("Use new markup")?>
76 </p>
77
78 <?php if (isset($PREVIEW_CONTENT)) { ?>
79   <hr />
80   <p><strong><?=_("Preview only!  Changes not saved.")?></strong></p>
81   <?= $PREVIEW_CONTENT ?>
82   <hr />
83 <?php } ?>
84 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
85 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
86 <div class="wiki-edithelp">
87 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
88 </div>
89 <?=$HIDDEN_INPUTS?>
90 </form>
91 <hr />