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