JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
generic editable site
[wfpl-cms.git] / admin_pages.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5   <title><!--~main_title show {~-->~this_host~ Admin: <!--~listings {~-->Pages Listing<!--~}~--><!--~form {~--><!--~new_msg {~-->Add a new page<!--~}~--><!--~edit_msg {~-->Edit page "~title html~"<!--~}~--><!--~}~--><!--~}~--></title>
6   <!--~extra_headers {~-->
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                 'uiColor': '#ccccff',
12                 'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print',
13                 'height': '300px',
14                         'toolbar': [
15                                 ['Source'],
16                                 ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'SpellChecker', 'Scayt'],
17                                 ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
18                                 '/',
19                                 ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'],
20                                 ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'],
21                                 ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
22                                 ['Link', 'Unlink', 'Anchor'],
23                                 ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'],
24                                 '/',
25                                 ['Styles', 'Format', 'Font', 'FontSize'],
26                                 ['TextColor', 'BGColor'],
27                                 ['Maximize', 'ShowBlocks']
28                         ]
29          });
30       }
31     </script>
32   <!--~}~-->
33
34 </head>
35
36 <body>
37   <!--~main_body show {~-->
38
39 <!--~form {~-->
40   <form action="admin_pages" method="post"><!--~editing {~--><div style="display: none"><input type="hidden" name="and_then" value="~and_then attr~" /><input type="hidden" name="admin_pages_edit_id" value="~admin_pages_edit_id attr~" /></div><!--~}~-->
41
42
43     <div class="caption">Title</div>
44     <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>
45     <div class="field"><input type="text" name="title" value="~title attr~" /></div>
46
47     <div class="caption">Filename</div>
48     <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>
49     <div class="field"><input type="text" name="filename" value="~filename attr~" /></div>
50
51     <div class="caption">Show in navigation links</div>
52     <div class="field_notes">(On the left of every page.)</div>
53     <div class="field"><select name="navbar"><!--~navbar options~--></select></div>
54
55     <div class="caption">Navigation Link Text</div>
56     <div class="field_notes">(If you'd like this page to appear in the navigation with a shorter title.)</div>
57     <div class="field"><input type="text" name="nav_title" value="~nav_title attr~" /></div>
58
59     <div class="caption">Content</div>
60     <div class="field_notes">
61       <ul>
62         <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>
63         <li>If you're pasting from Microsoft Word, please use the "paste from word" button (4 right of the scissors).</li>
64         <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>
65       </ul></div>
66     <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>
67
68     <div class="caption">Description</div>
69     <div class="field_notes">(Hidden description of this page, primarily for search engines.)</div>
70     <div class="field"><textarea rows="9" cols="22" name="description">~description html~</textarea></div>
71
72     <div class="caption">Keywords</div>
73     <div class="field_notes">(Hidden words (up to 30) with commas between them for search engines)</div>
74     <div class="field"><textarea rows="9" cols="22" name="keywords">~keywords html~</textarea></div>
75
76     <div class="field"><input type="submit" name="save" value="Save" /></div>
77
78   </form>
79 <!--~}~-->
80 <!--~listings {~-->
81   <!--~populated_listing {~-->
82   <p><a href="admin_pages?admin_pages_new=1">[Add a new page]</a></p>
83
84   <table cellspacing="0" cellpadding="4" border="1" summary="">
85     <th>Title</th><th>Filename</th><th>&nbsp;</th><!--~rows {~-->
86     <tr>
87       <td class="listing"><a href="admin_pages?admin_pages_edit_id=~id~">~title html~</a></td>
88       <td class="listing"><a href="admin_pages?admin_pages_edit_id=~id~">~filename html~</a></td>
89       <td><a href="admin_pages?admin_pages_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this page]</a></td>
90     </tr><!--~}~-->
91
92   </table>
93   <!--~}~-->
94   <!--~empty_listing {~-->
95     <p>No pages in database.</p>
96   <!--~}~-->
97
98   <p><a href="admin_pages?admin_pages_new=1">[Add a new page]</a></p>
99 <!--~}~-->
100
101 <!--~}~-->
102 </body>
103 </html>