[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/imce/tpl/ -> imce-file-list.tpl.php (source)

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


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7