template changes for the comment list per article
[mir.git] / templates-dist / admin / commentlist.template
index 623fc1a..7280679 100755 (executable)
@@ -1,99 +1,96 @@
 <html>
 <head>
        <title>${lang("commentlist.htmltitle")}</title>
-       <link rel="stylesheet" type="text/css" href="admin.css">
-
+       <link rel="stylesheet" type="text/css" href="${config.docRoot}/admin.css">
 </head>
 
 <body bgcolor="#FFFFFF">
+  <include "admin/head.template">
 
-<include "admin/head.template">
-
-<table border="0" cellpadding="2" cellspacing="1">
-  <tr>
-    <td colspan="5">
+  <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>
+             <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>
 
-  <tr bgcolor="#006600" >
-       <td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
-       <b>${lang("comment.date")}</b></font></td>
-       <td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
-       <b>${lang("comment.title")}<br>${lang("comment.creator")}</b></font></td>
-    <td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
-       <b>${lang("comment.text")}</b></font></td>
-    <td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
-       <b>${lang("comment.article")}</b></font></td>
-  </tr>
-<if data.contentlist>
+    <tr class="head">
+       <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>
+    </tr>
   
-  <list data.contentlist as entry>
-  <tr <if grey=="1"><assign grey="0">bgcolor="#dddddd" <else><assign grey="1"> </if> >
-       <td>${entry.date}<br>
-       <if entry.is_published=="0"><font color="Brown">V</font><else>-</if>
-       </td>
-
-       <td>
-               <b>${entry.title}</b><br>${entry.creator}
-       </td>
-       
-       <td>
-               <font size="-1">${entry.description}</font>
-               <a href="${config.actionRoot}?module=Comment&do=edit&order=${data.order}&offset=${data.offset}&id=${entry.id}">${lang("edit")}</a>
-       </td>
-
-       <td>
-               <a href="${config.actionRoot}?module=Content&do=edit&id=${articleHash[entry.to_media]["id"]}">
-               ${articleHash[entry.to_media]["title"]}</a>
-       </td>
-
-       <td><font size="1">&nbsp;<a href="${config.actionRoot}?module=Comment&do=delete&id=${entry.id}">${lang("delete")}</a>
-    </font></td>
-  </tr>
-  </list>
+    <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.date_formatted}<br>
+           <if entry.is_published=="0"><font color="Brown">hidden</font><else>&nbsp</if>
+                       <br>
+                       <a href="${config.actionRoot}?module=Comment&do=edit&order=${data.order}&offset=${data.offset}&id=${entry.id}">${lang("edit")}</a>
+<!--                           <a href="${config.actionRoot}?module=Comment&do=edit&order=${data.order}&offset=${data.offset}&id=${entry.id}">hide</a>-->
+                 </td>
+    
+          <td>
+            Article:
+                                 <a href="${config.actionRoot}?module=Content&do=edit&id=${data.articleHash[entry.to_media]["id"]}">
+                                  ${data.articleHash[entry.to_media]["title"]} 
+                                 </a><br>
+                       <if entry.title><b>${entry.title}</b><br></if>
+                       <if entry.creator>author: ${entry.creator}<br></if>
+                       <font size="-1">${entry.description}</font>
+                       <if entry.main_url><br>URL: ${entry.main_url}</if>
+               </td>
+       </tr>
+      </list>
+    
+      <tr>
+        <td colspan="3" bgcolor="#006600"><font color="#ffffff">${data.count} ${lang("records")}
+          / ${lang("show_from_to", data.from, data.to)}</font></td>
+        <td>&nbsp;</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&uuml;ck">zurueck</a>&nbsp;
+        </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>
+  </table>
   
-  <tr>
-    <td colspan="4" bgcolor="#006600"><font color="#ffffff">${data.count} ${lang("records")}
-      / ${lang("show_from_to", data.from, data.to)}</font></td>
-    <td>&nbsp;</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&uuml;ck">zurueck</a>&nbsp;
-</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>
-</table>
-
-<include "admin/foot.template">
-
+  <include "admin/foot.template">
 </body>
 </html>