|
|
|
@ -430,7 +430,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra |
|
|
|
|
break; |
|
|
|
|
case USER_FIELD_TYPE_RADIO : |
|
|
|
|
$group = array (); |
|
|
|
|
foreach ($field_details[8] as $option_id => $option_details) { |
|
|
|
|
foreach ($field_details[9] as $option_id => $option_details) { |
|
|
|
|
$options[$option_details[1]] = $option_details[2]; |
|
|
|
|
$group[] = & HTML_QuickForm :: createElement('radio', 'extra_' . $field_details[1], $option_details[1], $option_details[2] . '<br />', $option_details[1]); |
|
|
|
|
} |
|
|
|
@ -441,7 +441,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra |
|
|
|
|
break; |
|
|
|
|
case USER_FIELD_TYPE_SELECT : |
|
|
|
|
$options = array (); |
|
|
|
|
foreach ($field_details[8] as $option_id => $option_details) { |
|
|
|
|
foreach ($field_details[9] as $option_id => $option_details) { |
|
|
|
|
$options[$option_details[1]] = $option_details[2]; |
|
|
|
|
} |
|
|
|
|
$form->addElement('select', 'extra_' . $field_details[1], $field_details[3], $options, ''); |
|
|
|
@ -450,7 +450,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra |
|
|
|
|
break; |
|
|
|
|
case USER_FIELD_TYPE_SELECT_MULTIPLE : |
|
|
|
|
$options = array (); |
|
|
|
|
foreach ($field_details[8] as $option_id => $option_details) { |
|
|
|
|
foreach ($field_details[9] as $option_id => $option_details) { |
|
|
|
|
$options[$option_details[1]] = $option_details[2]; |
|
|
|
|
} |
|
|
|
|
$form->addElement('select', 'extra_' . $field_details[1], $field_details[3], $options, array ( |
|
|
|
@ -478,7 +478,7 @@ if ($survey_data['form_fields']!='' && $survey_data['anonymous'] == 0 && is_arra |
|
|
|
|
$form->applyFilter('theme', 'trim'); |
|
|
|
|
break; |
|
|
|
|
case USER_FIELD_TYPE_DOUBLE_SELECT : |
|
|
|
|
foreach ($field_details[8] as $key => $element) { |
|
|
|
|
foreach ($field_details[9] as $key => $element) { |
|
|
|
|
if ($element[2][0] == '*') { |
|
|
|
|
$values['*'][$element[0]] = str_replace('*', '', $element[2]); |
|
|
|
|
} else { |
|
|
|
|