template changes for the comment list per article
authorzapata <zapata>
Mon, 19 Aug 2002 04:24:22 +0000 (04:24 +0000)
committerzapata <zapata>
Mon, 19 Aug 2002 04:24:22 +0000 (04:24 +0000)
templates-dist/admin/commentlist.template
templates-dist/admin/commentlist2.template [new file with mode: 0755]
templates-dist/admin/content.template
templates-dist/admin/contentlist.template

index cc5a45b..7280679 100755 (executable)
 <head>
        <title>${lang("commentlist.htmltitle")}</title>
        <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>
-
-  <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>
-    <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.date_formatted}<br>
-       <if entry.is_published=="0"><font color="Brown">V</font><else>-</if>
-               </td>
-
-               <td>
-                       <if entry.title><b>${entry.title}</b><br></if>
-                       <if entry.creator>Von: ${entry.creator}<br></if>
-                       <font size="-1">${entry.description}</font>
-                       <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.productionHost}${config.producerDocRoot}${data.articleHash[entry.to_media]["publish_path"]}${data.articleHash[entry.to_media]["id"]}.shtml">
-                               view</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>
-
-  <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>
-
-<include "admin/foot.template">
-
+             <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 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>
+  
+    <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>
+  
+  <include "admin/foot.template">
 </body>
 </html>
 
diff --git a/templates-dist/admin/commentlist2.template b/templates-dist/admin/commentlist2.template
new file mode 100755 (executable)
index 0000000..85bb043
--- /dev/null
@@ -0,0 +1,75 @@
+<html>
+<head>
+       <title>${lang("commentlist.htmltitle")}</title>
+       <link rel="stylesheet" type="text/css" href="${config.docRoot}/admin.css">
+</head>
+<assign grey="0">
+<body bgcolor="#FFFFFF">
+  <include "admin/head.template">
+
+  <table border="0" cellpadding="2" cellspacing="1">
+    <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>
+  
+    <if comments>
+      <list comments as entry>
+        <tr <if grey=="1"><assign grey="0">class="list1"<else><assign grey="1">class="list2"</if>>
+                 <td>
+                   ${entry.creationdate.formatted["dd-MM-yyyy hh:mm"]}<br>
+           <if entry.is_published=="0"><font color="Brown">hidden</font><else>&nbsp</if>
+                       <br>
+            <a href="${config.actionRoot}?module=Comment&do=edit&id=${entry.id}">${lang("edit")}</a>
+            <list entry.operations as operation>
+              <a href="${config.actionRoot}?operation=${operation}&module=Localizer&do=commentoperation&commentid=${entry.id}&returnuri=${utility.encodeURI(config.actionRoot+"?"+thisurl)}">
+                ${operation}
+              </a>
+            </list>
+                 </td>
+    
+          <td>
+            Article:
+                                 <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.to_content[0].id}">
+                                  ${entry.to_content[0].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 previousurl>
+          <a href="${config.actionRoot}?${previousurl}">previous page</a>
+        </if>
+        <if nexturl>
+          <a href="${config.actionRoot}?${nexturl}">next page</a>
+        </if>
+      </td></tr>
+    <else>
+      <tr>
+        <td align="center">${lang("no_matches_found")}
+        </td>
+      </tr>
+  </if>
+  </table>
+  
+  <include "admin/foot.template">
+</body>
+</html>
+
+
index e91a941..910fddf 100755 (executable)
@@ -31,7 +31,18 @@ p {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt}
                <b>${lang("content.owner")}:</b></td>
        <td> ${data.login_user.login}<br>${data.date}</td>
        </font>
-       <td colspan="3">&nbsp;</td>
+       <td>
+               <a href="${config.actionRoot}?module=Comment&do=listarticlecomments&offset=0&articleid=${data.id}">comments</a>
+       </td>
+       <td colspan="2" align="right" valign="top">
+               frei <a href="${config.docRoot}/help/content.html"><img src="${config.docRoot}/img/help.gif" border="0" align="absmiddle"></a>:
+               <input type="checkbox" name="is_published" value="1"<if data.is_published!="0" && data.is_published!=""> checked</if>>
+               <if data.new>
+               <input type="submit" name="save" value="${lang("insert")}">
+               <else>
+               <input type="submit" name="save" value="${lang("save")}">
+               </if>
+       </td>
 </tr>
 <tr>
        <td align="right" valign="top" bgcolor="#AAAAAA"><font color="#ffffff">
index ad33e6c..b9436dd 100755 (executable)
@@ -32,7 +32,9 @@
            <td><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><b>
                        <font size="-2">${articletypeHash[entry.to_article_type]["name"]} -- </font><if entry.place>${entry.place}: </if>${entry.title}</b><br>
                        ${entry.creator}&nbsp;
-                       <a href="${config.actionRoot}?module=Content&do=edit&id=${entry.id}&where=${data.where_encoded}&order=${data.order_encoded}&offset=${data.offset}">${lang("edit")}</a>
+                       [<a href="${config.actionRoot}?module=Content&do=edit&id=${entry.id}&where=${data.where_encoded}&order=${data.order_encoded}&offset=${data.offset}">${lang("edit")}</a>]
+                 [<a href="${config.actionRoot}?module=Comment&do=listarticlecomments&offset=0&articleid=${entry.id}">comments</a>]
+                       
                        <if entry.to_article_type=="0">&nbsp;|&nbsp;<a href="${config.actionRoot}?module=Content&do=newswire&id=${entry.id}&where=${data.where_encoded}&order=${data.order_encoded}&offset=${data.offset}">newswire</a></if></font></td>
            <td><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
                        <if entry.thema_id!="0">${themenHashData[entry.thema_id]["name"]}</if>&nbsp;<br>