5 <title><!--~$title show {~-->~$host~ Admin: Manage files<!--~}~--></title>
12 <h1>~$host~ Admin Control Panel</h1>
14 <h2><!--~id unset {~-->Add a new downloadable file<!--~}~--><!--~id {~-->Edit downloadable file "~description html~"<!--~}~--></h2>
16 <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~">
18 <div class="caption">File</div>
19 <div class="field"><input type="file" name="filename"><input type="hidden" name="old_filename" value="~filename attr~"></div>
21 <div class="caption">Description (optional)</div>
22 <div class="field_notes">The files admin page sorts by this, so you can find your files.</div>
23 <div class="field"><input type="text" name="description" value="~description attr~"></div>
25 <div class="caption"> </div>
26 <div class="field"><input type="submit" name="save" value="Save"></div>
30 <div class="caption"> </div>
31 <div class="field"><a href="admin_files~id {~?id=~id~~}~">Cancel</a></div>
34 <!--~listings once {~-->
35 <h1>~$host~ Admin Control Panel</h1>
36 <h2>Manage downloadable Files</h2>
38 <p>To create a download link on your website:</p>
40 <li>Use the "Add a new file" link below to upload a file, then come back to this page.</li>
41 <li>Select the value in the "Path" column below and copy it to the clipboard.</li>
42 <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>
43 <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>
44 <li>Paste the "Path" (that you copied earlier from below) into the "URL" field, and set the "Protocol" field to "<other>". Click OK to close the link dialog.</li>
45 <li>Click "Save" at the bottom of the editor page.</li>
46 <li>Test your download link by clicking on it.</li>
49 <p><a href="admin_files?new=1">[Add a new file]</a></p>
51 <!--~listings once_if {~-->
52 <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
53 <tr><th> </th><th>Path</th><th>Description</th><th> </th></tr><!--~listings {~-->
55 <td class="listing"><!--~filename nonempty {~--><a href="/~filename attr~">download</a><!--~}~--><!--~filename empty {~--> <!--~}~--></td>
56 <td class="listing"><!--~filename nonempty {~-->/~filename html~<!--~}~--><!--~filename empty {~--><em>(file missing)</em><!--~}~--></td>
57 <td class="listing"><a href="admin_files?edit_id=~id~">~description html~<!--~description empty {~--><em>(blank)</em><!--~}~--></a></td>
58 <td><a href="admin_files?admin_files_delete_id=~id~" onclick="return confirm('Permanently delete?')">[delete this file]</a></td>
63 <!--~listings once_else {~-->
64 <p>No downloadable files in database.</p>
67 <p><a href="admin_files?new=1">[Add a new file]</a></p>