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