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