exception + misc. cleanup
[mir.git] / templates / admin / topiclist.template
1 <html>
2   <head>
3     <title>${config["Mir.Name"]} | ${lang("topiclist.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       <a class="majorcommand" href="${config.actionRoot}?module=Topics&do=add">${lang("add")}</a> |
12       <a class="majorcommand" href="${config.actionRoot}?module=Admin&do=superusermenu">${lang("back")}</a>
13     
14     <if data.contentlist>
15       <table border="0">
16         <tr class="darkgrey">
17           <td><span class="witesmall"><b>${lang("topic.title")}</b></span></td>
18           <td><span class="witesmall"><b>${lang("topic.description")}</b></span></td>
19           <td><span class="witesmall"><b>${lang("topic.main_url")}<br>${lang("topic.archive_url")}</b></span></td>
20           <td>&nbsp;</td>
21         </tr>
22         <list data.contentlist as entry>
23           <if grey=="1"><assign grey="0"><tr class="list1"><else><tr class="list2"><assign grey="1"></if>
24             <td><span class="small">${entry.title}&nbsp;</span></td>
25             <td><span class="small">${entry.description}&nbsp;</span></td>
26             <td><span class="small">${entry.main_url}<br>${entry.archiv_url}</span></td>
27             <td><span class="text">&nbsp;
28                 <a href="${config.actionRoot}?module=Topics&do=delete&id=${entry.id}">${lang("delete")}</a>
29               | <a href="${config.actionRoot}?module=Topics&do=edit&id=${entry.id}">${lang("edit")}</a>
30             </span></td>
31           </tr>
32         </list>
33         <tr>
34           <td colspan="4" class="darkgrey"><span class="witesmall">
35             ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)}
36           </span></td>
37           <td>&nbsp;</td>
38         </tr>
39       </table>
40       <p>
41         <if (data.prev || data.next)>
42           <form method="post" action="${config.actionRoot}">
43             <input type="hidden" name="module" value="Topics">
44             <input type="hidden" name="where" value="${data.where}">
45             <if data.prev>
46               <input type="hidden" name="do" value="list">
47               <input type="hidden" name="prevoffset" value="${data.prev}">
48               <input type="submit" name="prev" value="${lang("list.previous")}">
49             </if>
50             <if data.next>
51               <input type="hidden" name="do" value="list">
52               <input type="hidden" name="nextoffset" value="${data.next}">
53               <input type="submit" name="next" value="${lang("list.next")}">
54             </if>
55           </form>
56         </if>
57       </p>
58     <else>
59       <p align="center">${lang("no_matches_found")}</p>
60     </if>
61
62       <a class="majorcommand" href="${config.actionRoot}?module=Topics&do=add">${lang("add")}</a> |
63       <a class="majorcommand" href="${config.actionRoot}?module=Admin&do=superusermenu">${lang("back")}</a>
64
65     <include "templates/admin/foot.template">
66   </body>
67 </html>
68
69