Bug #20644 ยป 11374.diff
t3lib/class.t3lib_tceforms.php (working copy) | ||
---|---|---|
foreach($fields as $info) {
|
||
$fieldParts = t3lib_div::trimExplode(';',$info);
|
||
$theField = $fieldParts[0];
|
||
if (!in_array($theField,$this->excludeElements) && $TCA[$table]['columns'][$theField]) {
|
||
if ($theField === '--linebreak--') {
|
||
$parts[]['NAME'] = '--linebreak--';
|
||
} elseif (!in_array($theField,$this->excludeElements) && $TCA[$table]['columns'][$theField]) {
|
||
$this->palFieldArr[$palette][] = $theField;
|
||
$elem = $this->getSingleField($table,$theField,$row,$fieldParts[1],1,'',$fieldParts[2]);
|
||
if (is_array($elem)) {
|
||
... | ... | |
$ccAttr2.= $this->classScheme[2] ? ' class="'.$this->classScheme[2].'"' : '';
|
||
$ccAttr4 = $this->colorScheme[4] ? ' style="color:'.$this->colorScheme[4].'"' : '';
|
||
$ccAttr4.= $this->classScheme[4] ? ' class="'.$this->classScheme[4].'"' : '';
|
||
|
||
$row = 0;
|
||
$hRow = $iRow = array();
|
||
|
||
// Traverse palette fields and render them into table rows:
|
||
foreach($palArr as $content) {
|
||
$hRow[]='<td'.$ccAttr2.'> </td>
|
||
<td nowrap="nowrap"'.$ccAttr2.'>'.
|
||
'<span'.$ccAttr4.'>'.
|
||
$content['NAME'].
|
||
'</span>'.
|
||
'</td>';
|
||
$iRow[]='<td valign="top">'.
|
||
'<img name="req_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" src="clear.gif" width="10" height="10" vspace="4" alt="" />'.
|
||
'<img name="cm_'.$content['TABLE'].'_'.$content['ID'].'_'.$content['FIELD'].'" src="clear.gif" width="7" height="10" vspace="4" alt="" />'.
|
||
'</td>
|
||
<td nowrap="nowrap" valign="top">'.
|
||
$content['ITEM'].
|
||
$content['HELP_ICON'].
|
||
'</td>';
|
||
foreach($palArr as $content) {
|
||
if ($content['NAME'] === '--linebreak--') {
|
||
$row++;
|
||
} else {
|
||
$hRow[$row][] = '<td' . $ccAttr2 . '> </td>
|
||
<td nowrap="nowrap"' . $ccAttr2 . '>' .
|
||
'<span' . $ccAttr4 . '>' .
|
||
$content['NAME'] .
|
||
'</span>' .
|
||
'</td>';
|
||
$iRow[$row][] = '<td valign="top">' .
|
||
'<img name="req_' . $content['TABLE'] . '_' . $content['ID'] . '_' . $content['FIELD'] . '" src="clear.gif" width="10" height="10" vspace="4" alt="" />' .
|
||
'<img name="cm_' . $content['TABLE'] . '_' . $content['ID'] . '_' . $content['FIELD'] . '" src="clear.gif" width="7" height="10" vspace="4" alt="" />' .
|
||
'</td>
|
||
<td nowrap="nowrap" valign="top">' .
|
||
$content['ITEM'] .
|
||
$content['HELP_ICON'] .
|
||
'</td>';
|
||
}
|
||
}
|
||
// Final wrapping into the table:
|
||
$out='<table border="0" cellpadding="0" cellspacing="0" class="typo3-TCEforms-palette">
|
||
<tr>
|
||
<td><img src="clear.gif" width="'.intval($this->paletteMargin).'" height="1" alt="" /></td>'.
|
||
implode('
|
||
',$hRow).'
|
||
</tr>
|
||
<tr>
|
||
<td></td>'.
|
||
implode('
|
||
',$iRow).'
|
||
</tr>
|
||
</table>';
|
||
$out='<table border="0" cellpadding="0" cellspacing="0" class="typo3-TCEforms-palette">';
|
||
for ($i=0; $i<=$row; $i++) {
|
||
$out .= '
|
||
<tr>
|
||
<td><img src="clear.gif" width="'.intval($this->paletteMargin).'" height="1" alt="" /></td>'.
|
||
implode('
|
||
', $hRow[$i]) . '
|
||
</tr>
|
||
<tr>
|
||
<td></td>'.
|
||
implode('
|
||
', $iRow[$i]) . '
|
||
</tr>';
|
||
}
|
||
$out .= '</table>';
|
||
return $out;
|
||
}
|