]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/editpage.tmpl
Use CSS
[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 fullwidth">
14 <tr class="bottom">
15   <td>
16     <?php echo $PAGE_LOCKED_MESSAGE ?>
17     <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
18     <?php if (!$IS_CURRENT) { ?>
19       <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
20             <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
21     <?php } ?>
22   </td>
23   <td class="align-right">
24     <?php echo $PREVIEW_B ?>
25     <?php if ($SAVE_B) { ?>
26       <?php echo $SEP?> <?php echo $SAVE_B ?>
27     <?php } ?>
28   </td>
29 </tr>
30 </table>
31 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
32 <br />
33 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
34 <br />
35 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
36 <br />
37 <?php echo $MINOR_EDIT_CB ?>
38 <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
39         WikiLink(_("RecentEdits"))) ?>
40 <br />
41 <p>
42   <?php echo _("Edit Area Size")?>: <b><?php echo _("H")?></b> <?php echo $HEIGHT_PREF?> 
43   <b><?php echo _("W")?></b> <?php echo $WIDTH_PREF?>
44   <?php echo Button("submit:", _("Adjust"), 'wikiaction')?>
45   <br />
46   <?php echo $OLD_MARKUP_CB?>  <?php echo _("Use old markup")?>
47 </p>
48
49 <?php if (isset($PREVIEW_CONTENT)) { ?>
50   <hr />
51   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong></p>
52   <?php echo $PREVIEW_CONTENT ?>
53   <hr />
54 <?php } ?>
55
56 <script type="text/javascript">
57 <!--
58 function showOldMarkupRules(show) {
59   if (document.getElementById) {
60     if (!show) {
61       document.getElementById('newMarkup').style.display="block";
62       document.getElementById('oldMarkup').style.display="none";
63     } else {
64       document.getElementById('newMarkup').style.display="none";
65       document.getElementById('oldMarkup').style.display="block";
66     }
67   }
68 }
69 // -->
70 </script>
71
72 <div id="oldMarkup" class="wiki-edithelp">
73 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
74 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
75 <?plugin IncludePage page=_("Help")."/"._("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
76 </div>
77 <div id="newMarkup" class="wiki-edithelp">
78 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
79 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
80 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
81 </div>
82 <?php echo $HIDDEN_INPUTS?>
83 </form>
84
85 <script type="text/javascript">
86 <!--
87 if (document.getElementById) {
88   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
89 }
90 // -->
91 </script>
92
93 <hr />