]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/editpage.tmpl
Add missing </td>.
[SourceForge/phpwiki.git] / themes / default / templates / editpage.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: editpage.tmpl,v 1.20 2002-02-06 04:42:18 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>
22 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
23      but it does not work currently with the <base> declared in top.tmpl.
24      I think we need to do away with using <base> altogether... -->
25      Please continue editing.  (You'll find your edit area at the bottom of the page.)
26   </p>
27   <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
28 <?php } ?>
29
30 <?= $PAGE_LOCKED_MESSAGE ?>
31 <?= $CONCURRENT_UPDATE_MESSAGE ?>
32
33 <?php if (! $IS_CURRENT) { ?>
34   <p><strong><?=_("Warning: You are editing an old revision.")?>
35         <?=_("Saving this page will overwrite the current version.")?></strong></p>
36   <hr class="ignore" noshade="noshade" />
37 <?php } ?>
38
39 <?php /*
40  * FIXME: Hack! 
41  * The funky URL used for the form action parameter is bogus.
42  * This is needed, otherwise the redirect to the real browser
43  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
44  * a redirect from a page to itself.)
45  *
46  * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
47  * to wrap long lines.
48  *
49  */ ?>
50
51 <form method="post" name="editpage"
52       action="<?=WikiURL($page,array('action'=>'edit'))?>"
53       accept-charset="<?=CHARSET?>">
54   <!-- FIXME: fix layout, move CSS to CSS -->
55   <div style="text-align: right; vertical-align: top;">
56     <small><?=_("Edit Area Size:")?> <b><?=_("H")?></b></small>
57     <?=$HeightI?>
58     <small><b><?=_("W")?></b></small>
59     <?=$WidthI?>
60     <noscript><?=Button("submit:", _("Adjust"))?></noscript>
61   </div>
62
63   <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
64
65 <!-- FIXME: fix layout, move CSS to CSS -->
66 <div class="toolbar" style="text-align: center;">
67   <?=_("Summary:")?> <?=$SUMMARY_INPUT?>
68 </div>
69 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
70        cellpadding="0" cellspacing="0" border="0">
71 <tr valign="middle">
72   <td> 
73     <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?><br />
74     <?=$NEW_MARKUP_CB?>  <?=_("Use new markup")?>
75   </td>
76   <td align="center">
77     <?= $PREVIEW_B ?>
78     <?php if ($SAVE_B)  { ?> 
79       <?=$s?><?= $SAVE_B ?>
80     <?php } ?>
81   </td>
82   <td align="right">
83     <?= $user->isSignedIn()
84         ? ''
85         : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
86     <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
87   </td>
88 </tr>
89 <?php if ($user->isadmin()) { ?>
90   <tr>
91     <td><?= $LOCKED_CB ?> <?=_("Locked")?></td>
92   </tr>
93 <?php } ?>
94 </table>
95
96 <hr noshade="noshade" />
97
98 <div class="wiki-edithelp">
99 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
100 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
101 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
102 </div>
103 <?=$HIDDEN_INPUTS?>
104 </form>