3d35d348ebe919353ec6382bed4f43dcf6386aca
[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 <table border="0" cellpadding="2" cellspacing="1">  
65   <if comments>
66     <tr><td>
67       <if prevurl>
68         <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>&nbsp;
69       </if>
70       <if nexturl>
71         <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>&nbsp;
72       </if>
73     </td></tr>
74   </if>
75   <tr class="pink">
76         <td><p class="head">${lang("comment.date")}</p></td>
77                 <td><p class="head">${lang("comment.title")}/ ${lang("comment.creator")}<br>
78                                         ${lang("comment.text")}</p></td>
79   </tr>
80
81   <if comments>
82     <list comments as entry>
83       <tr <if grey=="1"><assign grey="0">class="list1"<else><assign grey="1">class="list2"</if>>
84     
85                 <td>${entry.creationdate.formatted["dd.mm.yyyy"]}<br>
86           <if entry.is_published=="0"><span class="spezialtext">hidden</span><else>-</if>
87                 </td>
88     
89         <td>
90           ${lang("comment.article")}
91           <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.to_content.id}">
92             ${utility.encodeHTML(entry.to_content.title)}
93           </a>
94           <br>
95             <a name="${entry.id}"></a>
96           <if entry.title><b>${entry.title}</b><br></if>
97
98           <if entry.creator>${lang("comment.creator")}: ${entry.creator}<br></if>
99           <span class="small">${entry.description}</span>
100           <if entry.main_url><br>URL: ${entry.main_url}</if>
101           <br><a href="${config.actionRoot}?module=Comment&do=edit&id=${entry.id}">${lang("edit")}</a>
102           <if entry.operations>|</if>
103           
104                             <list entry.operations as op>
105                               [<a href="${config.actionRoot}?module=Localizer&do=commentoperation&operation=${op}&id=${entry.id}&returnurl=${utility.encodeURI(thisurl + "#" + entry.id)}">${op}</a>]
106                             </list>
107
108         </td>
109   
110         <td>
111           <span class="text">&nbsp;
112             <a href="${config.actionRoot}?module=Comment&do=delete&id=${entry.id}">${lang("delete")}</a>
113           </span>
114         </td>
115     
116         </tr>
117     </list>
118   
119     <tr class="pink">
120       <td colspan="3">${count} ${lang("records")} / ${lang("show_from_to", from, to)}</span></td>
121     </tr>
122     <tr><td>
123       <if prevurl>
124         <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>&nbsp;
125       </if>
126       <if nexturl>
127         <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>&nbsp;
128       </if>
129     </td></tr>
130     <else>
131       <tr><td align="center">${lang("no_matches_found")}</td></tr>
132     </if>
133 </table>
134
135 <include "foot.template">
136
137 </body>
138 </html>
139
140