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