Project

General

Profile

Feature #17871 ยป labelEM.patch

Administrator Admin, 2007-11-30 16:08

View differences:

t3lib/class.t3lib_tsparser_ext.php (working copy)
switch($typeDat["type"]) {
case "int":
case "int+":
$p_field='<input type="text" name="'.$fN.'" value="'.$fV.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth(5).' onChange="uFormUrl('.$aname.')">';
$p_field='<input id="'.$fN.'" type="text" name="'.$fN.'" value="'.$fV.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth(5).' onChange="uFormUrl('.$aname.')">';
if ($typeDat["paramstr"]) {
$p_field.=' Range: '.$typeDat["paramstr"];
} elseif ($typeDat["type"]=="int+") {
......
if ($val==strtolower($params["value"])) {$sel=" selected";}
$p_field.='<option value="'.htmlspecialchars($val).'"'.$sel.'>'.$val.'</option>';
}
$p_field='<select name="C'.$fN.'" onChange="document.'.$this->ext_CEformName.'[\''.$fN.'\'].value=this.options[this.selectedIndex].value; uFormUrl('.$aname.');">'.$p_field.'</select>';
$p_field='<select id="'.$fN.'" name="C'.$fN.'" onChange="document.'.$this->ext_CEformName.'[\''.$fN.'\'].value=this.options[this.selectedIndex].value; uFormUrl('.$aname.');">'.$p_field.'</select>';
$p_field.='<input type="text" name="'.$fN.'" value="'.$fV.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth(7).' onChange="uFormUrl('.$aname.')">';
break;
case "wrap":
$wArr = explode("|",$fV);
$p_field='<input type="text" name="'.$fN.'" value="'.$wArr[0].'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth(29).' onChange="uFormUrl('.$aname.')">';
$p_field='<input type="text" id="'.$fN.'" name="'.$fN.'" value="'.$wArr[0].'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth(29).' onChange="uFormUrl('.$aname.')">';
$p_field.=' | ';
$p_field.='<input type="text" name="W'.$fN.'" value="'.$wArr[1].'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth(15).' onChange="uFormUrl('.$aname.')">';
break;
......
if ($val==$params["value"]) {$sel=" selected";}
$p_field.='<option value="'.htmlspecialchars($val).'"'.$sel.'>'.$GLOBALS["LANG"]->sL($label).'</option>';
}
$p_field='<select name="'.$fN.'" onChange="uFormUrl('.$aname.')">'.$p_field.'</select>';
$p_field='<select id="'.$fN.'" name="'.$fN.'" onChange="uFormUrl('.$aname.')">'.$p_field.'</select>';
}
break;
case "boolean":
$p_field='<input type="Hidden" name="'.$fN.'" value="0">';
$sel=""; if ($fV) {$sel=" checked";}
$p_field.='<input type="Checkbox" name="'.$fN.'" value="'.($typeDat["paramstr"]?$typeDat["paramstr"]:1).'"'.$sel.' onClick="uFormUrl('.$aname.')">';
$p_field.='<input id="'.$fN.'" type="Checkbox" name="'.$fN.'" value="'.($typeDat["paramstr"]?$typeDat["paramstr"]:1).'"'.$sel.' onClick="uFormUrl('.$aname.')">';
break;
case "comment":
$p_field='<input type="Hidden" name="'.$fN.'" value="#">';
$sel=""; if (!$fV) {$sel=" checked";}
$p_field.='<input type="Checkbox" name="'.$fN.'" value=""'.$sel.' onClick="uFormUrl('.$aname.')">';
$p_field.='<input id="'.$fN.'" type="Checkbox" name="'.$fN.'" value=""'.$sel.' onClick="uFormUrl('.$aname.')">';
break;
case "file":
$p_field='<option value=""></option>';
......
$p_field.='<option value="'.htmlspecialchars($val).'" selected>'.$val.'</option>';
}
// }
$p_field='<select name="'.$fN.'" onChange="uFormUrl('.$aname.')">'.$p_field.'</select>';
$p_field='<select id="'.$fN.'" name="'.$fN.'" onChange="uFormUrl('.$aname.')">'.$p_field.'</select>';
$p_field.=$theImage;
if (!$this->ext_noCEUploadAndCopying) {
......
}
// Upload?
$p_field.='<BR>';
$p_field.='<input type="file" name="upload_'.$fN.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth().' onChange="uFormUrl('.$aname.')" size="50" />';
$p_field.='<input id="'.$fN.'" type="file" name="upload_'.$fN.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth().' onChange="uFormUrl('.$aname.')" size="50" />';
}
break;
case 'user':
......
case 'small':
default:
$fwidth= $typeDat["type"]=="small" ? 10 : 46;
$p_field='<input type="text" name="'.$fN.'" value="'.$fV.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth($fwidth).' onChange="uFormUrl('.$aname.')">';
$p_field='<input id="'.$fN.'" type="text" name="'.$fN.'" value="'.$fV.'"'.$GLOBALS["TBE_TEMPLATE"]->formWidth($fwidth).' onChange="uFormUrl('.$aname.')">';
break;
}
}
......
$p_field='<span class="nobr">'.$p_field.'</span><br />';
}
$p_name = '<span class="typo3-dimmed">['.$params["name"].']</span><BR>';
$p_name = '<label for="'.$fN.'"><span class="typo3-dimmed">['.$params["name"].']</span></label><BR>';
$p_dlabel='<span class="typo3-dimmed"><b>Default:</b> '.htmlspecialchars($params["default_value"]).'</span><BR>';
$p_label = '<b>'.htmlspecialchars($head).'</b>';
$p_label = '<b><label for="'.$fN.'">'.htmlspecialchars($head).'</label></b>';
$p_descrip = $body ? htmlspecialchars($body)."<BR>" : "";
$output.='<tr>';
    (1-1/1)