<td><input type="text" name="MESSAGE_<?php echo $i; ?> " value="<?php echo $message; ?> " style="width:100%" onchange="jsFormValidatorSettings.UpdateAll();" /></td> <td><input type="text" name="VALUE_<?php echo $i; ?> " value="<?php echo $value; ?> " size="16" /></td> <td nowrap="nowrap"><?php echo SelectBoxFromArray("FIELD_TYPE_" . $i, CFormAnswer::GetTypeList(), $ftype, "", "onchange=\"FIELD_TYPE_CHANGE(" . $i . "); jsFormValidatorSettings.UpdateAll();\""); ?> </td> <td nowrap="nowrap"><input <?php if ($ftype != "text" && $ftype != "textarea" && $ftype != "image" && $ftype != "date" && $ftype != 'email') { echo "disabled"; } ?> type="text" id="FIELD_WIDTH_<?php echo $i; ?> " name="FIELD_WIDTH_<?php echo $i; ?> " value="<?php echo $width;
function GetAnswerTypeList() { return CFormAnswer::GetTypeList(); }
{ $bResults=true; reset($arCompat_desc); while($e=each($arCompat_desc)) { if (in_array($ftype,array_keys($e[1]))) { $arCompatList=array_keys($e[1]); // list of compatible fields break; } } } } $arTypes = CFormAnswer::GetTypeList(); reset($arTypes['reference']); while ($e=each($arTypes['reference'])) { if (!$ID || !$bResults || in_array($e[1],$arCompatList)) print "<option value='$e[1]'".($e[1]==$ftype?" selected=\"selected\"":"").">".$arTypeList_desc[$e[1]]." [".$e[1]."]</option>\n"; } ?> </select> </tr> <tr> <td valign="top"><?php echo GetMessage("FORM_ANSWER"); ?> </td> <td>
public static function GetAnswerTypeList() { return CFormAnswer::GetTypeList(); }