fix in the date representation of listed comments
[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 "head.template">
11 <assign grey="0">
12
13 <form method="post" action="${config.actionRoot}">
14   <input type="hidden" name="module" value="Comment">
15   <input type="hidden" name="do" value="search">
16    
17   <table border="0" cellpadding="2" cellspacing="1">
18     <tr class="pink">
19       <td>
20         search in field
21       </td>
22       <td>
23         for value
24       </td>
25       <td>
26         published
27       </td>
28       <td>
29         order
30       </td>
31     </tr>
32     <tr>
33       <td>
34           <input type="text"   size="10" maxlength="20" name="searchtext" value="${searchtext}">
35       </td>
36
37       <td>
38               <select name="searchfield">
39             <option value="title"<if searchfield=="title"> selected</if>>${lang("comment.title")}</option>
40             <option value="creator"<if searchfield=="creator"> selected</if>>${lang("comment.creator")}</option>
41             <option value="description"<if searchfield=="description"> selected</if>>${lang("comment.text")}</option>
42           </select>
43       </td>
44       <td>
45           <select name="searchispublished">
46             <option value="">--</option>
47             <option value="0" <if searchispublished=="0"> selected</if>>${lang("commentlist.hidden")}</option>
48             <option value="1" <if searchispublished=="1"> selected</if>>${lang("commentlist.published")}</option>
49           </select>
50       </td>
51       <td>
52           <select name="searchorder">
53             <option value="datedesc" <if searchorder=="datedesc"> selected</if>>${lang("commentlist.order.datedesc")}</option>
54             <option value="dateasc" <if searchorder=="dateasc"> selected</if>>${lang("commentlist.order.dateasc")}</option>
55             <option value="articletitle" <if searchorder=="articletitle"> selected</if>>${lang("commentlist.order.articletitle")}</option>
56           </select>
57       </td>
58       <td>
59           <input type="submit" name="search" value="${lang("commentlist.search")}">
60       </td>
61     </tr>
62   </table>
63 </form>
64
65 <if comments>
66  <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
67   <form method="post" action="${config.actionRoot}">
68     <input type="hidden" name="module" value="Localizer">
69     <input type="hidden" name="do" value="commentoperationbatch">
70     <input type="hidden" name="returnurl" value="${utility.encodeHTML(thisurl)}">
71
72     <p>
73       <input class="majorbutton" type="submit" name="save" value="${lang("save")}">
74     </p>
75  </if>    
76
77     <table border="0" cellpadding="2" cellspacing="1">  
78       <if comments>
79         <tr><td>
80           <if prevurl>
81             <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>&nbsp;
82           </if>
83           <if nexturl>
84             <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>&nbsp;
85           </if>
86         </td></tr>
87       </if>
88       <tr class="pink">
89         <td><p class="head">${lang("comment.date")}</p></td>
90                 <td><p class="head">${lang("comment.title")}/ ${lang("comment.creator")}<br>
91                                         ${lang("comment.text")}</p></td>
92       </tr>
93     
94         <list comments as entry>
95           <tr <if grey=="1"><assign grey="0">class="list1"<else><assign grey="1">class="list2"</if>>
96         
97                         <td>${entry.creationdate.formatted["dd.MM.yyyy"]}<br>
98                   <if entry.is_published=="0"><span class="spezialtext">hidden</span><else>-</if>
99                         </td>
100         
101             <td>
102               <span class="small">
103                 ${lang("comment.article")}
104                 <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.to_content.id}">
105                   ${utility.encodeHTML(entry.to_content.title)}
106                 </a>
107                 <br>
108                   <a name="${entry.id}"></a>
109                   <span class="x-small">
110                     <if entry.status>${lang("commentstatus." + entry.status.name)} - </if> 
111                   </span>
112                     <b>${entry.title}</b><br>
113       
114                 <if entry.creator>${lang("comment.creator")}: ${entry.creator}<br></if>
115                 <span class="small">${entry.description}</span>
116                 <if entry.main_url><br>URL: ${entry.main_url}</if>
117                 <br>
118                 <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="0">
119                               <list entry.operations as op>
120                                 [<a href="${config.actionRoot}?module=Localizer&do=commentoperation&operation=${op}&id=${entry.id}&returnurl=${utility.encodeURI(thisurl + "#" + entry.id)}">${op}</a>]
121                               </list>
122                             </if>
123                 <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="1">
124                               <list entry.operations as op>
125                                     [<input type="checkbox" name="operation" value="${entry.id};${op}">${op}]
126                               </list>
127                             </if>
128                 <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="2">
129                       <select name="operation">
130                     <option value="" selected>&nbsp;</option>
131                                 <list entry.operations as op>
132                       <option value="${entry.id};${op}">${op}</option>
133                                 </list>
134                   </select>
135                             </if>
136                 <if entry.operations>|</if>
137                 <a href="${config.actionRoot}?module=Comment&do=edit&id=${entry.id}">${lang("edit")}</a>                
138                           </span>
139             </td>
140       
141             <td>
142               <span class="text">&nbsp;
143                 <a href="${config.actionRoot}?module=Comment&do=delete&id=${entry.id}">${lang("delete")}</a>
144               </span>
145             </td>
146         
147                 </tr>
148         </list>
149       
150         <tr class="pink">
151           <td colspan="3">${count} ${lang("records")} / ${lang("show_from_to", from, to)}</span></td>
152         </tr>
153         <tr><td>
154           <if prevurl>
155             <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>&nbsp;
156           </if>
157           <if nexturl>
158             <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>&nbsp;
159           </if>
160         </td></tr>
161     </table>
162
163   <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
164       <p>
165         <input class="majorbutton" type="submit" name="save" value="${lang("save")}">
166       </p>
167     </form>     
168   </if>  
169   
170 <else>
171   <P align="center">${lang("no_matches_found")}</p>
172 </if>
173
174 <include "foot.template">
175
176 </body>
177 </html>
178
179