Project

General

Profile

Feature #19575 » v2_class.file_list.inc.diff

Administrator Admin, 2008-11-06 13:51

View differences:

typo3/class.file_list.inc (working copy)
// half line is drawn
$theData = Array();
$theData[$titleCol] = '';
$iOut.=$this->addelement(0,'',$theData);
}
......
<!--
File list table:
-->
<table border="0" cellpadding="0" cellspacing="0" id="typo3-filelist">
<table border="0" cellpadding="0" cellspacing="1" id="typo3-filelist">
'.$out.'
</table>';
}
......
function formatDirList($items) {
$out='';
// Files:
// Folders:
if (count($items['sorting'])) {
reset($items['sorting']);
while (list($key,) = each($items['sorting'])) {
......
while(list(,$field)=each($this->fieldArray)) {
switch($field) {
case 'size':
// $theData[$field]=t3lib_div::formatSize($theFile[$field]);
$theData[$field]=t3lib_div::formatSize($theFile[$field]);
break;
case 'rw':
$theData[$field]= (($theFile['readable'])?'':'<span class="typo3-red"><b>R</b></span>').(($theFile['writable'])?'':'<span class="typo3-red"><b>W</b></span>');
break;
case 'fileext':
// $theData[$field]=strtoupper($theFile['fileext']);
$theData[$field]=strtoupper($theFile['fileext']);
break;
case 'tstamp':
$theData[$field]=Date($GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'], $theFile['tstamp']);
......
break;
}
}
$out.=$this->addelement(1,$theIcon,$theData);
$altRows = 'class="' . ($i++ % 2 == 0 ? 'bgColor6' : 'bgColor4') . '"';
$out .= $this->addelement(1, $theIcon, $theData, $altRows);
}
$this->eCounter++;
}
......
break;
}
}
$out.= $this->addelement(1,$theIcon,$theData);
$altRows = 'class="' . ($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6') . '"';
$out .= $this->addelement(1, $theIcon, $theData, $altRows);
// Thumbsnails?
if ($this->thumbs && $this->isImage($theFile['fileext'])) {
$thumbData = array();
(6-6/7)