]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/editpage.tmpl
Remove chmod; split subpages before translation
[SourceForge/phpwiki.git] / themes / default / templates / editpage.tmpl
1 <?php if (isset($PREVIEW_CONTENT)) { ?>
2   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong>
3 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
4      but it does not work currently with the <base> declared in top.tmpl.
5      I think we need to do away with using <base> altogether... -->
6      <?php echo fmt("Please continue editing.  (You'll find your %s at the bottom of the page.)",
7           /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*)  */) ?>
8   </p>
9   <hr class="printer" />
10   <?php echo $PREVIEW_CONTENT ?>
11   <hr class="printer" />
12 <?php } ?>
13
14 <?php echo $PAGE_LOCKED_MESSAGE ?>
15 <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
16
17 <?php if (! $IS_CURRENT) { ?>
18   <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
19         <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
20 <?php } ?>
21 <?php /*
22  * FIXME: Hack! 
23  * The funky URL used for the form action parameter is bogus.
24  * This is needed, otherwise the redirect to the real browser
25  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
26  * a redirect from a page to itself.)
27  */ ?>
28 <form method="post" id="editpage" name="editpage"
29       action="<?php echo $request->getPostURL() ?>"
30       accept-charset="UTF-8">
31   <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
32   <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
33   <br class="clear-floats" />
34   <table class="fullwidth">
35     <tr><td><?php echo $EDIT_TOOLBAR ?></td>
36         <td align="right"><div id="editarea-size">
37     <?php echo _("Size").':'?>
38     <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> 
39     <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?>
40     <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
41   </div></td></tr></table>
42 <?php if (!empty($WYSIWYG_B)) { ?>
43   <br /><div class="hint"><strong>Warning:</strong> Switching to the Wysiwyg editor will not keep your changes.</div>
44 <?php } ?>
45   <a id="editarea"></a><?php echo $EDIT_TEXTAREA?>
46 <!-- FIXME: fix layout, move CSS to CSS -->
47 <div class="toolbar" style="text-align: center;">
48   <label for="edit-summary"><?php echo _("Summary").':'?></label> <?php echo $SUMMARY_INPUT?>
49 </div>
50 <?php if (ENABLE_CAPTCHA) { ?>
51 <div class="toolbar" style="text-align: center;">
52   <?php echo $CAPTCHA_IMAGE ?><br/>
53   <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?>
54 </div> 
55 <?php } ?>
56 <table class="toolbar" width="100%"
57        cellpadding="0" cellspacing="0" border="0">
58 <tr valign="middle">
59   <td> 
60     <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br />
61     <?php echo $OLD_MARKUP_CB ?> <label for="useOldMarkup"><?php echo _("Use old markup")?></label> <?php echo $OLD_MARKUP_CONVERT?>
62   </td>
63   <td align="center">
64     <?php if (!empty($WYSIWYG_B)){ ?>
65     <?php echo $WYSIWYG_B?><?php echo $SEP?>
66     <?php } ?>
67     <?php echo $PREVIEW_B ?>
68     <?php if ($SAVE_B)  { ?> 
69       <?php echo $SEP?><?php echo $SAVE_B ?>
70     <?php } ?>
71     <?php echo $SEP?><?php echo $CHANGES_B ?>
72   </td>
73   <td>&nbsp; <?php echo $AUTHOR_MESSAGE?></td>
74 </tr>
75 <tr>
76   <td>
77     <?php if ($user->isAdmin()) { ?> 
78     <?php echo $LOCKED_CB ?> <label for="edit-locked" title="<?php echo _("Make the page read-only?")?>"><?php echo _("Locked")?></label>
79     <?php if (ENABLE_PAGE_PUBLIC) { ?>
80     &nbsp;&nbsp;<?php echo $PUBLIC_CB ?> <label for="edit-public" title="<?php echo _("Export to a separate public area?")?>"><?php echo _("Public")?></label>
81     <?php }} ?>
82   </td>
83   <td colspan="2" align="right">
84     <?php if (!$user->isAuthenticated()) { ?>
85     <?php echo Template('signin', array('FORMNAME' => 'editpage')) ?>
86     <?php } ?>
87   </td>
88 </tr>
89 </table>
90 <?php echo $HIDDEN_INPUTS?>
91 </form>
92 <div style="width:100%;text-align:center;"><?php /*plugin UpLoad autolink=0 mode=edit size=30 */?></div>
93
94 <hr />
95
96 <script type="text/javascript">
97 <!--
98 function showOldMarkupRules(show) {
99   if (document.getElementById) {
100     if (!show) {
101       document.getElementById('newMarkup').style.display="block";
102       document.getElementById('oldMarkup').style.display="none";
103     } else {
104       document.getElementById('newMarkup').style.display="none";
105       document.getElementById('oldMarkup').style.display="block";
106     }
107   }
108 }
109 // -->
110 </script>
111
112 <div id="oldMarkup" class="wiki-edithelp">
113 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
114 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
115 <?plugin IncludePage page=_("Help")."/"._("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
116 </div>
117 <div id="newMarkup" class="wiki-edithelp">
118 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
119 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
120 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
121 </div>
122
123 <script type="text/javascript">
124 <!--
125 if (document.getElementById) {
126   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
127 }
128 // -->
129 </script>