5 <title><!--~$title show {~-->~$host~ Admin: Manage Images<!--~}~--></title>
11 <h1>~$host~ Admin Control Panel</h1>
13 <h2><!--~id unset {~-->Add a new image<!--~}~--><!--~id {~-->Edit image "~name html~"<!--~}~--></h2>
15 <form action="admin_images" 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~">
17 <!--~image once_if {~-->
18 <div class="wfpl_ri"><div class="wfpl_i" style="background-image: url(~image image_src_small~); padding-top: ~image image_aspect~"></div>~caption html~</div>
20 <!--~image once_else {~-->
21 <div class="caption">Image</div>
22 <div class="field"><input type="file" name="image"></div>
25 <div class="caption">Name (used for sorting, optional)</div>
26 <div class="field_notes">This value is never displayed to site visitors. Your collection of images are sorted by name, so you can use this field to keep your images organized.</div>
27 <div class="field"><input type="text" name="name" value="~name attr~"></div>
29 <div class="caption">Caption (optional)</div>
30 <div class="field_notes">Here's some symbols you might want to paste in: © — –</div>
31 <div class="field"><input type="text" name="caption" value="~caption attr~"></div>
33 <div class="caption field"><input type="submit" name="save" value="Save"></div>
37 <div class="caption"> </div>
38 <div class="field"><a href="admin_images~id {~?id=~id~~}~">Cancel</a></div>
41 <!--~listings once {~-->
42 <h1>~$host~ Admin Control Panel</h1>
44 <h2>Manage Images</h2>
46 <!--~listings once_if {~-->
47 <p><a href="admin_images?new=1">[Add a new image]</a></p>
49 <table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
50 <tr><th colspan="4" class="th_toggle_buttons">
51 <div><!--~sort_by_age unset {~--><a href="?sort=age"><!--~}~-->[sort by age]<!--~sort_by_age unset {~--></a><!--~}~--></div> <div><!--~sort_by_name unset {~--><a href="?sort=name"><!--~}~-->[sort by name/caption]<!--~sort_by_name unset {~--></a><!--~}~--></div> <div><!--~sort_by_caption unset {~--><a href="?sort=caption"><!--~}~-->[sort by caption/name]<!--~sort_by_caption unset {~--></a><!--~}~--></div>
55 <td class="listing"><!--~image nonempty {~--><a style="cursor: zoom-in" href="~image image_src_full~" target="_blank"><span class="wfpl_thumb" style="background-image: url(~image image_src_thumb~)"></span></a><!--~}~--></td>
56 <td class="listing">Name: ~name html~<br>Caption: ~caption html~</td>
57 <td><a href="admin_images?edit_id=~id~">[edit]</a></td>
58 <td><a href="admin_images?admin_images_delete_id=~id~" onclick="return confirm('Permanently delete?')" style="color: red">[delete]</a></td>
64 <!--~listings once_else {~-->
65 <p>No images in database.</p>
68 <p><a href="admin_images?new=1">[Add a new image]</a></p>