]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/editpage.tmpl
update missing editpage templates: id with :, remove PHP
[SourceForge/phpwiki.git] / themes / Portland / templates / editpage.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: editpage.tmpl,v 1.22 2005-09-28 19:00:24 rurban Exp $ -->
3 <?php /*
4  * FIXME: Hack!
5  * The funky URL used for the form action parameter is bogus.
6  * This is needed, otherwise the redirect to the real browser
7  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
8  * a redirect from a page to itself.)
9  *
10  * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
11  * to wrap long lines.
12  *
13  */ ?>
14
15 <form method="post" name="editpage"
16       action="<?= $request->getPostURL() ?>"
17       accept-charset="<?=CHARSET?>">
18 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
19        cellpadding="0" cellspacing="0" border="0">
20 <tr align="bottom">
21   <td>
22     <?= $PAGE_LOCKED_MESSAGE ?>
23     <?= $CONCURRENT_UPDATE_MESSAGE ?>
24     <?php if (!$IS_CURRENT) { ?>
25       <p><strong><?=_("Warning: You are editing an old revision.")?>
26             <?=_("Saving this page will overwrite the current version.")?></strong></p>
27     <?php } ?>
28   </td>
29   <td align="right">
30     <?= $PREVIEW_B ?>
31     <?php if ($SAVE_B) { ?>
32       <?=$SEP?> <?= $SAVE_B ?>
33     <?php } ?>
34   </td>
35 </tr>
36 </table>
37 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
38 <br />
39 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
40 <br />
41 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
42 <br />
43 <?= $MINOR_EDIT_CB ?>
44 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
45         WikiLink(_("RecentEdits"))) ?>
46 <br />
47 <p>
48   <?=_("Edit Area Size")?>: <b><?=_("H")?></b> <?=$HEIGHT_PREF?> 
49   <b><?=_("W")?></b> <?=$WIDTH_PREF?>
50   <?=Button("submit:", _("Adjust"), 'wikiaction')?>
51   <br />
52   <?=$OLD_MARKUP_CB?>  <?=_("Use old markup")?>
53 </p>
54
55 <?php if (isset($PREVIEW_CONTENT)) { ?>
56   <hr />
57   <p><strong><?=_("Preview only!  Changes not saved.")?></strong></p>
58   <?= $PREVIEW_CONTENT ?>
59   <hr />
60 <?php } ?>
61
62 <script language="JavaScript1.3" type="text/javascript">
63 <!--
64 function showOldMarkupRules(show) {
65   if (document.getElementById) {
66     if (!show) {
67       document.getElementById('newMarkup').style.display="block";
68       document.getElementById('oldMarkup').style.display="none";
69     } else {
70       document.getElementById('newMarkup').style.display="none";
71       document.getElementById('oldMarkup').style.display="block";
72     }
73   }
74 }
75 // -->
76 </script>
77
78 <div id="oldMarkup" class="wiki-edithelp">
79 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
80 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
81 <?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
82 </div>
83 <div id="newMarkup" class="wiki-edithelp">
84 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
85 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
86 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
87 </div>
88 <?=$HIDDEN_INPUTS?>
89 </form>
90
91 <script language="JavaScript1.3" type="text/javascript">
92 <!--
93 if (document.getElementById) {
94   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
95 }
96 // -->
97 </script>
98
99 <hr />