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