JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
auto css-bumping!
[wfpl-cms.git] / admin_pages.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5         <title><!--~$title show {~-->~$host~ Admin: <!--~listings {~-->Pages Listing<!--~}~--><!--~form {~--><!--~id {~-->Add a new page<!--~}~--><!--~id unset {~-->Edit page "~title html~"<!--~}~--><!--~}~--><!--~}~--></title>
6         <!--~$head {~-->
7         <script type="text/javascript" src="code/ckeditor/ckeditor.js"></script>
8         <script type="text/javascript">
9                 function make_wysiwyg(name) {
10                         CKEDITOR.replace(name, {
11                                 'contentsCss': 'style.css?m=~style.css mtime~',
12                                 'allowedContent': true,
13                                 'stylesSet': [
14                                         { name: 'Paragraph', element: 'p'},
15                                         { name: 'Page Headline', element: 'h1'},
16                                         { name: 'Section Headline', element: 'h2'},
17                                         { name: 'Subsection Headline', element: 'h3'},
18                                         { name: 'Tagline (under headline)', element: 'h4', attributes: { class: 'tagline'}},
19                                         { name: 'Quote', element: 'p', attributes: { class: 'quote'}},
20                                         { name: 'Quote Author', element: 'p', attributes: { class: 'attrib'}}
21                                 ],
22                                 'uiColor': '#ccccff',
23                                 'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print',
24                                 'height': '300px',
25                                 'toolbar': [
26                                         ['Source'],
27                                         ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'SpellChecker', 'Scayt'],
28                                         ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
29                                         '/',
30                                         ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'],
31                                         ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'],
32                                         ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
33                                         ['Link', 'Unlink', 'Anchor'],
34                                         ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'],
35                                         '/',
36                                         ['Styles', 'Font', 'FontSize'],
37                                         ['TextColor', 'BGColor'],
38                                         ['Maximize', 'ShowBlocks']
39                                 ]
40                         });
41                 }
42         </script>
43         <!--~}~-->
44
45 </head>
46
47 <body>
48 <!--~$body show {~-->
49
50         <!--~form {~-->
51                 <h2><!--~id unset {~-->Add a new page<!--~}~--><!--~id {~-->Edit page "~title html~"<!--~}~--></h2>
52
53                 <form action="admin_pages" method="post"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
54
55                         <div class="caption">Title</div>
56                         <div class="field_notes">(This appears at the top of the page, in the window title-bar (by the close button) and as the headline/link of search engine results.)</div>
57                         <div class="field"><input type="text" name="title" value="~title attr~"></div>
58
59                         <div class="caption">Filename</div>
60                         <div class="field_notes">(<!--~editing {~-->Careful: if you change this, be sure to update all links to this page<!--~}~--><!--~editing unset {~-->Please use only a-z, 0-9 and _ (underscore) in your filename. Please, no capitals, punctuation or spaces.<!--~}~-->)</div>
61                         <div class="field"><input type="text" name="filename" value="~filename attr~"></div>
62
63                         <div class="caption">Show in navigation links</div>
64                         <div class="field_notes">(On the left of every page.)</div>
65                         <div class="field"><select name="navbar"><!--~navbar options~--></select></div>
66
67                         <div class="caption">Navigation Link Text</div>
68                         <div class="field_notes">(If you'd like this page to appear in the navigation with a shorter title.)</div>
69                         <div class="field"><input type="text" name="nav_title" value="~nav_title attr~"></div>
70
71                         <div class="caption">Page Contents</div>
72                         <div class="field_notes">
73                                 <ul class="first">
74                                         <li style="color: red; list-style: none">Please read these instructions in full:</li>
75                                         <li>If you don't see an editor below (with buttons in it) then please try this page in <a href="http://getfirefox.com">Mozilla FireFox</a> or <a href="http://www.google.com/chrome/">Google Chrome</a>.</li>
76                                         <li>If you're pasting from Microsoft Word, please use the "paste from word" button (looks like a clipboard with a "W").</li>
77                                         <li>To make a link, type the text to be clicked, select it, click the "Link" button (looks like a short chain) and paste the web address (where the link should point to) into the "URL" field. Exception: If you're making a link to another page on this site, please remove the "http://~$host~/" from the beginning of the "URL" field and set the "Protocol" to &lt;other&gt;.</li>
78                                 </ul>
79                         </div>
80                         <div class="field"><textarea class="html_editor" rows="20" cols="50" id="content" name="content">~content html~</textarea><script type="text/javascript">make_wysiwyg('content');</script></div>
81
82                         <div class="caption">Description</div>
83                         <div class="field_notes">(Hidden description of this page, primarily for search engines.)</div>
84                         <div class="field"><textarea rows="9" cols="22" name="description">~description html~</textarea></div>
85
86                         <div class="caption">Keywords</div>
87                         <div class="field_notes">(Hidden words (up to 30) with commas between them for search engines)</div>
88                         <div class="field"><textarea rows="9" cols="22" name="keywords">~keywords html~</textarea></div>
89
90                         <div class="caption">&nbsp;</div>
91                         <div class="field"><input type="submit" name="save" value="Save"></div>
92
93                 </form>
94
95                 <div class="caption">&nbsp;</div>
96                 <div class="field"><a href="~filename nonempty {~~filename attr~~}~~filename empty {~admin_pages~id {~?id=~id~~}~~}~">Cancel</a></div>
97         <!--~}~-->
98
99         <!--~listings once {~-->
100                 <!--~listings once_if {~-->
101                         <p><a href="admin_pages?new=1">[Add a new page]</a></p>
102
103                         <table cellspacing="0" cellpadding="4" border="1" summary="">
104                                 <tr><th>Title</th><th>Filename</th><th>&nbsp;</th></tr>
105                                 <!--~listings {~-->
106                                 <tr>
107                                         <td class="listing"><a href="admin_pages?edit_id=~id~">~title html~<!--~title empty {~--><em>(untitled)</em><!--~}~--></a></td>
108                                         <td class="listing"><a href="admin_pages?edit_id=~id~">~filename html~<!--~filename empty {~--><em>(offline)</em><!--~}~--></a></td>
109                                         <td><a href="admin_pages?admin_pages_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this page]</a></td>
110                                 </tr>
111                                 <!--~}~-->
112
113                         </table>
114                 <!--~}~-->
115                 <!--~listings once_else {~-->
116                         <p>No pages in database.</p>
117                 <!--~}~-->
118
119                 <p><a href="admin_pages?new=1">[Add a new page]</a></p>
120         <!--~}~-->
121 <!--~}~-->
122 </body>
123 </html>