Project

General

Profile

Feature #14254 » 0000251-TCEForms.diff

Administrator Admin, 2005-01-24 16:47

View differences:

Desktop\class.t3lib_tceformsFIX.php Mon Jan 24 16:41:19 2005
* @param [type] $tRows: ...
* @return [type] ...
*/
function getSingleField_typeFlex_draw($dataStruct,$editData,$cmdData,$table,$field,$row,&$PA,$formPrefix='',$level=0,$tRows=array()) {
function getSingleField_typeFlex_draw($dataStruct,$editData,$cmdData,$table,$field,$row,&$PA,$formPrefix='',$level=0,$tRows=array(),$existsNext=0) {
// Data Structure array must be ... and array of course...
if (is_array($dataStruct)) {
......
$PA,
$formPrefix.'['.$key.'][el]['.$cc.']',
$level+1,
$tRows
$tRows,
isset($editData[$key]['el'][$cc+1])
);
}
}
......
$PA,
$formPrefix.'['.$key.'][el]['.($cc+1).']',
$level+1,
$tRows
$tRows,
isset($editData[$key]['el'][$cc+2])
);
}
}
} else {
$itemNo = preg_replace('/.*([0-9]+)\]$/','\\1',$formPrefix);
// Put row together
$tRows[]='<tr class="bgColor2">
<td nowrap="nowrap" valign="top">'.
'<input name="_DELETE_FLEX_FORM'.$PA['itemFormElName'].$formPrefix.'" type="checkbox" value="1" /><img src="'.$this->backPath.'gfx/garbage.gif" border="0" alt="" />'.
'<input name="_DELETE_FLEX_FORM'.$PA['itemFormElName'].$formPrefix.'" type="checkbox" value="1" /><img src="'.$this->backPath.'gfx/garbage.gif" border="0" alt="" />'.
'&nbsp;&nbsp;'.
($itemNo>1?'<input name="_MOVE_FLEX_FORM'.$PA['itemFormElName'].$formPrefix.'" type="image" src="gfx/pil2up.gif" value="up" onclick="TBE_EDITOR_submitForm()" />':'<img src="../clear.gif" height="7" width="12" />').
($existsNext?'<input name="_MOVE_FLEX_FORM'.$PA['itemFormElName'].$formPrefix.'" type="image" src="gfx/pil2down.gif" value="down" onclick="TBE_EDITOR_submitForm()" />':'<img src="../clear.gif" height="7" width="12" />').
'&nbsp;&nbsp;'.
($itemNo>1?'<input name="_MOVE_FLEX_FORM'.$PA['itemFormElName'].$formPrefix.'" type="image" src="gfx/pilup.gif" value="up-multi" onclick="TBE_EDITOR_submitForm()" />':'<img src="../clear.gif" height="14" width="14" />').
($existsNext?'<input name="_MOVE_FLEX_FORM'.$PA['itemFormElName'].$formPrefix.'" type="image" src="gfx/pildown.gif" value="down-multi" onclick="TBE_EDITOR_submitForm()" />':'<img src="../clear.gif" height="14" width="14" />').
$rowCells['title'].'</td>
<td>'.$rowCells['formEl'].'</td>
</tr>';
$tRows = $this->getSingleField_typeFlex_draw(
$value['el'],
$editData[$key]['el'],
(3-3/4)