]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/editpage.tmpl
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / themes / Portland / templates / editpage.tmpl
1 <?php // -*-php-*-
2 // rcs_id('$Id$');
3 ?>
4 <?php /*
5  * FIXME: Hack!
6  * The funky URL used for the form action parameter is bogus.
7  * This is needed, otherwise the redirect to the real browser
8  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
9  * a redirect from a page to itself.)
10  *
11  */ ?>
12
13 <form method="post" name="editpage"
14       action="<?= $request->getPostURL() ?>"
15       accept-charset="<?=CHARSET?>">
16 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
17        cellpadding="0" cellspacing="0" border="0">
18 <tr align="bottom">
19   <td>
20     <?= $PAGE_LOCKED_MESSAGE ?>
21     <?= $CONCURRENT_UPDATE_MESSAGE ?>
22     <?php if (!$IS_CURRENT) { ?>
23       <p><strong><?=_("Warning: You are editing an old revision.")?>
24             <?=_("Saving this page will overwrite the current version.")?></strong></p>
25     <?php } ?>
26   </td>
27   <td align="right">
28     <?= $PREVIEW_B ?>
29     <?php if ($SAVE_B) { ?>
30       <?=$SEP?> <?= $SAVE_B ?>
31     <?php } ?>
32   </td>
33 </tr>
34 </table>
35 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
36 <br />
37 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
38 <br />
39 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
40 <br />
41 <?= $MINOR_EDIT_CB ?>
42 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
43         WikiLink(_("RecentEdits"))) ?>
44 <br />
45 <p>
46   <?=_("Edit Area Size")?>: <b><?=_("H")?></b> <?=$HEIGHT_PREF?> 
47   <b><?=_("W")?></b> <?=$WIDTH_PREF?>
48   <?=Button("submit:", _("Adjust"), 'wikiaction')?>
49   <br />
50   <?=$OLD_MARKUP_CB?>  <?=_("Use old markup")?>
51 </p>
52
53 <?php if (isset($PREVIEW_CONTENT)) { ?>
54   <hr />
55   <p><strong><?=_("Preview only!  Changes not saved.")?></strong></p>
56   <?= $PREVIEW_CONTENT ?>
57   <hr />
58 <?php } ?>
59
60 <script language="JavaScript1.3" type="text/javascript">
61 <!--
62 function showOldMarkupRules(show) {
63   if (document.getElementById) {
64     if (!show) {
65       document.getElementById('newMarkup').style.display="block";
66       document.getElementById('oldMarkup').style.display="none";
67     } else {
68       document.getElementById('newMarkup').style.display="none";
69       document.getElementById('oldMarkup').style.display="block";
70     }
71   }
72 }
73 // -->
74 </script>
75
76 <div id="oldMarkup" class="wiki-edithelp">
77 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
78 <p><?= fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
79 <?plugin IncludePage page=_("Help/OldTextFormattingRules") section=_("Synopsis") quiet=1?>
80 </div>
81 <div id="newMarkup" class="wiki-edithelp">
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(_("Help/GoodStyle"))) ?></p>
84 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
85 </div>
86 <?=$HIDDEN_INPUTS?>
87 </form>
88
89 <script language="JavaScript1.3" type="text/javascript">
90 <!--
91 if (document.getElementById) {
92   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
93 }
94 // -->
95 </script>
96
97 <hr />