]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/editpage.tmpl
Two new convenience functions in lib/Theme.php: WikiLink() and Button().
[SourceForge/phpwiki.git] / themes / Portland / templates / editpage.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: editpage.tmpl,v 1.13 2002-01-30 23:41:55 dairiki Exp $ -->
3 <?php
4
5 $WidthI = HTML::input(array('type' => 'text',
6                             'size' => 3,
7                             'name' => 'pref[editWidth]',
8                             'value' => $request->getPref('editWidth'),
9                             'onchange' => 'this.form.submit();'));
10
11 $HeightI = HTML::input(array('type' => 'text',
12                              'size' => 3,
13                              'name' => 'pref[editHeight]',
14                              'value' => $request->getPref('editHeight'),
15                              'onchange' => 'this.form.submit();'));
16
17 $s = $Theme->getButtonSeparator();
18 ?>
19
20 <?php /*
21  * FIXME: Hack! 
22  * The funky URL used for the form action parameter is bogus.
23  * This is needed, otherwise the redirect to the real browser
24  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
25  * a redirect from a page to itself.)
26  *
27  * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
28  * to wrap long lines.
29  *
30  */ ?>
31
32 <form method="post" name="editpage"
33       action="<?=WikiURL($page,array('action'=>'edit'))?>"
34       accept-charset="<?=CHARSET?>">
35 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
36        cellpadding="0" cellspacing="0" border="0">
37 <tr align="bottom">
38   <td>
39     <?= $PAGE_LOCKED_MESSAGE ?>
40     <?= $CONCURRENT_UPDATE_MESSAGE ?>
41     <?php if (!$IS_CURRENT) { ?>
42       <p><strong><?=_("Warning: You are editing an old revision.")?>
43             <?=_("Saving this page will overwrite the current version.")?></strong></p>
44     <?php } ?>
45   </td>
46   <td align="right">
47     <?= $PREVIEW_B ?>
48     <?php if ($SAVE_B) { ?>
49       <?=$s?> <?= $SAVE_B ?>
50     <?php } ?>
51   </td>
52 </tr>
53 </table>
54 <?=$EDIT_TEXTAREA?>
55 <br />
56 <?=_("Summary:")?> <?= $SUMMARY_INPUT ?>
57 <br />
58 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
59 <br />
60 <?= $MINOR_EDIT_CB ?>
61 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
62         WikiLink(_("RecentEdits"))) ?>
63 <br />
64 <p>
65   <?=_("Edit Area Size:")?> <b><?=_("H")?></b>
66   <?=$HeightI?>
67   <b><?=_("W")?></b>
68   <?=$WidthI?>
69   <?=Button("submit:", _("Adjust"))?>
70   <br />
71   <?=$NEW_MARKUP_CB?>  <?=_("Use new markup")?>
72 </p>
73
74 <?php if (isset($PREVIEW_CONTENT)) { ?>
75   <hr />
76   <p><strong><?=_("Preview only!  Changes not saved.")?></strong></p>
77   <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
78   <hr />
79 <?php } ?>
80 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
81 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
82 <div class="wiki-edithelp">
83 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
84 </div>
85 <?=$HIDDEN_INPUTS?>
86 </form>
87 <hr />