f1b25039b405c6c039475fc94c66ee654fd5e322
[mir.git] / templates / admin / contentlist.template
1 <comment>
2   if selectarticleurl is set, this list is used to select an article
3 </comment>
4
5 <if selectarticleurl!="">
6   <assign showsearch="1">
7   <assign showactions="0">
8 <else>
9   <assign showactions="1">
10   <assign showsearch="0">
11 </if>
12
13 <html>
14 <head>
15   <title>${config["Mir.Name"]} | ${lang("contentlist.htmltitle")} </title>
16   <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
17 </head>
18
19 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
20 <include "FUNCTIONS.template">
21 <include "head.template">
22
23 <if showsearch=="1">
24   <call ContentSearch ("layouted")>
25 </if>
26
27 <if articles>
28
29 <if showactions=="1">
30   <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
31     <form method="post" action="${config.actionRoot}">
32       <input type="hidden" name="module" value="Localizer">
33       <input type="hidden" name="do" value="articleoperationbatch">
34       <input type="hidden" name="returnurl" value="${utility.encodeHTML(thisurl)}">
35       <p class="box">
36         <input type="submit" name="save" value="${lang("save")}"> &nbsp; (${lang("commentlist.activate")})
37       </p>
38   </if>    
39 </if>
40
41 <call showPrevNextLinks(prevurl, nexturl, "right")>
42
43 <table border="0" width="100%" cellspacing="3" cellpadding="2">
44   <tr>
45     <td class="table-head" valign="top">
46       <span class="small">    
47       ${lang("content.creationdate")}<br>
48       ${lang("content.modificationdate")}<br>
49       ${lang("content.status")}
50       </span>
51     </td>
52     <td class="table-head" valign="top">
53       ${lang("content.type")} - ${lang("content.title")} <br>
54       ${lang("content.creator")}
55     </td>
56     <td class="table-head" valign="top">
57       ${lang("content.comment")}
58     </td>
59     <td class="table-head" valign="top">&nbsp;</td>
60   </tr>
61
62 <assign grey="0">
63
64   <list articles as entry>
65     <tr <if grey=="1"><assign grey="0">class="listrow1"<else>class="listrow2"<assign grey="1"></if>>
66       <td class="x-small">
67           ${entry.creationdate.formatted["dd.MM.yyyy HH:mm"]}<br>
68           ${entry.changedate.formatted["dd.MM.yyyy HH:mm"]}<br>
69           <if entry.is_published!="0">Pub.<else>-</if> <if entry.is_html!="0">HTML<else>-</if>
70       </td>
71       <td>
72         <b>${entry.title}</b><br>
73         ${lang("by")}: ${entry.creator}<br>
74         (${lang("articletypes." + entry.article_type.name)}) 
75         <if showactions=="1">
76           <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="0">
77             <list entry.operations as op>
78               [ <a href="${config.actionRoot}?module=Localizer&do=articleoperation&operation=${op}&articleid=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${lang("content.operation."+op)}</a> ]
79             </list>
80           </if>
81         <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="1">
82           <list entry.operations as op>
83             [ <input type="checkbox" name="operation" value="${entry.id};${op}"> ${lang("content.operation."+op)} ]
84           </list>
85         </if>
86           <if config["Mir.Localizer.Admin.ListOperationsFlavor"]=="2">
87             <select name="operation">
88               <option value="" selected>&nbsp;</option>
89               <list entry.operations as op>
90                 <option value="${entry.id};${op}">${lang("content.operation."+op)}</option>
91               </list>
92             </select>
93           </if>
94           <if entry.operations> | </if>
95           <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${lang("edit")}</a> |
96           <a href="${config.actionRoot}?module=Comment&do=articlecomments&articleid=${entry.id}&returnurl=${utility.encodeURI(thisurl)}">${lang("contentlist.comments")}</a> (${entry.commentcount})
97         <else>
98           <span class="text">
99           <a href="${config.actionRoot}?${selectarticleurl}&id=${entry.id}">${lang("contentlist.select")}</a>
100         </if>
101       </td>
102       <td width="25%"  <if grey=="1">class="listrow3"<else>class="listrow4"</if> valign="top">
103         <span class="small">${entry.comment}&nbsp;</span>
104       </td>
105       <td valign="top" class="listcommand">
106         <if showactions=="1">
107           <if config["Mir.Localizer.Admin.AllowDeleteArticle"]=="1">
108             <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>
109           </if>
110         </if>
111       </td>
112   </tr>
113 </list>
114   <tr>
115     <td colspan="4" class="table-foot">
116       ${count} ${lang("records")} / ${lang("show_from_to", from, to)}
117     </td>
118   </tr>
119 </table>
120
121 <if showactions=="1">
122   <if config["Mir.Localizer.Admin.ListOperationsFlavor"]!="0">
123     <p class="box">
124       <input class="majorbutton" type="submit" name="save" value="${lang("save")}"> &nbsp; ( ${lang("commentlist.activate")})
125     </p>
126   </form> 
127   </if>  
128 </if>
129
130
131 <call showPrevNextLinks(prevurl, nexturl, "right")>
132
133
134
135 <else>
136 <p align="center" class="box">${lang("no_matches_found")}</p>
137 </if>
138
139 <include "foot.template">
140 </body>
141 </html>