]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - templates/editpage.html
German Translation Improvements, two renamed pages.
[SourceForge/phpwiki.git] / templates / editpage.html
1 <?php echo "<?xml version='1.0' encoding='${CHARSET}'?>\n"; ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
3   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html>
5 <head>
6 <!-- phpwiki source:
7 $Id: editpage.html,v 1.43 2002-01-10 23:16:01 rurban Exp $
8 ${RCS_IDS}
9 -->
10 <base href="${BASE_URL}" />
11 <meta http-equiv="Content-Type" content="text/html; charset=${CHARSET}" />
12 <meta name="robots" content="noindex,nofollow" />
13 ${CSS}
14 <title>${WIKI_NAME} - <?php printf(_("Edit: %s"),"${SPLIT_PAGE}"); ?></title>
15 </head>
16 <body>
17 <div>${LOGO}</div>
18 <!--This hack allows the h1 to be localised. FIXME: move out of html template into php-->
19 <h1><?php printf(_("Edit: %s"),"<a class=\"backlinks\" href=\"${BROWSE}"._("BackLinks")."?page=${PAGE}\">${PAGE}</a>"); ?></h1>
20 <!--=this line=<?php $bl='<plugin-link BackLinks page="[pagename]" class="backlinks" linktext="${SPLIT_PAGE}" ?>';printf(_("Edit: %s"),"$bl"); ?>=does not work=-->
21 ${EDIT_WARNINGS}
22 <?php if (!empty($PREVIEW_CONTENT)) { ?>
23   <div class="wikitext">${PREVIEW_CONTENT}</div>
24 <?php } ?>
25 <?php /*
26  * FIXME: Hack! 
27  * The ${BROWSE}EditPage URL used for the form action parameter is bogus.
28  * This is needed, otherwise the redirect to the real browser
29  * page won't work with some browsers (NS4).  (NS4 won't accept
30  * a redirect from a page to itself.)
31  * I would rather prefer ${ACTION}edit --ReiniUrban
32  */ ?>
33
34 <form method="post" action="${BROWSE}EditPage" accept-charset="${CHARSET}">
35 <textarea class="wikiedit"
36           name="content"
37           rows="${EDIT_AREA_HEIGHT}"
38           cols="${EDIT_AREA_WIDTH}">$FORMVARS[content]</textarea>
39
40 <div class="toolbar" style="text-align: center;">
41   $_("Summary:")<input type="text" class="wikitext"
42                        name="summary" value="$FORMVARS[summary]" size="50" />
43 </div>
44 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
45        cellpadding="0" cellspacing="0" border="0"><tr valign="baseline">
46   <td>
47     <input type="checkbox" name="minor_edit" value="checked" $FORMVARS[minor_edit] />
48     $_("This is a minor change.")
49   </td>
50   <td align="center">
51     <input type="submit" class="button" name="preview" value=_("Preview") />
52     | <input type="submit" class="button" value=_("Save") />
53   </td>
54   <td align="right">
55     <?php if ($user->is_authenticated()) { ?>
56       <?php printf(_("You are signed in as %s."), LinkWikiWord($USERID)); ?>
57     <?php } else { ?>
58       <?php printf(_("Author will be logged as %s."),"<em>${USERID}</em>"); ?>
59        | <a class="wikiaction" href="${ACTION}login">$_("SignIn")<small>*</small></a>
60 <br /><small>*backup and reload after signing in</small>
61     <?php } ?>
62   </td>
63 </tr></table>
64 <div style="clear: both; padding: 2ex 0ex 0ex;">${EDIT_TIPS}</div>
65 <hr noshade="noshade" />
66 <div class="wiki-edithelp">
67 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
68 </div>
69
70 <input type="hidden" name="action" value="save" />
71 <input type="hidden" name="pagename" value="$FORMVARS[pagename]" />
72 <input type="hidden" name="editversion" value="$FORMVARS[editversion]" />
73 <input type="hidden" name="version" value="$FORMVARS[version]" />
74 </form>
75 </body>
76 </html>