contains only admin templates which should not be changed by users
[mir.git] / templates / admin / contentlist.template
1 <html>
2 <head>
3         <title>${config["Mir.Name"]} | ${lang("contentlist.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 <if data.contentlist>
11         <table border="0" width="100%" cellspacing="0" cellpadding="2">
12           <tr class="darkgrey">
13             <td><span class="witesmall">
14                         ${lang("content.creationdate")}<br>
15                         ${lang("content.modificationdate")}<br>
16                         ${lang("content.status")}</span></td>
17             <td><span class="witesmall">
18                         ${lang("content.type")} / ${lang("content.location")}: ${lang("content.title")}<br>
19                         ${lang("content.creator")}</span></td>
20             <td ><span class="witesmall">${lang("content.topic")}<br>${lang("content.feature")}</span></td>
21             <td width="25%"><span class="witesmall">
22                         ${lang("content.comment")}</span></td>
23                 <td class="darkgrey">&nbsp;</td>
24           </tr>
25
26         <list data.contentlist as entry>
27           <tr <if grey=="1"><assign grey="0">class="list1"<else>class="list2"<assign grey="1"></if>>
28             <td><span class="x-small">
29                         ${entry.webdb_create_formatted}<br>
30                         <if entry.webdb_lastchange>${entry.webdb_lastchange_formatted}<else>-</if><br>
31                         <if entry.is_published!="0">F<else>-</if>
32                         <if entry.is_html!="0">H<else>-</if>
33                         </span></td>
34             <td><span class="small"><b>
35                         <span class="x-small">${articletypeHash[entry.to_article_type]["name"]} -- </span><if entry.place>${entry.place}: </if>${entry.title}</b><br>
36                         ${entry.creator}&nbsp;
37                         <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.id}&where=${data.where_encoded}&order=${data.order_encoded}&offset=${data.offset}">${lang("edit")}</a>
38                         <if entry.to_article_type=="0">&nbsp;|&nbsp;<a href="${config.actionRoot}?module=Content&do=newswire&id=${entry.id}&where=${data.where_encoded}&order=${data.order_encoded}&offset=${data.offset}">newswire</a></if></span></td>
39             <td><span class="small">
40                         <if entry.thema_id!="0">${themenHashData[entry.thema_id]["name"]}</if>&nbsp;<br>
41                         <if entry.to_feature!="0">${schwerpunktHashData[entry.to_feature]["title"]}</if>&nbsp;</span></td>
42             <td width="20%" <if grey=="1">class="list3"<else>class="list4"</if> valign="top"><span class="x-small">
43                         ${entry.comment}&nbsp;</span></td>
44             <td class0"litegrey"><span class="text">
45               <a href="${config.actionRoot}?module=Content&do=delete&id=${entry.id}&where=${data.where_encoded}&order=${data.order_encoded}&offset=${data.offset}">${lang("delete")}</a>
46               </span></td>
47         </tr>
48         </list>
49         <tr class="darkgrey">
50             <td colspan="4"><span class="witesmall">${data.count} ${lang("records")}
51       / ${lang("show_from_to", data.from, data.to)}</span></td></tr>
52         </table>
53
54       <P>
55 <if data.prev || data.next>
56  <form method="post" action="${config.actionRoot}">
57  <input type="hidden" name="module" value="Content">
58  <input type="hidden" name="do" value="listop">
59  <input type="hidden" name="where" value="${data.where}">
60  <input type="hidden" name="order" value="${data.order}">
61 <if data.prev>
62  <input type="hidden" name="prevoffset" value="${data.prev}">
63  <input type="submit" name="prev" value="${lang("list.previous")}">
64 </if>
65 <if data.next>
66  <input type="hidden" name="nextoffset" value="${data.next}">
67  <input type="submit" name="next" value="${lang("list.next")}">
68 </if>
69  </form>
70 </if>
71
72 <else>
73   <P align="center">${lang("no_matches_found")}</p>
74 </if>
75
76 <include "templates/admin/foot.template">
77 </body>
78 </html>