multiple file-editable directories
[mir.git] / templates / admin / fileeditlist.template
index 3cd22d4..cfbac44 100755 (executable)
@@ -8,82 +8,83 @@
 
 <include "head.template">
 
-<table cellpadding="16"><tr><td valign="top">
-
-
-<if dirlist || updir>
-<table border="0" cellpadding="2" cellspacing="2">
-
-       <tr>
-               <td class="table-head"><b>${lang("fileeditlist.dirname")}</b></td>
-               <td class="table-head">&nbsp;</td>
-       </tr>
-       <assign grey="0">
-
-<if updir>
-       <tr class="list1">
-               <td>&nbsp;..&nbsp;</td>
-               <td><a class="tablecommand" href="${config.actionRoot}?module=FileEdit&do=enter&subdirectory=${utility.encodeURI(updir)}&directory=">${lang("edit")}</a></td>
-       </tr>
-</if>
-
-<if dirlist>
-       <list dirlist as entry>
-               <if grey=="1">
-                       <assign grey="0">
-                       <tr class="listrow1">
-               <else>
-                       <tr class="listrow2">
-                       <assign grey="1"> 
-               </if>
-                               <td> ${entry}&nbsp;</td>
-                               <td class="tablecommand"><a href="${config.actionRoot}?module=FileEdit&do=enter&subdirectory=${utility.encodeURI(subdirectory)}&directory=${utility.encodeURI(entry)}">${lang("edit")}</a></td>
-                       </tr>
-       </list>
-       </if>
-
-</table>
-</if>
-
-
-</td>
-<td valign="top">
-
-
-<if filelist || updir || dirlist>
-
-</if>
-
-<if filelist>
-
-<table border="0" cellpadding="2" cellspacing="2">
-
-       <tr>
-               <td class="table-head"><b>${lang("fileeditlist.filename")}</b></td>
-               <td class="table-head">&nbsp;</td>
-       </tr>
-<assign grey="0">
-<list filelist as entry>
-       <if grey=="1">
-               <assign grey="0"><tr class="listrow1">
-       <else><tr class="listrow2">
-               <assign grey="1">
-       </if>
-                       <td>${entry}&nbsp;</td>
-                       <td class="tablecommand"><a href="${config.actionRoot}?module=FileEdit&do=edit&subdirectory=${utility.encodeURI(subdirectory)}&filename=${utility.encodeURI(entry)}">${lang("edit")}</a></td>
-               </tr>
-</list>
-</table>
-
-</td></tr></table>
-
-
-<P>
-<else>
-       <P align="center" class="box">${lang("no-matches_found")}</p>
-</if>
-<include "foot.template">
-</body>
+    <table cellpadding="16">
+      <tr>
+        <td valign="top">
+        
+        
+        <if dirlist || updir>
+          <table border="0" cellpadding="2" cellspacing="2">
+          
+               <tr>
+                       <td class="table-head"><b>${lang("fileeditlist.dirname")}</b></td>
+                       <td class="table-head">&nbsp;</td>
+               </tr>
+               <assign grey="0">
+          
+            <if updir>
+               <tr class="list1">
+                       <td>&nbsp;..&nbsp;</td>
+                       <td><a class="tablecommand" href="${config.actionRoot}?module=FileEdit&do=enter&entry=${entry}&subdirectory=${utility.encodeURI(updir)}&directory=">${lang("edit")}</a></td>
+               </tr>
+            </if>
+            
+            <if dirlist>
+               <list dirlist as item>
+                       <if grey=="1">
+                               <assign grey="0">
+                               <tr class="listrow1">
+                       <else>
+                               <tr class="listrow2">
+                               <assign grey="1"> 
+                       </if>
+                                       <td> ${item}&nbsp;</td>
+                                       <td class="tablecommand"><a href="${config.actionRoot}?module=FileEdit&do=enter&entry=${entry}&subdirectory=${utility.encodeURI(subdirectory)}&directory=${utility.encodeURI(item)}">${lang("edit")}</a></td>
+                               </tr>
+               </list>
+            </if>
+          
+          </table>
+        </if>
+        
+        
+        </td>
+        <td valign="top">
+          
+          <table border="0" cellpadding="2" cellspacing="2">
+          
+               <tr>
+                       <td class="table-head"><b>${lang("fileeditlist.filename")}</b></td>
+                       <td class="table-head">&nbsp;</td>
+               </tr>
+            <if filelist>
+              <assign grey="0">
+              <list filelist as item>
+               <if grey=="1">
+                       <assign grey="0">
+                       <tr class="listrow1">
+               <else>
+                 <tr class="listrow2">
+                       <assign grey="1">
+               </if>
+                    <td>${item}&nbsp;</td>
+                    <td class="tablecommand"><a href="${config.actionRoot}?module=FileEdit&do=edit&entry=${entry}&subdirectory=${utility.encodeURI(subdirectory)}&filename=${utility.encodeURI(item)}">${lang("edit")}</a></td>
+                  </tr>
+              </list>
+            <else>
+              <tr><td colspan="2">
+               <P align="center" class="box">${lang("no_matches_found")}</p>
+               </tr></tr>
+            </if>
+          </table>
+        </td>
+      </tr>
+    </table>
+  
+    <P>
+  
+    <include "foot.template">
+  </body>
 </html>