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