templateModelRoot ist now a simplehash with two entries: data and config, bugfix...
authoridfx <idfx>
Sun, 17 Mar 2002 18:08:51 +0000 (18:08 +0000)
committeridfx <idfx>
Sun, 17 Mar 2002 18:08:51 +0000 (18:08 +0000)
templates-dist/de/mediafolderlist.template
templates-dist/de/message.template
templates-dist/de/messagelist.template

index 5ccf4c1..3ab095e 100755 (executable)
@@ -5,7 +5,7 @@
 
 <body bgcolor="#FFFFFF">
 <include "head.template">
-<if contentlist>
+<if data.contentlist>
        <table border="0">
                <tr bgcolor="#006600">
                <td><font color="#ffffff"><b>datum</b></font></td>
                        <td><font color="#ffffff"><b>kommentar</b></font></td>
                        <td><font color="#ffffff"><b>stichworte</b></font></td>
                 </tr>
-         <list contentlist as entry>
+         <list data.contentlist as entry>
                  <tr <if grey=="1"><assign grey="0">bgcolor="#dddddd" <else><assign grey="1"> </if> >
                        <td>${entry.date}&nbsp;</td>
                        <td><b>${entry.name}</b>&nbsp;</td>
                        <td>${entry.place}&nbsp;</td>
                        <td>${entry.comment}&nbsp;</td>
                        <td>${entry.keywords}&nbsp;</td>
-                       <td><font size="1"><a href="${actionRoot}?module=Mediafolder&do=delete&id=${entry.id}">delete</a>
-                       | <a href="${actionRoot}?module=Mediafolder&do=edit&id=${entry.id}">edit</a>
-                               | <a href="${actionRoot}?module=Images&do=list&query_media_folder=${entry.id}">browse</a></font></td>
+                       <td><font size="1"><a href="${config.actionRoot}?module=Mediafolder&do=delete&id=${entry.id}">delete</a>
+                       | <a href="${config.actionRoot}?module=Mediafolder&do=edit&id=${entry.id}">edit</a>
+                               | <a href="${config.actionRoot}?module=Images&do=list&query_media_folder=${entry.id}">browse</a></font></td>
                  </tr>
          </list>
                <tr>
-       <td colspan="5" bgcolor="#006600"><font color="#ffffff">${count} datens&auml;tze
-       / anzeige von ${from} bis ${to}</font></td>
+       <td colspan="5" bgcolor="#006600"><font color="#ffffff">${data.count} datens&auml;tze
+       / anzeige von ${data.from} bis ${data.to}</font></td>
        <td>&nbsp;</td>
                </tr>
        </table>
       <P>
        <if prev>
-       <a href="${actionRoot}?module=Mediafolder&do=list&where=${where}&prevoffset=${prev}&prev=zur&uuml;ck">zurueck</a>&nbsp;
+       <a href="${config.actionRoot}?module=Mediafolder&do=list&where=${data.where}&prevoffset=${data.prev}&prev=zur&uuml;ck">zurueck</a>&nbsp;
        </if>
        <if next>
-       <a href="${actionRoot}?module=Mediafolder&do=list&where=${where}&nextoffset=${next}&next=weiter">weiter</a>
+       <a href="${config.actionRoot}?module=Mediafolder&do=list&where=${data.where}&nextoffset=${data.next}&next=weiter">weiter</a>
        </if>
 <else>
   <P align="center"> Keine passenden Eintr&auml;ge gefunden!</p>
index 0e2b11a..d343ff5 100755 (executable)
@@ -7,17 +7,17 @@ indymedia.de | breaking
 
 <body bgcolor="#FFFFFF">
 <include "head.template">
-<form action="${actionRoot}" method="post">
+<form action="${config.actionRoot}" method="post">
        <input type="hidden" name="module" value="Message">
