JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
first stab at paypal_ipn framework
[wfpl-cms.git] / admin_files.html
index 172ad09..ad374d7 100644 (file)
@@ -2,16 +2,16 @@
 
 <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>
+               <h1>~$host~ Admin Control Panel</h1>
+
+               <h2><!--~id unset {~-->Add a new downloadable file<!--~}~--><!--~id {~-->Edit downloadable file "~description html~"<!--~}~--></h2>
 
                <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~">
 
        <!--~}~-->
 
        <!--~listings once {~-->
-               <h2>Files Listing</h2>
-
-               <!--~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>
+               <h1>~$host~ Admin Control Panel</h1>
+               <h2>Manage downloadable Files</h2>
+
+               <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>
 
-                       <p><a href="admin_files?new=1">[Add a new file]</a></p>
+               <p><a href="admin_files?new=1">[Add a new file]</a></p>
 
-                       <table cellspacing="0" cellpadding="4" border="1" summary="">
-                               <tr><th>Path</th><th>Description</th><th>&nbsp;</th></tr><!--~listings {~-->
+               <!--~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"><a href="admin_files?edit_id=~id~">/~filename html~<!--~filename empty {~--><em>(blank)</em><!--~}~--></a></td>
+                                       <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><!--~}~-->
@@ -50,7 +61,7 @@
                        </table>
                <!--~}~-->
                <!--~listings once_else {~-->
-                       <p>No files in database.</p>
+                       <p>No downloadable files in database.</p>
                <!--~}~-->
 
                <p><a href="admin_files?new=1">[Add a new file]</a></p>