Project

General

Profile

Feature #19575 » 9742_zebraFileList_v2.diff

Administrator Admin, 2008-11-27 22:11

View differences:

typo3/class.file_list.inc (working copy)
var $files = Array();
var $path = '';
var $eCounter=0; // Counting the elements no matter what...
var $dirCounter = 0;
var $totalItems='';
var $CBnames=array();
......
// 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++;
$this->dirCounter = $this->eCounter;
}
}
return $out;
......
break;
}
}
$out.= $this->addelement(1,$theIcon,$theData);
if ($this->dirCounter % 2 == 0) {
$altRows = 'class="' . ($i++ % 2 == 0 ? 'bgColor6' : 'bgColor4') . '"';
} else {
$altRows = 'class="' . ($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6') . '"';
}
$out .= $this->addelement(1, $theIcon, $theData, $altRows);
// Thumbsnails?
if ($this->thumbs && $this->isImage($theFile['fileext'])) {
$thumbData = array();
typo3/stylesheet.css (working copy)
padding: 3px;
}
table#typo3-filelist tr td.c-headLine {
table#typo3-filelist tr.c-headLine td {
background-color: #ccc;
font-weight: bold;
height: 16px;
typo3/sysext/t3skin/stylesheets/typo3-file-list.css (working copy)
- - - - - - - - - - - - - - - - - - - - - */
table#typo3-filelist {
border:1px solid #A2AAB8;
margin-top:10px;
}
......
vertical-align: bottom;
}
table#typo3-filelist tr td.c-headLine {
background-color:#B8BEC9;
background-image:url(../icons/gfx/alt_menu_mainitem_bg.gif);
background-repeat:repeat-x;
table#typo3-filelist tr.c-headLine {
background-color: #A2AAB8;
font-weight: bold;
}
table#typo3-filelist tr td.c-headLine a {
color:#FFFFFF;
table#typo3-filelist tr.c-headLine td a {
color: #fff;
}
table#typo3-filelist tr td img {
text-align: center;
}
table#typo3-filelist tr td div.typo3-clipCtrl {
background-color:transparent;
}
/* - - - - - - - - - - - - - - - - - - - - -
Title : TYPO3 File->Filelist Styles
Author : Jeff Segars <jeff@webempoweredchurch.org
URL : http://typo3.org
Description : Overwrites default styles for the File->Filelist module.
$Id$
- - - - - - - - - - - - - - - - - - - - - */
table#typo3-filelist {
border:1px solid #A2AAB8;
margin-top:10px;
}
table#typo3-filelist-top tr {
vertical-align: bottom;
}
table#typo3-filelist tr td.c-headLine {
background-color:#B8BEC9;
background-image:url(../icons/gfx/alt_menu_mainitem_bg.gif);
......
}
table#typo3-filelist tr td.c-headLine a {
color:#FFFFFF;
color:#fff;
}
table#typo3-filelist tr td img {
text-align: center;
}
table#typo3-filelist tr td div.typo3-clipCtrl {
background-color:transparent;
}
}
(7-7/7)