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