web/drupal/modules/imce/tpl/imce-file-list.tpl.php
branchdrupal
changeset 74 0ff3ba646492
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/drupal/modules/imce/tpl/imce-file-list.tpl.php	Fri Aug 21 16:26:26 2009 +0000
@@ -0,0 +1,22 @@
+<?php
+// $Id: imce-file-list.tpl.php,v 1.7 2008/03/24 07:32:28 ufku Exp $
+$imce =& $imce_ref['imce'];//keep this line.
+
+//Although the file list table here is avaliable for theming, it is not recommended to change the table structure, because
+//it is read and manipulated by javascript assuming this is the deafult structure. You can always change the data created by
+//format functions such as format_size or format_date, or you can do css theming which is the best practice here.
+?>
+
+<table id="file-list" class="files"><tbody><?php
+if ($imce['perm']['browse'] && !empty($imce['files'])) {
+  foreach ($imce['files'] as $name => $file) {?>
+  <tr id="<?php print $raw = rawurlencode($file['name']); ?>">
+    <td class="name"><?php print $raw; ?></td>
+    <td class="size" id="<?php print $file['size']; ?>"><?php print format_size($file['size']); ?></td>
+    <td class="width"><?php print $file['width']; ?></td>
+    <td class="height"><?php print $file['height']; ?></td>
+    <td class="date" id="<?php print $file['date']; ?>"><?php print format_date($file['date'], 'small'); ?></td>
+  </tr><?php
+  }
+}?>
+</tbody></table>
\ No newline at end of file