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