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