more experimental rss code. Not finished yet though.
[mir.git] / templates / admin / messagelist.template
1 <html>
2 <head>
3   <title>${config["Mir.Name"]} | ${lang("messagelist.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 "head.template">
10
11 <p>
12   <a class="link-box" href="${config.actionRoot}?module=Message&do=add">[+] ${lang("add")}</a> &nbsp;
13   <a class="link-box" href="${config.actionRoot}">[&lt;&lt;&lt;] ${lang("head.start")}</a>
14 </p>
15
16 <if data.contentlist>
17
18 <table border="0" cellpadding="2" cellspacing="1" width="70%">
19   <tr>
20     <td class="table-head">
21     ${lang("message.date")}</td>
22     <td class="table-head">
23     ${lang("message.title")} /<br>${lang("message.creator")}</td>
24     <td colspan="2" class="table-head">
25     ${lang("message.text")}</td>
26   </tr>
27
28   <list data.contentlist as entry>
29   <tr
30     <if grey=="1">
31       <assign grey="0">class="listrow1"
32     <else>class="listrow2"
33       <assign grey="1"> 
34     </if> >
35   <td class="x-small" valign="top">${entry.webdb_create}&nbsp;</td>
36   <td valign="top"><span class="small"><b>${entry.title}</b></span><br>
37      <span class="x-small">${lang("by")}: ${entry.creator}</span></td>
38   <td>${entry.description}&nbsp;</td>
39   <td valign="top">
40       <a class="listcommand" href="${config.actionRoot}?module=Message&do=delete&id=${entry.id}">[&nbsp;${lang("delete")}&nbsp;]</a><br>
41     <a class="listcommand" href="${config.actionRoot}?module=Message&do=edit&id=${entry.id}">[&nbsp;${lang("edit")}&nbsp;]</a>
42   </td>
43   </tr>
44   </list>
45   
46   <tr>
47     <td colspan="4" class="table-foot">${data.count} ${lang("records")} /
48         ${lang("show_from_to", data.from, data.to)}</td>
49     
50   </tr>
51
52 </table>
53
54 <P>
55   <if data.prev>
56     <a class="majorcommand" href="${config.actionRoot}?module=Message&do=list&where=${data.where}&offset=${data.prev}">[&nbsp;${lang("list.previous")}&nbsp;]</a>&nbsp;
57   </if>
58   <if data.next>
59     <a class="majorcommand" href="${config.actionRoot}?module=Message&do=list&where=${data.where}&offset=${data.next}">[&nbsp;${lang("list.next")}&nbsp;]</a>
60   </if>
61
62 <else>
63   <P align="center">${lang("no_matches_found")}</p>
64 </if>
65
66 <include "foot.template">
67 </body>
68 </html>