- show filesize with unit

This commit is contained in:
steinm 2013-02-08 07:30:41 +00:00
parent 4a9b487dbc
commit be35f34561

View File

@ -56,7 +56,7 @@ var targetName = document.<?php echo $form?>.dropfolderfile<?php print $form ?>;
while (false !== ($entry = $d->read())) {
if($entry != '..' && $entry != '.') {
if(!is_dir($entry)) {
echo "<tr><td><span style=\"cursor: pointer;\" onClick=\"targetName.value = '".$entry."'; window.close();\">".$entry."</span></td><td>".filesize($dir.'/'.$entry)."</td></tr>\n";
echo "<tr><td><span style=\"cursor: pointer;\" onClick=\"targetName.value = '".$entry."'; window.close();\">".$entry."</span></td><td align=\"right\">".LetoDMS_Core_File::format_filesize(filesize($dir.'/'.$entry))."</td></tr>\n";
}
}
}