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