]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Wordpress/templates/editpage.tmpl
<?= --> <?php echo
[SourceForge/phpwiki.git] / themes / Wordpress / templates / editpage.tmpl
1 <?php // -*-php-*-
2 // rcs_id('$Id$');
3 /*
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 ?>
11
12 <div class="wikitext" id="editform">
13 <form method="post" name="editpage" id="editpage"
14       action="<?php echo $request->getPostURL() ?>"
15       accept-charset="<?php echo CHARSET?>">
16   <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
17 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
18        cellpadding="0" cellspacing="0" border="0">
19 <tr align="bottom">
20   <td>
21     <?php echo $PAGE_LOCKED_MESSAGE ?>
22     <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
23     <?php if (!$IS_CURRENT) { ?>
24       <p><strong><?php echo _("Warning: You are editing an old revision.")?>
25             <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
26     <?php } ?>
27   </td>
28   <td>
29     <?php echo $PREVIEW_B ?>
30     <?php if ($SAVE_B) { ?>
31       <?php echo $SEP?> <?php echo $SAVE_B ?>
32     <?php } ?>
33   </td>
34 </tr>
35 </table>
36 <table width="100%">
37     <tr><td><?php echo $EDIT_TOOLBAR ?></td>
38         <td align="right"><div id="editarea-size">
39     <?php echo _("Size").':'?>
40     <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?> 
41     <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?>
42     <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
43   </div></td></tr></table>
44 </p>
45 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
46 <br /><small>
47 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
48 <br />
49 <?php if (ENABLE_CAPTCHA) { ?>
50   <?php echo $CAPTCHA_IMAGE ?><br/>
51   <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?><br/>
52 <?php } ?>
53 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
54 <br />
55 <?php echo $MINOR_EDIT_CB ?>
56   <label for="edit-minor_edit">
57   <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
58         WikiLink(_("RecentEdits"))) ?></label>
59 <br />
60 <?php echo $OLD_MARKUP_CB?> <label for="useOldMarkup"><?php echo _("Use old markup")?> </label> <?php echo $OLD_MARKUP_CONVERT?> 
61   <?php if ($user->isAdmin()) { ?> 
62     <?php echo $SEP?><?php echo $LOCKED_CB ?> <label for="edit-locked"><?php echo _("Locked")?></label>
63    <?php } ?>
64 </small>
65 <br />
66 <?php if (isset($PREVIEW_CONTENT)) { ?>
67   <hr />
68   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong></p>
69   <?php echo $PREVIEW_CONTENT ?>
70   <hr />
71 <?php } ?>
72
73 <script type="text/javascript">
74 <!--
75 function showOldMarkupRules(show) {
76   if (document.getElementById) {
77     if (!show) {
78       document.getElementById('newMarkup').style.display="block";
79       document.getElementById('oldMarkup').style.display="none";
80     } else {
81       document.getElementById('newMarkup').style.display="none";
82       document.getElementById('oldMarkup').style.display="block";
83     }
84   }
85 }
86 // -->
87 </script>
88
89 <div id="oldMarkup" class="wiki-edithelp">
90 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
91 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
92 <?plugin IncludePage page=_("Help/OldTextFormattingRules") section=_("Synopsis") quiet=1?>
93 </div>
94 <div id="newMarkup" class="wiki-edithelp">
95 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
96 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help/GoodStyle"))) ?></p>
97 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
98 </div>
99 <?php echo $HIDDEN_INPUTS?>
100 </form>
101 </div>
102
103 <script type="text/javascript">
104 <!--
105 if (document.getElementById) {
106   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
107 }
108 // -->
109 </script>
110
111 <hr />