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