]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Wordpress/templates/editpage.tmpl
new theme from http://mpickering.homeip.net/phpwiki/index.php/WordPressTheme
[SourceForge/phpwiki.git] / themes / Wordpress / templates / editpage.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: editpage.tmpl,v 1.1 2004-04-10 08:02:22 rurban Exp $ -->
3 <?php
4
5 $WidthI = HTML::input(array('type' => 'text',
6                             'size' => 3,
7                             'maxlength' => 4,
8                             'class' => "numeric",
9                             'name' => 'pref[editWidth]',
10                             'value' => $request->getPref('editWidth'),
11                             'onchange' => 'this.form.submit();'));
12
13 $HeightI = HTML::input(array('type' => 'text',
14                              'size' => 3,
15                              'maxlength' => 4,
16                              'class' => "numeric",
17                              'name' => 'pref[editHeight]',
18                              'value' => $request->getPref('editHeight'),
19                              'onchange' => 'this.form.submit();'));
20
21 $s = $Theme->getButtonSeparator();
22 ?>
23
24 <?php /*
25  * FIXME: Hack! 
26  * The funky URL used for the form action parameter is bogus.
27  * This is needed, otherwise the redirect to the real browser
28  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
29  * a redirect from a page to itself.)
30  *
31  * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
32  * to wrap long lines.
33  *
34  */ ?>
35
36 <div class="wikitext" id="editform">
37 <form method="post" name="editpage" id="editpage"
38       action="<?=WikiURL($page,array('action'=>'edit'))?>"
39       accept-charset="<?=CHARSET?>">
40   <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
41 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
42        cellpadding="0" cellspacing="0" border="0">
43 <tr align="bottom">
44   <td>
45     <?= $PAGE_LOCKED_MESSAGE ?>
46     <?= $CONCURRENT_UPDATE_MESSAGE ?>
47     <?php if (!$IS_CURRENT) { ?>
48       <p><strong><?=_("Warning: You are editing an old revision.")?>
49             <?=_("Saving this page will overwrite the current version.")?></strong></p>
50     <?php } ?>
51   </td>
52   <td>
53     <?= $PREVIEW_B ?>
54     <?php if ($SAVE_B) { ?>
55       <?=$s?> <?= $SAVE_B ?>
56     <?php } ?>
57   </td>
58 </tr>
59 </table>
60 <p>
61   <?php if (isset($JS_SEARCHREPLACE)) { ?>
62   <span id="search-replace">
63     <?php /*TODO: use image icons here instead of text */ ?>
64     <input class="gridbutton" name="rck" type="button" value="(<?= _("Undo") ?>)" onfocus="if(this.blur && pretxt_anzahl==0) this.blur()" onclick="rueck()"><input class="gridbutton" type="button" value="<?= _("Redo") ?>" onclick="speich()">
65     <input type="button" class="gridbutton" value="<?=_("Search & Replace")?>" onclick="replace()">
66   </span>
67   <?php } ?>
68   <?=_("Edit Area Size")?>: <b><?=_("H")?></b>
69   <?=$HeightI?>
70   <b><?=_("W")?></b>
71   <?=$WidthI?>
72   <?=Button("submit:", _("Adjust"), 'wikiaction')?>
73   <br />
74   <?=$OLD_MARKUP_CB?>  <?=_("Use old markup")?>
75 </p>
76 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
77 <br />
78 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
79 <br />
80 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
81 <br />
82 <?= $MINOR_EDIT_CB ?>
83 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
84         WikiLink(_("RecentEdits"))) ?>
85 <br />
86
87 <?php if (isset($PREVIEW_CONTENT)) { ?>
88   <hr />
89   <p><strong><?=_("Preview only!  Changes not saved.")?></strong></p>
90   <?= $PREVIEW_CONTENT ?>
91   <hr />
92 <?php } ?>
93
94 <script language="JavaScript1.3" type="text/javascript">
95 <!--
96 function showOldMarkupRules(show) {
97   if (document.getElementById) {
98     if (!show) {
99       document.getElementById('newMarkup').style.display="block";
100       document.getElementById('oldMarkup').style.display="none";
101     } else {
102       document.getElementById('newMarkup').style.display="none";
103       document.getElementById('oldMarkup').style.display="block";
104     }
105   }
106 }
107 // -->
108 </script>
109
110 <div id="oldMarkup" class="wiki-edithelp">
111 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
112 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
113 <?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
114 </div>
115 <div id="newMarkup" class="wiki-edithelp">
116 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
117 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
118 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
119 </div>
120 <?=$HIDDEN_INPUTS?>
121 </form>
122 </div>
123
124 <script language="JavaScript1.3" type="text/javascript">
125 <!--
126 if (document.getElementById) {
127   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
128 }
129 // -->
130 </script>
131
132 <hr />