]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/editpage.tmpl
Remove rcs_id
[SourceForge/phpwiki.git] / themes / Portland / templates / editpage.tmpl
1 <?php // -*-php-*-
2 // $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="<?php echo $request->getPostURL() ?>"
15       accept-charset="<?php echo 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     <?php echo $PAGE_LOCKED_MESSAGE ?>
21     <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
22     <?php if (!$IS_CURRENT) { ?>
23       <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
24             <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
25     <?php } ?>
26   </td>
27   <td align="right">
28     <?php echo $PREVIEW_B ?>
29     <?php if ($SAVE_B) { ?>
30       <?php echo $SEP?> <?php echo $SAVE_B ?>
31     <?php } ?>
32   </td>
33 </tr>
34 </table>
35 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
36 <br />
37 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
38 <br />
39 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
40 <br />
41 <?php echo $MINOR_EDIT_CB ?>
42 <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
43         WikiLink(_("RecentEdits"))) ?>
44 <br />
45 <p>
46   <?php echo _("Edit Area Size")?>: <b><?php echo _("H")?></b> <?php echo $HEIGHT_PREF?> 
47   <b><?php echo _("W")?></b> <?php echo $WIDTH_PREF?>
48   <?php echo Button("submit:", _("Adjust"), 'wikiaction')?>
49   <br />
50   <?php echo $OLD_MARKUP_CB?>  <?php echo _("Use old markup")?>
51 </p>
52
53 <?php if (isset($PREVIEW_CONTENT)) { ?>
54   <hr />
55   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong></p>
56   <?php echo $PREVIEW_CONTENT ?>
57   <hr />
58 <?php } ?>
59
60 <script 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><?php echo 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><?php echo fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
84 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
85 </div>
86 <?php echo $HIDDEN_INPUTS?>
87 </form>
88
89 <script type="text/javascript">
90 <!--
91 if (document.getElementById) {
92   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
93 }
94 // -->
95 </script>
96
97 <hr />