]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - templates/editpage.html
Jeff's hacks II.
[SourceForge/phpwiki.git] / templates / editpage.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2   "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
3 <html>
4 <head>
5 <!-- phpwiki source:
6 ${RCS_IDS}
7 -->
8 <base href="${BASE_URL}">
9 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
10 <meta name="robots" content="noindex,nofollow">
11 <link rel="stylesheet" title="phpwiki" href="${CSS_URL}" type="text/css">
12
13 <title>Edit: ${SPLIT_PAGE}</title>
14 </head>
15
16 <body>
17 <h1>
18 <div><a class="wikilink"
19         href="${BROWSE}HomePage"
20         ><img src="${LOGO}" border=0 align="right"
21              alt="[phpwiki]" width=50 height=50></a></div>
22 Edit <a href="${BROWSE}${PAGEURL}"  
23         class="wikilink"><span class="wikiword">${PAGE}</span></a>
24 </h1>
25
26 <?php if (!empty($PREVIEW_CONTENT)) { ?>
27   <p><b>Preview only!  Changes not saved.</b></p>
28   <div class="wikitext">${PREVIEW_CONTENT}</div>
29   <hr class="ignore" noshade>
30 <?php } ?>
31
32 <?php if (!$IS_CURRENT) { ?>
33   <p><b>Warning: You are editing an old revision.
34         Saving this page will overwrite the current version.</b></p>
35   <hr class="ignore" noshade>
36 <?php } ?>
37
38 <?php /*
39  * FIXME: Hack! 
40  * The URL used for the form action parameter is bogus.
41  * This is needed, otherwise the redirect to the real browser
42  * page won't work with some browsers (NS4).  (NS4 won't accept
43  * a redirect from a page to itself.)
44  */ ?>
45
46 <form method="POST" action="${BROWSE}EditPage">
47 <textarea class="wikiedit"
48           name="content"
49           rows="${EDIT_AREA_HEIGHT}"
50           cols="${EDIT_AREA_WIDTH}"
51           wrap="virtual">$FORMVARS[content]</textarea>
52
53 <div class="toolbar" style="text-align: center;">
54   Summary:<input type="text" class="wikitext"
55                  name="summary" value="$FORMVARS[summary]" size=50>
56 </div>
57 <table class="toolbar" width="100%"
58        cellpadding=0 cellspacing=0 border=0><tr valign="baseline">
59   <td>
60     <input type="checkbox" name="minor_edit" value="checked" $FORMVARS[minor_edit]>
61     This is a minor change.
62   </td>
63   <td align="center">
64     <input type="submit" class="button" name="preview" value="Preview">
65     | <input type="submit" class="button" value="Save">
66   </td>
67   <td align="right">
68     <?php if ($user->is_authenticated()) { ?>
69       You are signed in as <?php echo LinkWikiWord($USERID); ?>
70     <?php } else { ?>
71       Author will be logged as <i>${USERID}</i>.
72     <?php } ?>
73   </td>
74 </tr></table>
75 <p style="clear: both; padding: 2ex 0ex 0ex;">
76   You can change the size of the editing area.
77   See <?php echo LinkExistingWikiWord('UserPreferences'); ?>.
78   Also see <?php echo LinkExistingWikiWord('GoodStyle') ?> tips for editing.
79 </p>
80 <hr noshade>
81 <small>
82 <b>Emphasis:</b>
83   '' for italics,
84   __ for bold,
85   ''__ for both
86 <br><b>Lists:</b>
87   * for bullet lists,
88   # for numbered lists,
89   ''; term : definition'' for definition lists
90 <br><b>References:</b>
91   JoinCapitalizedWords or use square brackets for a [page link]
92   or URL [http://cool.wiki.int/].
93 <br><b>Footnotes:</b>
94    Use [1],[2],[3],... 
95 <br><b>Preventing linking:</b>
96    Avoid linking with "!": !DoNotHyperlink,
97    name links like [[text | URL] (double up on the "[")
98 <br><b>Misc:</b>
99    "!", "!!", "!!!" make headings,
100    "%%%" makes a linebreak,
101    "- - - -" makes a horizontal rule
102 <br>
103 more on <?php echo LinkExistingWikiWord('TextFormattingRules') ?>
104 </small>
105
106 <input type="hidden" name="action" value="save">
107 <input type="hidden" name="pagename" value="$FORMVARS[pagename]">
108 <input type="hidden" name="editversion" value="$FORMVARS[editversion]">
109 <input type="hidden" name="version" value="$FORMVARS[version]">
110 </form>
111 </body>
112 </html>