5 <title><!--~$title show {~-->~$host~ Admin: <!--~listings {~-->Pages Listing<!--~}~--><!--~form {~--><!--~id {~-->Add a new page<!--~}~--><!--~id unset {~-->Edit page "~title html~"<!--~}~--><!--~}~--><!--~}~--></title>
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_01.css',
13 { name: 'Paragraph', element: 'p'},
14 { name: 'Page Headline', element: 'h1'},
15 { name: 'Section Headline', element: 'h2'},
16 { name: 'Subsection Headline', element: 'h3'},
17 { name: 'Tagline (under headline)', element: 'h4', attributes: { class: 'tagline'}},
18 { name: 'Quote', element: 'p', attributes: { class: 'quote'}},
19 { name: 'Quote Author', element: 'p', attributes: { class: 'attrib'}}
22 'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print',
26 ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'SpellChecker', 'Scayt'],
27 ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'],
29 ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'],
30 ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'],
31 ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
32 ['Link', 'Unlink', 'Anchor'],
33 ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'],
35 ['Styles', 'Font', 'FontSize'],
36 ['TextColor', 'BGColor'],
37 ['Maximize', 'ShowBlocks']
50 <h2><!--~id unset {~-->Add a new page<!--~}~--><!--~id {~-->Edit page "~title html~"<!--~}~--></h2>
52 <form action="admin_pages" method="post"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
54 <div class="caption">Title</div>
55 <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>
56 <div class="field"><input type="text" name="title" value="~title attr~"></div>
58 <div class="caption">Filename</div>
59 <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>
60 <div class="field"><input type="text" name="filename" value="~filename attr~"></div>
62 <div class="caption">Show in navigation links</div>
63 <div class="field_notes">(On the left of every page.)</div>
64 <div class="field"><select name="navbar"><!--~navbar options~--></select></div>
66 <div class="caption">Navigation Link Text</div>
67 <div class="field_notes">(If you'd like this page to appear in the navigation with a shorter title.)</div>
68 <div class="field"><input type="text" name="nav_title" value="~nav_title attr~"></div>
70 <div class="caption">Page Contents</div>
71 <div class="field_notes">
73 <li style="color: red; list-style: none">Please read these instructions in full:</li>
74 <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>
75 <li>If you're pasting from Microsoft Word, please use the "paste from word" button (looks like a clipboard with a "W").</li>
76 <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 <other>.</li>
79 <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 <div class="caption">Description</div>
82 <div class="field_notes">(Hidden description of this page, primarily for search engines.)</div>
83 <div class="field"><textarea rows="9" cols="22" name="description">~description html~</textarea></div>
85 <div class="caption">Keywords</div>
86 <div class="field_notes">(Hidden words (up to 30) with commas between them for search engines)</div>
87 <div class="field"><textarea rows="9" cols="22" name="keywords">~keywords html~</textarea></div>
89 <div class="caption"> </div>
90 <div class="field"><input type="submit" name="save" value="Save"></div>
94 <div class="caption"> </div>
95 <div class="field"><a href="~filename nonempty {~~filename attr~~}~~filename empty {~admin_pages~id {~?id=~id~~}~~}~">Cancel</a></div>
98 <!--~listings once {~-->
99 <!--~listings once_if {~-->
100 <p><a href="admin_pages?new=1">[Add a new page]</a></p>
102 <table cellspacing="0" cellpadding="4" border="1" summary="">
103 <tr><th>Title</th><th>Filename</th><th> </th></tr>
106 <td class="listing"><a href="admin_pages?edit_id=~id~">~title html~<!--~title empty {~--><em>(untitled)</em><!--~}~--></a></td>
107 <td class="listing"><a href="admin_pages?edit_id=~id~">~filename html~<!--~filename empty {~--><em>(offline)</em><!--~}~--></a></td>
108 <td><a href="admin_pages?admin_pages_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this page]</a></td>
114 <!--~listings once_else {~-->
115 <p>No pages in database.</p>
118 <p><a href="admin_pages?new=1">[Add a new page]</a></p>