- $typeDat=$this->ext_getTypeData($params["type"]);
- $checked="";
- $p_field="";
- $raname = substr(md5($params["name"]),0,10);
- $aname="'".$raname."'";
- if ($this->ext_dontCheckIssetValues || isset($this->objReg[$params["name"]])) {
- $checked=" checked";
- list($fN,$fV,$params)=$this->ext_fNandV($params);
-
- switch($typeDat["type"]) {
- case "int":
- case "int+":
- $p_field='<input 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+") {
- $p_field.=' Range: 0 - ';
- } else {
- $p_field.=' (Integer)';
- }
- break;
- case "color":
- $colorNames=explode(",",",".$this->HTMLcolorList);
- $p_field="";
- while(list(,$val)=each($colorNames)) {
- $sel="";
- if ($val==strtolower($params["value"])) {$sel=" selected";}
- $p_field.='<option value="'.htmlspecialchars($val).'"'.$sel.'>'.$val.'</option>';
+ $head = t3lib_div::fixed_lgd_cs($head, 35);
+ }
+ $typeDat = $this->ext_getTypeData($params['type']);
+ $checked = '';
+ $p_field = '';
+ $raname = substr(md5($params['name']), 0, 10);
+ $aname = '\'' . $raname . '\'';
+
+ list($fN, $fV, $params) = $this->ext_fNandV($params);
+
+ switch ($typeDat['type']) {
+ case 'int':
+ case 'int+':
+ $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+') {
+ $p_field .= ' Range: 0 - ';
+ } else {
+ $p_field .= ' (Integer)';
+ }
+ break;
+ case 'color':
+ $colorNames = explode(',', ',' . $this->HTMLcolorList);
+ $p_field = '';
+ foreach ($colorNames as $val) {
+ $sel = '';
+ if ($val == strtolower($params['value'])) {
+ $sel = ' selected';
+ }
+ $p_field .= '<option value="' . htmlspecialchars($val) . '"' . $sel . '>' . $val . '</option>';
+ }
+ $p_field = '<select id="select-' . $fN . '" rel="' . $fN . '" name="C' . $fN .
+ '" class="typo3-tstemplate-ceditor-color-select" onChange="uFormUrl(' .
+ $aname . ');">' . $p_field . '</select>';
+
+ $p_field .= '<input type="text" id="input-' . $fN . '" rel="' . $fN . '" name="' . $fN .
+ '" class="typo3-tstemplate-ceditor-color-input" value="' . $fV . '"' .
+ $GLOBALS['TBE_TEMPLATE']->formWidth(7) . ' onChange="uFormUrl(' . $aname . ')" />';
+ break;
+ case 'wrap':
+ $wArr = explode('|', $fV);
+ $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;
+ case 'offset':
+ $wArr = explode(',', $fV);
+ $labels = t3lib_div::trimExplode(',', $typeDat['paramstr']);
+ $p_field = ($labels[0] ? $labels[0] : 'x') . ':<input type="text" name="' . $fN . '" value="' . $wArr[0] . '"' .
+ $GLOBALS['TBE_TEMPLATE']->formWidth(4) . ' onChange="uFormUrl(' . $aname . ')" />';
+ $p_field .= ' , ';
+ $p_field .= ($labels[1] ? $labels[1] : 'y') . ':<input type="text" name="W' . $fN . '" value="' . $wArr[1] . '"' .
+ $GLOBALS['TBE_TEMPLATE']->formWidth(4) . ' onChange="uFormUrl(' . $aname . ')" />';
+ for ($aa = 2; $aa < count($labels); $aa++) {
+ if ($labels[$aa]) {
+ $p_field .= ' , ' . $labels[$aa] . ':<input type="text" name="W' . $aa . $fN . '" value="' . $wArr[$aa] . '"' .
+ $GLOBALS['TBE_TEMPLATE']->formWidth(4) . ' onChange="uFormUrl(' . $aname . ')" />';
+ } else {
+ $p_field .= '<input type="hidden" name="W' . $aa . $fN . '" value="' . $wArr[$aa] . '" />';
+ }
+ }
+ break;
+ case 'options':
+ if (is_array($typeDat['params'])) {
+ $p_field = '';
+ foreach ($typeDat['params'] as $val) {
+ $vParts = explode('=', $val, 2);
+ $label = $vParts[0];
+ $val = isset($vParts[1]) ? $vParts[1] : $vParts[0];
+
+ // option tag:
+ $sel = '';
+ if ($val == $params['value']) {
+ $sel = ' selected';