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