]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Crao/templates/editpage.tmpl
Remove chmod; split subpages before translation
[SourceForge/phpwiki.git] / themes / Crao / 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" noshade="noshade" />
10   <?php echo $PREVIEW_CONTENT ?>
11   <hr class="printer" noshade="noshade" />
12 <?php } ?>
13 <?php echo $PAGE_LOCKED_MESSAGE ?>
14 <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
15 <?php if (! $IS_CURRENT) { ?>
16   <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
17         <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
18 <?php } ?>
19 <?php /*
20  * FIXME: Hack! 
21  * The funky URL used for the form action parameter is bogus.
22  * This is needed, otherwise the redirect to the real browser
23  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
24  * a redirect from a page to itself.)
25  */ ?>
26 <form method="post" id="editpage" name="editpage"
27       action="<?php echo $request->getPostURL() ?>"
28       accept-charset="UTF-8">
29   <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
30   <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
31   <br class="clear-floats" />
32   <table class="fullwidth">
33     <tr><td><?php echo $EDIT_TOOLBAR ?></td>
34         <td align="right"><div id="editarea-size">
35     <?php echo _("Size").':'?>
36     <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> 
37     <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?>
38     <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
39   </div></td></tr></table>
40   <fieldset class="editarea">
41   <legend><?php echo _("Page Content: ")?></legend>
42   <a id="editarea"></a><?php echo $EDIT_TEXTAREA?>
43   </fieldset>
44 <!-- FIXME: fix layout, move CSS to CSS -->
45  <fieldset class="editarea">
46     <legend><?php echo _("Summary").':'?></legend><br />
47     <?php echo $SUMMARY_INPUT?>
48   </fieldset>
49 <?php if (ENABLE_CAPTCHA) { ?>
50   <fieldset class="toolbar" style="text-align: center;">
51     <?php echo $CAPTCHA_IMAGE ?><br/>
52     <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?>
53   </fieldset> 
54   <?php } ?>
55   <fieldset class="toolbar"> 
56     <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label>&nbsp;&nbsp;
57     <?php echo $OLD_MARKUP_CB?>  <label for="useOldMarkup"><?php echo _("Use old markup")?></label> <?php echo $OLD_MARKUP_CONVERT?>
58 <?php if ($user->isAdmin()) { ?>
59     <?php echo $LOCKED_CB ?> <label for="edit-locked"><?php echo _("Locked")?></label>
60 <?php } ?>
61   </fieldset>
62   <fieldset class="toolbar">
63     <?php echo $PREVIEW_B ?>
64     <?php if ($SAVE_B)  { ?> 
65       <?php echo $SEP?><?php echo $SAVE_B ?>
66     <?php } ?>
67   </fieldset>
68   <fieldset class="toolbar">
69     <?php echo $AUTHOR_MESSAGE?>
70     <label><?php echo Template('signin', array('FORMNAME' => 'editpage')) ?></label>
71   </fieldset>
72 <hr noshade="noshade" />
73 <script type="text/javascript">
74 <!--
75 function showOldMarkupRules(show) {
76   if (document.getElementById) {
77     if (!show) {
78       document.getElementById('newMarkup').style.display="block";
79       document.getElementById('oldMarkup').style.display="none";
80     } else {
81       document.getElementById('newMarkup').style.display="none";
82       document.getElementById('oldMarkup').style.display="block";
83     }
84   }
85 }
86 // -->
87 </script>
88 <div id="oldMarkup" class="wiki-edithelp">
89 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
90 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
91 <?plugin IncludePage page=_("Help")."/"._("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
92 </div>
93 <div id="newMarkup" class="wiki-edithelp">
94 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
95 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
96 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
97 </div>
98 <?php echo $HIDDEN_INPUTS?>
99 </form>
100 <script type="text/javascript">
101 <!--
102 if (document.getElementById) {
103   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
104 }
105 // -->
106 </script>