<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
-<include "templates/admin/head.template">
-
-<table border="0" cellpadding="2" cellspacing="1">
- <tr>
- <td colspan="5">
- <form method="post" action="${config.actionRoot}">
- <input type="hidden" name="module" value="Comment">
- <input type="hidden" name="do" value="list">
- <input type="hidden" name="offset" value="${data.offset}">
- <input type="text" size="10" maxlength="20" name="query_text" value="${data.query_text}">
- <select name="query_field">
- <option value="title"<if data.query_field=="title"> selected</if>>${lang("comment.title")}</option>
- <option value="creator"<if data.query_field=="creator"> selected</if>>${lang("comment.creator")}</option>
- <option value="description"<if data.query_field=="description"> selected</if>>${lang("comment.text")}</option>
- </select>
- <select name="query_is_published">
- <option value="">--</option>
- <option value="0" <if data.query_is_published=="0"> selected</if>>${lang("commentlist.hidden")}</option>
- <option value="1" <if data.query_is_published=="1"> selected</if>>${lang("commentlist.produced")}</option>
- </select>
- <select name="order">
- <option value="webdb_create" <if data.order=="webdb_create"> selected</if>>${lang("comment.date")}</option>
- <option value="articletitle" <if data.order=="articletitle"> selected</if>>${lang("comment.title")}</option>
- </select>
- <input type="submit" name="search" value="${lang("commentlist.search")}">
- </form>
- </td>
- </tr>
-
+<include "head.template">
+<assign grey="0">
+
+<form method="post" action="${config.actionRoot}">
+ <input type="hidden" name="module" value="Comment">
+ <input type="hidden" name="do" value="search">
+
+ <table border="0" cellpadding="2" cellspacing="1">
+ <tr class="pink">
+ <td>
+ search in field
+ </td>
+ <td>
+ for value
+ </td>
+ <td>
+ published
+ </td>
+ <td>
+ order
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="text" size="10" maxlength="20" name="searchtext" value="${searchtext}">
+ </td>
+
+ <td>
+ <select name="searchfield">
+ <option value="title"<if searchfield=="title"> selected</if>>${lang("comment.title")}</option>
+ <option value="creator"<if searchfield=="creator"> selected</if>>${lang("comment.creator")}</option>
+ <option value="description"<if searchfield=="description"> selected</if>>${lang("comment.text")}</option>
+ </select>
+ </td>
+ <td>
+ <select name="searchispublished">
+ <option value="">--</option>
+ <option value="0" <if searchispublished=="0"> selected</if>>${lang("commentlist.hidden")}</option>
+ <option value="1" <if searchispublished=="1"> selected</if>>${lang("commentlist.published")}</option>
+ </select>
+ </td>
+ <td>
+ <select name="searchorder">
+ <option value="datedesc" <if searchorder=="datedesc"> selected</if>>${lang("commentlist.order.datedesc")}</option>
+ <option value="dateasc" <if searchorder=="dateasc"> selected</if>>${lang("commentlist.order.dateasc")}</option>
+ <option value="articletitle" <if searchorder=="articletitle"> selected</if>>${lang("commentlist.order.articletitle")}</option>
+ </select>
+ </td>
+ <td>
+ <input type="submit" name="search" value="${lang("commentlist.search")}">
+ </td>
+ </tr>
+ </table>
+</form>
+<table border="0" cellpadding="2" cellspacing="1">
+ <if comments>
+ <tr><td>
+ <if prevurl>
+ <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>
+ </if>
+ <if nexturl>
+ <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>
+ </if>
+ </td></tr>
+ </if>
<tr class="pink">
<td><p class="head">${lang("comment.date")}</p></td>
<td><p class="head">${lang("comment.title")}/ ${lang("comment.creator")}<br>
${lang("comment.text")}</p></td>
- <td><p class="head">${lang("comment.article")}</P></td>
- </tr>
-
-<if data.contentlist>
-
- <list data.contentlist as entry>
- <tr <if grey=="1"><assign grey="0">class="list1"<else><assign grey="1">class="list2"</if>>
-
- <td>${entry.webdb_create_short}<br>
- <if entry.is_published=="0"><span class="spezialtext">hidden</span><else>-</if>
- </td>
-
- <td>
- <if entry.title><b>${entry.title}</b><br></if>
- <if entry.creator>Von: ${entry.creator}<br></if>
- <span class="small">${entry.description}</span>
- <if entry.main_url><br>URL: ${entry.main_url}</if>
- <br><a href="${config.actionRoot}?module=Comment&do=edit&order=${data.order}&offset=${data.offset}&id=${entry.id}">${lang("edit")}</a>
- </td>
-
-
- <td>
- ${data.articleHash[entry.to_media]["title"]}<br>
- <a href="${config.actionRoot}?module=Content&do=edit&id=${data.articleHash[entry.to_media]["id"]}">
- edit</a> |
- <a href="${config["Producer.ProductionHost"]}${config["Producer.DocRoot"]}${data.articleHash[entry.to_media]["publish_path"]}${data.articleHash[entry.to_media]["id"]}.shtml">
- view</a>
- </td>
-
- <td><span class="text"> <a href="${config.actionRoot}?module=Comment&do=delete&id=${entry.id}">${lang("delete")}</a>
- </span></td>
-
- </tr>
- </list>
-
- <tr>
- <td colspan="3" class="darkgrey"><span class="wite">${data.count} ${lang("records")}
- / ${lang("show_from_to", data.from, data.to)}</span></td>
- <td> </td>
</tr>
-<tr><td>
-<if data.prev>
-<a href="${config.actionRoot}?module=Comment&do=list&order=${data.order}&query_text=${data.query_text_encoded}&query_field=${data.query_field}&query_is_published=${data.query_is_published}&query_media_folder=${data.query_media_folder}&offset=${data.prev}&prev=zurück">zurueck</a>
-</if>
-<if data.next>
-<a href="${config.actionRoot}?module=Comment&do=list&order=${data.order}&query_text=${data.query_text_encoded}&query_field=${data.query_field}&query_is_published=${data.query_is_published}&query_media_folder=${data.query_media_folder}&offset=${data.next}&next=weiter">weiter</a>
-</if>
-</td></tr>
-<else>
- <tr><td align="center">${lang("no_matches_found")}</td></tr>
-</if>
+ <if comments>
+ <list comments as entry>
+ <tr <if grey=="1"><assign grey="0">class="list1"<else><assign grey="1">class="list2"</if>>
+
+ <td>${entry.webdb_create_short}<br>
+ <if entry.is_published=="0"><span class="spezialtext">hidden</span><else>-</if>
+ </td>
+
+ <td>
+ ${lang("comment.article")}
+ <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.to_content.id}">
+ ${utility.encodeHTML(entry.to_content.title)}
+ </a>
+ <br>
+ <a name="${entry.id}"></a>
+ <if entry.title><b>${entry.title}</b><br></if>
+
+ <if entry.creator>${lang("comment.creator")}: ${entry.creator}<br></if>
+ <span class="small">${entry.description}</span>
+ <if entry.main_url><br>URL: ${entry.main_url}</if>
+ <br><a href="${config.actionRoot}?module=Comment&do=edit&id=${entry.id}">${lang("edit")}</a>
+ <if entry.operations>|</if>
+
+ <list entry.operations as op>
+ [<a href="${config.actionRoot}?module=Localizer&do=commentoperation&operation=${op}&id=${entry.id}&returnurl=${utility.encodeURI(thisurl + "#" + entry.id)}">${op}</a>]
+ </list>
+
+ </td>
+
+ <td>
+ <span class="text">
+ <a href="${config.actionRoot}?module=Comment&do=delete&id=${entry.id}">${lang("delete")}</a>
+ </span>
+ </td>
+
+ </tr>
+ </list>
+
+ <tr class="pink">
+ <td colspan="3">${count} ${lang("records")} / ${lang("show_from_to", from, to)}</span></td>
+ </tr>
+ <tr><td>
+ <if prevurl>
+ <a href="${config.actionRoot}?${prevurl}">${lang("list.previous")}</a>
+ </if>
+ <if nexturl>
+ <a href="${config.actionRoot}?${nexturl}">${lang("list.next")}</a>
+ </if>
+ </td></tr>
+ <else>
+ <tr><td align="center">${lang("no_matches_found")}</td></tr>
+ </if>
</table>
-<include "templates/admin/foot.template">
+<include "foot.template">
</body>
</html>