JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
silence more warnings
[wfpl-cms.git] / admin_files.html
index 881fc19..bec7918 100644 (file)
@@ -2,59 +2,70 @@
 
 <html lang="en">
 <head>
-       <meta charset="utf-8" />
-       <title><!--~$title show {~-->Files<!--~}~--></title>
-       <link rel="stylesheet" href="style.css" type="text/css">
+    <title><!--~$title show {~-->~$host~ Admin: Manage files<!--~}~--></title>
 </head>
 
 <body>
 <!--~$body show {~-->
 
-       <!--~form {~-->
-               <h2><!--~id unset {~-->Add a new file<!--~}~--><!--~id {~-->Edit file "~description html~"<!--~}~--></h2>
+    <!--~form {~-->
+        <h1>~$host~ Admin Control Panel</h1>
 
-               <form action="admin_files" method="post" enctype="multipart/form-data"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~--><input type="hidden" name="MAX_FILE_SIZE" value="~upload_max_filesize~">
+        <h2><!--~id unset {~-->Add a new downloadable file<!--~}~--><!--~id {~-->Edit downloadable file "~description html~"<!--~}~--></h2>
 
-                       <div class="caption">File</div>
-                       <div class="field"><input type="file" name="filename"><input type="hidden" name="old_filename" value="~filename attr~"></div>
+        <form action="admin_files" method="post" enctype="multipart/form-data"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~--><input type="hidden" name="MAX_FILE_SIZE" value="~upload_max_filesize~">
 
-                       <div class="caption">Description (optional)</div>
-                       <div class="field_notes">The files admin page sorts by this, so you can find your files.</div>
-                       <div class="field"><input type="text" name="description" value="~description attr~"></div>
+            <div class="caption">File</div>
+            <div class="field"><input type="file" name="filename"><input type="hidden" name="old_filename" value="~filename attr~"></div>
 
-                       <div class="caption">&nbsp;</div>
-                       <div class="field"><input type="submit" name="save" value="Save"></div>
+            <div class="caption">Description (optional)</div>
+            <div class="field_notes">The files admin page sorts by this, so you can find your files.</div>
+            <div class="field"><input type="text" name="description" value="~description attr~"></div>
 
-               </form>
+            <div class="caption">&nbsp;</div>
+            <div class="field"><input type="submit" name="save" value="Save"></div>
 
-               <div class="caption">&nbsp;</div>
-               <div class="field"><a href="admin_files~id {~?id=~id~~}~">Cancel</a></div>
-       <!--~}~-->
+        </form>
 
-       <!--~listings once {~-->
-               <h2>Files Listing</h2>
+        <div class="caption">&nbsp;</div>
+        <div class="field"><a href="admin_files~id {~?id=~id~~}~">Cancel</a></div>
+    <!--~}~-->
 
-               <!--~listings once_if {~-->
-                       <p>The value in the "Path" column below can be pasted into the "URL" field of the link dialog on the page editor. Be sure to set the "protocol" pulldown there to "other". To link to a file from any other website (or e-mail, etc) create the full address by prefixing it with "http://~$host~"</p>
+    <!--~listings once {~-->
+        <h1>~$host~ Admin Control Panel</h1>
+        <h2>Manage downloadable Files</h2>
 
-                       <p><a href="admin_files?new=1">[Add a new file]</a></p>
+        <p>To create a download link on your website:</p>
+        <ul>
+            <li>Use the "Add a new file" link below to upload a file, then come back to this page.</li>
+            <li>Select the value in the "Path" column below and copy it to the clipboard.</li>
+            <li>Open the page editor for the page where you'd like the download link to appear. (Open the editor in another tab/window so you can still refer to these instructions.)</li>
+            <li>In the page editor, type the text you'd like people to click on to download the file, then select this text and click the "link" button in the editor (it looks like a globe and a chain).</li>
+            <li>Paste the "Path" (that you copied earlier from below) into the "URL" field, and set the "Protocol" field to "&lt;other&gt;". Click OK to close the link dialog.</li>
+            <li>Click "Save" at the bottom of the editor page.</li>
+            <li>Test your download link by clicking on it.</li>
+        </ul>
 
-                       <table cellspacing="0" cellpadding="4" border="1" summary="">
-                               <tr><th>Path</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
-                               <tr>
-                                       <td class="listing">/~filename html~<!--~filename empty {~--><em>(blank)</em><!--~}~--></td>
-                                       <td class="listing"><a href="admin_files?edit_id=~id~">~description html~<!--~description empty {~--><em>(blank)</em><!--~}~--></a></td>
-                                       <td><a href="admin_files?admin_files_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this file]</a></td>
-                               </tr><!--~}~-->
+        <p><a href="admin_files?new=1">[Add a new file]</a></p>
 
-                       </table>
-               <!--~}~-->
-               <!--~listings once_else {~-->
-                       <p>No files in database.</p>
-               <!--~}~-->
+        <!--~listings once_if {~-->
+            <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
+                <tr><th>&nbsp;</th><th>Path</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
+                <tr>
+                    <td class="listing"><!--~filename nonempty {~--><a href="/~filename attr~">download</a><!--~}~--><!--~filename empty {~-->&nbsp;<!--~}~--></td>
+                    <td class="listing"><!--~filename nonempty {~-->~filename html~<!--~}~--><!--~filename empty {~--><em>(file missing)</em><!--~}~--></td>
+                    <td class="listing"><a href="admin_files?edit_id=~id~">~description html~<!--~description empty {~--><em>(blank)</em><!--~}~--></a></td>
+                    <td><a href="admin_files?admin_files_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this file]</a></td>
+                </tr><!--~}~-->
 
-               <p><a href="admin_files?new=1">[Add a new file]</a></p>
-       <!--~}~-->
+            </table>
+        <!--~}~-->
+        <!--~listings once_else {~-->
+            <p>No downloadable files in database.</p>
+        <!--~}~-->
+
+        <p><a href="admin_files?new=1">[Add a new file]</a></p>
+    <!--~}~-->
 
 <!--~}~-->
 </body>