contains only admin templates which should not be changed by users
[mir.git] / templates / admin / imagelist.template
1 <html>
2 <head>
3         <title>${config["Mir.Name"]} | ${lang("imagelist.htmltitle")}</title>
4         <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5 </head>
6
7 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
8
9 <include "templates/admin/head.template">
10
11 <table border="0" cellpadding="2" cellspacing="1">
12   <tr>
13     <td colspan="5"><form method="post" action="${config.actionRoot}">
14         <input type="hidden" name="module" value="Images">
15         <input type="hidden" name="do" value="list">
16         <input type="hidden" name="cid" value="${data.cid}">
17         <table border="0">
18         <tr class="pink">
19                 <td>${lang("medialist.search_text_in")}:</td>
20                 <td>${lang("media.published")}:</td>
21                 <td>${lang("media.mediafolder")}:</td>
22                 <td>&nbsp;</td>
23         </tr>
24         
25         <tr>
26         <td>
27                 <input type="text" size="10" maxlength="20" name="query_text" value="${data.query_text}">
28                 <select name="query_field">
29                 <option value="title"<if data.query_field=="title"> selected</if>>${lang("media.title")}</option>
30                 <option value="creator"<if data.query_field=="creator"> selected</if>>${lang("media.creator")}</option>
31                 <option value="place"<if data.query_field=="place"> selected</if>>${lang("media.location")}</option>
32                 <option value="keywords"<if data.query_field=="keywords"> selected</if>>${lang("media.keywords")}</option>
33         </select>
34         </td>
35         <td>
36                 <select name="query_is_published">
37                     <option value="">${lang("dontcare")}</option>
38                 <option value="0" <if data.query_is_published=="0"> selected</if>>${lang("no")}</option>
39                     <option value="1" <if data.query_is_published=="1"> selected</if>>${lang("yes")}</option>
40             </select>
41         </td>
42         <td>
43         <select name="query_media_folder">
44         <list extra.mediafolderPopupData as m>
45         <option value="${m.key}" <if m.key == query_media_folder>selected</if>>${m.value}</option>
46         </list>
47         </select>
48         </td>
49         <td>
50                 <input type="submit" name="search" value="filter">      
51         </td>
52         </tr>   
53         </table>
54         </form>
55         </td>
56   </tr>
57
58   <tr class="darkgrey">
59         <td><span class="witesmall">
60         <b>${lang("media.icon")}</b></span></td>
61         <td><span class="witesmall">
62         <b>${lang("media.title")}</b></span></td>
63     <td><span class="witesmall">
64         <b>${lang("media.mediafolder")}</b></span></td>
65     <td><span class="witesmall">
66         <b>${lang("media.creator")}</b></span></td>
67   </tr>
68   <if data.contentlist>
69   <list data.contentlist as entry>
70   <tr <if grey=="1"><assign grey="0">class="list1"<else>class="list2"<assign grey="1"> </if>>
71   <td>
72         <if entry.icon_data!="" && entry.icon_data!="0">
73         <a href="${config.actionRoot}?module=Images&do=showimg&id=${entry.id}" target="new">
74           <img src="${config.actionRoot}?module=Images&do=showicon&id=${entry.id}" border=0></a></span></td>
75         </if>
76   <td>${entry.title}&nbsp;
77           <if entry.decription><br>${entry.description}</if></td>
78   <td>${data.mediafolderHashdata[entry.to_media_folder]["name"]}&nbsp;</td>
79   <td>${entry.creator}&nbsp;</td>
80   <td><span class="text">&nbsp;
81         <if data.cid><a href="${config.actionRoot}?module=Content&do=attach&mid=${entry.id}&cid=${data.cid}">${lang("attach")}</a>
82         <else>
83         <a href="${config.actionRoot}?module=Images&do=delete&id=${entry.id}">${lang("delete")}</a>
84     | <a href="${config.actionRoot}?module=Images&do=edit&id=${entry.id}">${lang("edit")}</a>
85         </if>
86         </span></td>
87   </tr>
88   </list>
89   <tr>
90     <td colspan="4" class="darkgrey"><span class="witetext">${data.count} ${lang("records")}
91       / ${lang("show_from_to", data.from, data.to)}</span></td>
92     <td>&nbsp;</td>
93   </tr>
94
95 <tr><td>
96 <if data.prev>
97         <a href="${config.actionRoot}?module=Images&do=list&query_text=${data.query_text_encoded}&query_field=${data.query_field}&query_is_published=${data.query_is_published}&query_media_folder=${data.query_media_folder}&offset=${data.prev}&prev=zur&uuml;ck&cid=${data.cid}">zurueck</a>&nbsp;
98 </if>
99 <if data.next>
100 <a href="${config.actionRoot}?module=Images&do=list&query_text=${data.query_text_encoded}&query_field=${data.query_field}&query_is_published=${data.query_is_published}&query_media_folder=${data.query_media_folder}&offset=${data.next}&next=weiter&cid=${data.cid}">weiter</a>
101 </if>
102 </td></tr>
103 <else>
104   <tr><td align="center">${lang("no_matches_found")}</td></tr>
105 </if>
106 </table>
107 <include "templates/admin/foot.template">
108 </body>
109 </html>