Project

General

Profile

Bug #24329 » bug_16732_v1.diff

Administrator Admin, 2010-12-13 14:21

View differences:

typo3_poligon/typo3/class.db_list_extra.inc 2010-12-13 15:14:17.593905140 +0200
$fields[]='_CONTROL_';
$fields[]='_CLIPBOARD_';
// Create an option for each field:
// Create an option for each field:
$opt=array();
$opt[] = '<option value=""></option>';
foreach($fields as $fN) {
$fL = is_array($TCA[$table]['columns'][$fN]) ? rtrim($LANG->sL($TCA[$table]['columns'][$fN]['label']),':') : '['.$fN.']'; // Field label
$opt[] = '
<option value="'.$fN.'"'.(in_array($fN,$setFields)?' selected="selected"':'').'>'.htmlspecialchars($fL).'</option>';
foreach($fields as $fN) {
$fL = is_array($TCA[$table]['columns'][$fN]) ? rtrim($LANG->sL($TCA[$table]['columns'][$fN]['label']),':') : '['.$fN.']'; // Field label
$opt[$fL.$fN] = '
<option value="'.$fN.'"'.(in_array($fN,$setFields)?' selected="selected"':'').'>'.htmlspecialchars($fL).'</option>';
}
// Sort options alphabetically, according to their labels
ksort($opt,SORT_STRING);
// Prepend empty option, for resetting list-view
array_unshift($opt, '<option value=""></option>');
// Compile the options into a multiple selector box:
$lMenu = '
<select size="'.t3lib_div::intInRange(count($fields)+1,3,20).'" multiple="multiple" name="displayFields['.$table.'][]">'.implode('',$opt).'
(2-2/2)