contains only admin templates which should not be changed by users
[mir.git] / templates / admin / commentlist.template
1 <html>
2 <head>
3         <title>${config["Mir.Name"]} | ${lang("commentlist.htmltitle")}</title>
4         <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5
6 </head>
7
8 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
9
10 <include "templates/admin/head.template">
11
12 <table border="0" cellpadding="2" cellspacing="1">
13   <tr>
14     <td colspan="5">
15         <form method="post" action="${config.actionRoot}">
16         <input type="hidden" name="module" value="Comment">
17         <input type="hidden" name="do" value="list">
18         <input type="hidden" name="offset" value="${data.offset}">
19         <input type="text" size="10" maxlength="20" name="query_text" value="${data.query_text}">
20         <select name="query_field">
21     <option value="title"<if data.query_field=="title"> selected</if>>${lang("comment.title")}</option>
22     <option value="creator"<if data.query_field=="creator"> selected</if>>${lang("comment.creator")}</option>
23     <option value="description"<if data.query_field=="description"> selected</if>>${lang("comment.text")}</option>
24     </select>
25         <select name="query_is_published">
26     <option value="">--</option>
27     <option value="0" <if data.query_is_published=="0"> selected</if>>${lang("commentlist.hidden")}</option>
28     <option value="1" <if data.query_is_published=="1"> selected</if>>${lang("commentlist.produced")}</option>
29     </select>
30     <select name="order">
31     <option value="webdb_create" <if data.order=="webdb_create"> selected</if>>${lang("comment.date")}</option>
32     <option value="articletitle" <if data.order=="articletitle"> selected</if>>${lang("comment.title")}</option>
33     </select>
34         <input type="submit" name="search" value="${lang("commentlist.search")}">
35         </form>
36         </td>
37   </tr>
38
39   <tr class="pink">
40         <td><p class="head">${lang("comment.date")}</p></td>
41                 <td><p class="head">${lang("comment.title")}/ ${lang("comment.creator")}<br>
42                                         ${lang("comment.text")}</p></td>
43     <td><p class="head">${lang("comment.article")}</P></td>
44   </tr>
45
46 <if data.contentlist>
47
48   <list data.contentlist as entry>
49   <tr <if grey=="1"><assign grey="0">class="list1"<else><assign grey="1">class="list2"</if>>
50
51                 <td>${entry.webdb_create_short}<br>
52         <if entry.is_published=="0"><span class="spezialtext">hidden</span><else>-</if>
53                 </td>
54
55                 <td>
56                         <if entry.title><b>${entry.title}</b><br></if>
57                         <if entry.creator>Von: ${entry.creator}<br></if>
58                         <span class="small">${entry.description}</span>
59                         <if entry.main_url><br>URL: ${entry.main_url}</if>
60                         <br><a href="${config.actionRoot}?module=Comment&do=edit&order=${data.order}&offset=${data.offset}&id=${entry.id}">${lang("edit")}</a>
61                 </td>
62
63
64                 <td>
65                                 ${data.articleHash[entry.to_media]["title"]}<br>
66                                 <a href="${config.actionRoot}?module=Content&do=edit&id=${data.articleHash[entry.to_media]["id"]}">
67                                 edit</a> |
68                                 <a href="${config["Producer.ProductionHost"]}${config["Producer.DocRoot"]}${data.articleHash[entry.to_media]["publish_path"]}${data.articleHash[entry.to_media]["id"]}.shtml">
69                                 view</a>
70                 </td>
71
72                 <td><span class="text">&nbsp;<a href="${config.actionRoot}?module=Comment&do=delete&id=${entry.id}">${lang("delete")}</a>
73                         </span></td>
74
75         </tr>
76   </list>
77
78   <tr>
79     <td colspan="3" class="darkgrey"><span class="wite">${data.count} ${lang("records")}
80       / ${lang("show_from_to", data.from, data.to)}</span></td>
81     <td>&nbsp;</td>
82   </tr>
83 <tr><td>
84
85 <if data.prev>
86 <a href="${config.actionRoot}?module=Comment&do=list&order=${data.order}&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">zurueck</a>&nbsp;
87 </if>
88 <if data.next>
89 <a href="${config.actionRoot}?module=Comment&do=list&order=${data.order}&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">weiter</a>
90 </if>
91 </td></tr>
92 <else>
93   <tr><td align="center">${lang("no_matches_found")}</td></tr>
94 </if>
95 </table>
96
97 <include "templates/admin/foot.template">
98
99 </body>
100 </html>
101
102