JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
don't overwrite .centerer vmargin
[wfpl-cms.git] / admin_images.html
1 <!DOCTYPE html>
2
3 <html lang="en">
4 <head>
5         <title><!--~$title show {~-->~$host~ Admin: Manage Images<!--~}~--></title>
6 </head>
7
8 <body>
9 <!--~$body show {~-->
10         <!--~form {~-->
11                 <h1>~$host~ Admin Control Panel</h1>
12
13                 <h2><!--~id unset {~-->Add a new image<!--~}~--><!--~id {~-->Edit image "~name html~"<!--~}~--></h2>
14
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~">
16
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>
19                         <!--~}~-->
20                         <!--~image once_else {~-->
21                         <div class="caption">Image</div>
22                         <div class="field"><input type="file" name="image"></div>
23                         <!--~}~-->
24
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>
28
29                         <div class="caption">Caption (optional)</div>
30                         <div class="field_notes">Here's some symbols you might want to paste in: &copy; &nbsp; &mdash; &nbsp; &ndash;</div>
31                         <div class="field"><input type="text" name="caption" value="~caption attr~"></div>
32
33                         <div class="caption field"><input type="submit" name="save" value="Save"></div>
34
35                 </form>
36
37                 <div class="caption">&nbsp;</div>
38                 <div class="field"><a href="admin_images~id {~?id=~id~~}~">Cancel</a></div>
39         <!--~}~-->
40
41         <!--~listings once {~-->
42                 <h1>~$host~ Admin Control Panel</h1>
43
44                 <h2>Manage Images</h2>
45
46                 <!--~listings once_if {~-->
47                         <p><a href="admin_images?new=1">[Add a new image]</a></p>
48
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>
52                                 </th></tr>
53                                 <!--~listings {~-->
54                                 <tr>
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>
59                                 </tr>
60                                 <!--~}~-->
61
62                         </table>
63                 <!--~}~-->
64                 <!--~listings once_else {~-->
65                         <p>No images in database.</p>
66                 <!--~}~-->
67
68                 <p><a href="admin_images?new=1">[Add a new image]</a></p>
69         <!--~}~-->
70
71 <!--~}~-->
72 </body>
73 </html>