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