]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/editpage.tmpl
Two new convenience functions in lib/Theme.php: WikiLink() and Button().
[SourceForge/phpwiki.git] / themes / default / templates / editpage.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: editpage.tmpl,v 1.17 2002-01-30 23:41:55 dairiki Exp $ -->
3 <?php
4 $WidthI = HTML::input(array('type' => 'text',
5                             'size' => 3,
6                             'name' => 'pref[editWidth]',
7                             'value' => $request->getPref('editWidth'),
8                             'onchange' => 'this.form.submit();'));
9
10 $HeightI = HTML::input(array('type' => 'text',
11                              'size' => 3,
12                              'name' => 'pref[editHeight]',
13                              'value' => $request->getPref('editHeight'),
14                              'onchange' => 'this.form.submit();'));
15
16
17 $s = $Theme->getButtonSeparator();
18 ?>
19
20 <?php if (isset($PREVIEW_CONTENT)) { ?>
21   <p><strong><?=_("Preview only!  Changes not saved.")?></strong></p>
22   <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
23 <?php } ?>
24
25 <?= $PAGE_LOCKED_MESSAGE ?>
26 <?= $CONCURRENT_UPDATE_MESSAGE ?>
27
28 <?php if (! $IS_CURRENT) { ?>
29   <p><strong><?=_("Warning: You are editing an old revision.")?>
30         <?=_("Saving this page will overwrite the current version.")?></strong></p>
31   <hr class="ignore" noshade="noshade" />
32 <?php } ?>
33
34 <?php /*
35  * FIXME: Hack! 
36  * The funky 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.)
40  *
41  * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
42  * to wrap long lines.
43  *
44  */ ?>
45
46 <form method="post" name="editpage"
47       action="<?=WikiURL($page,array('action'=>'edit'))?>"
48       accept-charset="<?=CHARSET?>">
49   <!-- FIXME: fix layout, move CSS to CSS -->
50   <div style="text-align: right; vertical-align: top;">
51     <small><?=_("Edit Area Size:")?> <b><?=_("H")?></b></small>
52     <?=$HeightI?>
53     <small><b><?=_("W")?></b></small>
54     <?=$WidthI?>
55     <noscript><?=Button("submit:", _("Adjust"))?></noscript>
56   </div>
57
58   <?=$EDIT_TEXTAREA?>
59
60 <!-- FIXME: fix layout, move CSS to CSS -->
61 <div class="toolbar" style="text-align: center;">
62   <?=_("Summary:")?> <?=$SUMMARY_INPUT?>
63 </div>
64 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
65        cellpadding="0" cellspacing="0" border="0">
66 <tr valign="middle">
67   <td> 
68     <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?><br />
69     <?=$NEW_MARKUP_CB?>  <?=_("Use new markup")?>
70   </td>
71   <td align="center">
72     <?= $PREVIEW_B ?>
73     <?php if ($SAVE_B)  { ?> 
74       <?=$s?><?= $SAVE_B ?>
75     <?php } ?>
76   </td>
77   <td align="right">
78     <?= $user->isSignedIn()
79         ? ''
80         : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
81     <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
82   </td>
83 </tr>
84 </table>
85
86 <hr noshade="noshade" />
87
88 <div class="wiki-edithelp">
89 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
90 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
91 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
92 </div>
93 <?=$HIDDEN_INPUTS?>
94 </form>