fix in the date representation of listed comments
[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 "head.template">
10 <if articles>
11
12 <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
13   <form method="post" action="${config.actionRoot}">
14     <input type="hidden" name="module" value="Localizer">
15     <input type="hidden" name="do" value="articleoperationbatch">
16     <input type="hidden" name="returnurl" value="${utility.encodeHTML(thisurl)}">
17
18     <p>
19       <input class="majorbutton" type="submit" name="save" value="${lang("save")}">
20     </p>
21 </if>    
22
23         <table border="0" width="100%" cellspacing="0" cellpadding="2">
24           <tr class="darkgrey">
25             <td><span class="witesmall">
26                         ${lang("content.creationdate")}<br>
27                         ${lang("content.modificationdate")}<br>
28                         ${lang("content.status")}</span></td>
29             <td><span class="witesmall">
30           ${lang("content.type")} - ${lang("content.title")} <br>
31                           ${lang("content.creator")}</span></td>
32             <td width="25%"><span class="witesmall">
33                         ${lang("content.comment")}</span></td>
34                 <td class="darkgrey">&nbsp;</td>
35           </tr>
36           <assign grey="0">
37   
38         <list articles as entry>
39           <tr <if grey=="1"><assign grey="0">class="list1"<else>class="list2"<assign grey="1"></if>>
40             <td>
41               <span class="x-small">
42                 ${entry.creationdate.formatted["dd.MM.yyyy hh:mm"]}<br>
43                 ${entry.changedate.formatted["dd.MM.yyyy hh:mm"]}<br>
44                             <if entry.is_published!="0">F<else>-</if><if entry.is_html!="0">H<else>-</if>
45                           </span>
46                         </td>
47             <td>
48               <span class="small">
49                 <b>
50                 <span class="x-small">
51               ${lang("articletypes." + entry.article_type.name)} -
52                             </span>
53                 ${entry.title}
54                             </b><br>
55                             ${entry.creator}<br>
56
57             <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="0">
58                               <list entry.operations as op>
59                                 [<a href="${config.actionRoot}?module=Localizer&do=articleoperation&operation=${op}&articleid=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${op}</a>]
60                               </list>
61                             </if>
62             <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="1">
63                               <list entry.operations as op>
64                                 [<input type="checkbox" name="operation" value="${entry.id};${op}">${op}]
65                               </list>
66                             </if>
67             <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="2">
68               <select name="operation">
69                 <option value="" selected>&nbsp;</option>
70                                 <list entry.operations as op>
71                   <option value="${entry.id};${op}">${op}</option>
72                                 </list>
73               </select>
74                             </if>
75                             <if entry.operations>
76                               |
77                             </if>
78                             <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${lang("edit")}</a>
79             <a href="${config.actionRoot}?module=Comment&do=articlecomments&articleid=${entry.id}">${lang("contentlist.comments")}</a>
80                           </span>
81                         </td>
82             <td width="20%" <if grey=="1">class="list3"<else>class="list4"</if> valign="top"><span class="x-small">
83   
84         ${entry.comment}&nbsp;</span></td>
85         <td class0"litegrey">
86           <span class="text">
87             <a href="${config.actionRoot}?module=Content&do=delete&id=${entry.id}&where=${utility.encodeURI(where)}&order=${utility.encodeURI(order)}&offset=${utility.encodeURI(offset)}">${lang("delete")}</a>
88               </span>
89         </td>
90       </tr>
91         </list>
92         <tr class="darkgrey">
93             <td colspan="4"><span class="witesmall">${count} ${lang("records")}
94         / ${lang("show_from_to", from, to)}</span></td></tr>
95         </table>
96 <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
97     <p>
98       <input class="majorbutton" type="submit" name="save" value="${lang("save")}">
99     </p>
100
101   </form>       
102 </if>  
103   <P>
104   
105   <if prevurl || nexturl>      
106     <if prevurl>
107       <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>
108     </if>
109     <if nexturl>
110       <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>
111     </if>
112   </if>
113
114 <else>
115   <P align="center">${lang("no_matches_found")}</p>
116 </if>
117
118 <include "foot.template">
119 </body>
120 </html>