web/drupal/modules/imce/tpl/imce-file-list.tpl.php
branchdrupal
changeset 74 0ff3ba646492
equal deleted inserted replaced
73:fcf75e232c5b 74:0ff3ba646492
       
     1 <?php
       
     2 // $Id: imce-file-list.tpl.php,v 1.7 2008/03/24 07:32:28 ufku Exp $
       
     3 $imce =& $imce_ref['imce'];//keep this line.
       
     4 
       
     5 //Although the file list table here is avaliable for theming, it is not recommended to change the table structure, because
       
     6 //it is read and manipulated by javascript assuming this is the deafult structure. You can always change the data created by
       
     7 //format functions such as format_size or format_date, or you can do css theming which is the best practice here.
       
     8 ?>
       
     9 
       
    10 <table id="file-list" class="files"><tbody><?php
       
    11 if ($imce['perm']['browse'] && !empty($imce['files'])) {
       
    12   foreach ($imce['files'] as $name => $file) {?>
       
    13   <tr id="<?php print $raw = rawurlencode($file['name']); ?>">
       
    14     <td class="name"><?php print $raw; ?></td>
       
    15     <td class="size" id="<?php print $file['size']; ?>"><?php print format_size($file['size']); ?></td>
       
    16     <td class="width"><?php print $file['width']; ?></td>
       
    17     <td class="height"><?php print $file['height']; ?></td>
       
    18     <td class="date" id="<?php print $file['date']; ?>"><?php print format_date($file['date'], 'small'); ?></td>
       
    19   </tr><?php
       
    20   }
       
    21 }?>
       
    22 </tbody></table>