JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added admin_files, s/this_host/$host/, etc
[wfpl-cms.git] / admin_pages.html
1 <!DOCTYPE html>
2
3 <html lang="en">
4 <head>
5         <meta charset="utf-8" />
6         <title><!--~$title show {~-->~$host~ Admin: <!--~listings {~-->Pages Listing<!--~}~--><!--~form {~--><!--~id {~-->Add a new page<!--~}~--><!--~id unset {~-->Edit page "~title html~"<!--~}~--><!--~}~--><!--~}~--></title>
7         <!--~$head {~-->
8         <script type="text/javascript" src="code/ckeditor/ckeditor.js"></script>
9         <script type="text/javascript">
10                 function make_wysiwyg(name) {
11                         CKEDITOR.replace(name, {
12                                 'contentsCss': 'style_01.css',
13                                 'uiColor': '#ccccff',
14                                 'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print',
15                                 'height': '300px',
16                                 'toolbar': [
17                                         ['Source'],
18                                         ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'SpellChecker', 'Scayt'],
19                                         ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
20                                         '/',
21                                         ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'],
22                                         ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'],
23                                         ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
24                                         ['Link', 'Unlink', 'Anchor'],
25                                         ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'],
26                                         '/',
27                                         ['Styles', 'Format', 'Font', 'FontSize'],
28                                         ['TextColor', 'BGColor'],
29                                         ['Maximize', 'ShowBlocks']
30                                 ]
31                         });
32                 }
33         </script>
34         <!--~}~-->
35
36 </head>
37
38 <body>
39 <!--~$body show {~-->
40
41         <!--~form {~-->
42                 <h2><!--~id unset {~-->Add a new page<!--~}~--><!--~id {~-->Edit page "~title html~"<!--~}~--></h2>
43
44                 <form action="admin_pages" method="post"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
45
46                         <div class="caption">Title</div>
47                         <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>
48                         <div class="field"><input type="text" name="title" value="~title attr~"></div>
49
50                         <div class="caption">Filename</div>
51                         <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>
52                         <div class="field"><input type="text" name="filename" value="~filename attr~"></div>
53
54                         <div class="caption">Show in navigation links</div>
55                         <div class="field_notes">(On the left of every page.)</div>
56                         <div class="field"><select name="navbar"><!--~navbar options~--></select></div>
57
58                         <div class="caption">Navigation Link Text</div>
59                         <div class="field_notes">(If you'd like this page to appear in the navigation with a shorter title.)</div>
60                         <div class="field"><input type="text" name="nav_title" value="~nav_title attr~"></div>
61
62                         <div class="caption">Content</div>
63                         <div class="field_notes">
64                                 <ul>
65                                         <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>
66                                         <li>If you're pasting from Microsoft Word, please use the "paste from word" button (4 right of the scissors).</li>
67                                         <li>In the link dialog, you can make a link to another page on this site by entering that page's "filename" in the URL field.</li>
68                                 </ul>
69                         </div>
70                         <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>
71
72                         <div class="caption">Description</div>
73                         <div class="field_notes">(Hidden description of this page, primarily for search engines.)</div>
74                         <div class="field"><textarea rows="9" cols="22" name="description">~description html~</textarea></div>
75
76                         <div class="caption">Keywords</div>
77                         <div class="field_notes">(Hidden words (up to 30) with commas between them for search engines)</div>
78                         <div class="field"><textarea rows="9" cols="22" name="keywords">~keywords html~</textarea></div>
79
80                         <div class="caption">&nbsp;</div>
81                         <div class="field"><input type="submit" name="save" value="Save"></div>
82
83                 </form>
84
85                 <div class="caption">&nbsp;</div>
86                 <div class="field"><a href="~filename nonempty {~~filename attr~~}~~filename empty {~admin_pages~id {~?id=~id~~}~~}~">Cancel</a></div>
87         <!--~}~-->
88
89         <!--~listings once {~-->
90                 <!--~listings once_if {~-->
91                         <p><a href="admin_pages?new=1">[Add a new page]</a></p>
92
93                         <table cellspacing="0" cellpadding="4" border="1" summary="">
94                                 <tr><th>Title</th><th>Filename</th><th>&nbsp;</th></tr>
95                                 <!--~listings {~-->
96                                 <tr>
97                                         <td class="listing"><a href="admin_pages?edit_id=~id~">~title html~<!--~title empty {~--><em>(untitled)</em><!--~}~--></a></td>
98                                         <td class="listing"><a href="admin_pages?edit_id=~id~">~filename html~<!--~filename empty {~--><em>(offline)</em><!--~}~--></a></td>
99                                         <td><a href="admin_pages?admin_pages_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this page]</a></td>
100                                 </tr>
101                                 <!--~}~-->
102
103                         </table>
104                 <!--~}~-->
105                 <!--~listings once_else {~-->
106                         <p>No pages in database.</p>
107                 <!--~}~-->
108
109                 <p><a href="admin_pages?new=1">[Add a new page]</a></p>
110         <!--~}~-->
111 <!--~}~-->
112 </body>
113 </html>