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