]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/gforge/templates/editpage.tmpl
Harmonize headers
[SourceForge/phpwiki.git] / themes / gforge / templates / editpage.tmpl
1 <?php // -*-php-*-
2 rcs_id('$Id$');
3 ?>
4 <?php if (isset($PREVIEW_CONTENT)) { ?>
5   <p><strong><?=_("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      <?= 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   <?= $PREVIEW_CONTENT ?>
13 <?php } ?>
14
15 <?= $PAGE_LOCKED_MESSAGE ?>
16 <?= $CONCURRENT_UPDATE_MESSAGE ?>
17
18 <?php if (! $IS_CURRENT) { ?>
19   <p><strong><?=_("Warning: You are editing an old revision.")?>
20         <?=_("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="<?= $request->getPostURL() ?>"
31       accept-charset="<?=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 clear="all" class="clear-floats" />
35   <table width="100%">
36     <tr><td><?= $EDIT_TOOLBAR ?></td>
37         <td align="right"><div id="editarea-size">
38     <?=_("Size").':'?>
39     <label for="pref-editHeight"><b><?=_("H")?></b></label> <?=$HEIGHT_PREF?> 
40     <label for="pref-editWidth"><b><?=_("W")?></b></label> <?=$WIDTH_PREF?>
41     <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
42   </div></td></tr></table>
43   <a name="editarea"></a><?=$EDIT_TEXTAREA?>
44 <div class="toolbar" style="text-align: center;">
45   <label for="edit-summary"><?=_("Summary").':'?></label> <?=$SUMMARY_INPUT?>
46 </div>
47 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
48        cellpadding="0" cellspacing="0" border="0">
49 <tr valign="middle">
50   <td> 
51     <?=$MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?=_("This is a minor change.")?></label><br />
52   </td>
53   <td align="center">
54     <?= $PREVIEW_B ?>
55     <?php if ($SAVE_B)  { ?> 
56       <?=$SEP?><?= $SAVE_B ?>
57     <?php } ?>
58     <?=$SEP?><?= $CHANGES_B ?>
59   </td>
60   <td>&nbsp; <?=$AUTHOR_MESSAGE?></td>
61 </tr>
62 <tr>
63   <td>
64     <?php if ($user->isAdmin()) { ?>
65     <?= $LOCKED_CB ?> <label for="edit-locked" title="<?=_("Make the page read-only?")?>"><?=_("Locked")?></label>
66     <?php if (ENABLE_PAGE_PUBLIC) { ?>
67     &nbsp;&nbsp;<?= $PUBLIC_CB ?> <label for="edit-public" title="<?=_("Make the page public?")?>"><?=_("Public")?></label>
68     <?php } ?>
69     <?php if (ENABLE_EXTERNAL_PAGES) { ?>
70     &nbsp;&nbsp;<?= $EXTERNAL_CB ?> <label for="edit-external" title="<?=_("Make the page external?")?>"><?=_("External")?></label>
71     <?php }} ?>
72   </td>
73 </tr>
74 </table>
75 <?=$HIDDEN_INPUTS?>
76 </form>
77
78 <hr noshade="noshade" />
79
80 <div class="wiki-edithelp">
81 <?php if (WIKI_NAME == "help") { ?>
82 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
83 <?php } else { ?>
84 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
85 <?php } ?>
86 </div>