-       <input type="hidden" name="id" value="${id}">
-       <if new><input type="hidden" name="do" value="insert">
+       <input type="hidden" name="id" value="${data.id}">
+       <if data.new><input type="hidden" name="do" value="insert">
        <else><input type="hidden" name="do" value="update"></if>
 <table border="0">
   <tr>
     <td align="right" bgcolor="#006600"><font color="#ffffff" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <B>datum:</B></font></td>
     <td>
-      ${date}
+      ${data.date}
     </td>
   </tr>
 
@@ -25,7 +25,7 @@ indymedia.de | breaking
     <td align="right" bgcolor="#006600"><font color="#ffffff" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <B>titel:</B></td>
     <td>
-        <input type=text name="title" maxlength=40 value="${title}">
+        <input type=text name="title" maxlength=40 value="${data.title}">
     </td>
   </tr>
 
@@ -33,7 +33,7 @@ indymedia.de | breaking
     <td align="right" bgcolor="#006600"><font color="#ffffff" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <B>autor:</B></td>
     <td>
-        <input type=text name="creator" maxlength=40 value="${creator}">
+        <input type=text name="creator" maxlength=40 value="${data.creator}">
     </td>
   </tr>
 
@@ -41,7 +41,7 @@ indymedia.de | breaking
     <td align="right" bgcolor="#006600"><font color="#ffffff" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <B>text:</B> (max. 5 zeilen / 250 zeichen)</font></td>
     <td>
-        <textarea cols="50" rows="3" name="description" wrap=virtual>${description}</textarea>
+        <textarea cols="50" rows="3" name="description" wrap=virtual>${data.description}</textarea>
     </td>
   </tr>
 
index 44415de..2bf4eae 100755 (executable)
@@ -5,7 +5,7 @@
 
 <body bgcolor="#FFFFFF">
 <include "head.template">
-<if contentlist>
+<if data.contentlist>
 <table border="0" cellpadding="2" cellspacing="1">
   <tr bgcolor="#006600">
     <td><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="-1">
@@ -16,7 +16,7 @@
                <b>text</b></font></td>
   </tr>
 
-  <list contentlist as entry>
+  <list data.contentlist as entry>
   <tr
        <if grey=="1"><assign grey="0">bgcolor="#dddddd" <else><assign grey="1"> </if>
   >
   <td><b>${entry.title}</b><br>
       <i>${entry.creator}</i></td>
   <td bgcolor="Pink">${entry.description}&nbsp;</td>
-  <td><font size="1">&nbsp;<a href="${actionRoot}?module=Message&do=delete&id=${entry.id}">delete</a>
-    | <a href="${actionRoot}?module=Message&do=edit&id=${entry.id}">edit</a></font></td>
+  <td><font size="1">&nbsp;<a href="${config.actionRoot}?module=Message&do=delete&id=${entry.id}">delete</a>
+    | <a href="${config.actionRoot}?module=Message&do=edit&id=${entry.id}">edit</a></font></td>
   </tr>
   </list>
   <tr>
-    <td colspan="3" bgcolor="#006600"><font color="#ffffff">${count} datens&auml;tze
-      / anzeige von ${from} bis ${to}</font></td>
+    <td colspan="3" bgcolor="#006600"><font color="#ffffff">${data.count} datens&auml;tze
+      / anzeige von ${data.from} bis ${data.to}</font></td>
     <td>&nbsp;</td>
   </tr>
 </table>
 
       <P>
 <if prev>
-       <a href="${actionRoot}?module=Users&do=list&where=${where}&prevoffset=${prev}&prev=zur&uuml;ck">zurueck</a>&nbsp;
+       <a href="${config.actionRoot}?module=Users&do=list&where=${data.where}&prevoffset=${data.prev}&prev=zur&uuml;ck">zurueck</a>&nbsp;
 </if>
 <if next>
-<a href="${actionRoot}?module=Users&do=list&where=${where}&nextoffset=${next}&next=weiter">weiter</a>
+<a href="${config.actionRoot}?module=Users&do=list&where=${data.where}&nextoffset=${data.next}&next=weiter">weiter</a>
 </if>
 
 <else>