// New Interface Design by Kon Angelopoulos // for the phpESP project. // // do not need to import session vars here // it is done by questions.inc before this code executes // this type of question has answer options if ($updated && $curr_q) { $sql = "SELECT id,content,feedback,credit FROM ".$GLOBALS['ESPCONFIG']['question_choice_table']." WHERE question_id=${curr_q} ORDER BY id"; $result = execute_sql($sql); $c = record_count($result); } else { if ($curr_q && isset($_POST['num_choices'])) $c = intval($_POST['num_choices']); else $c = $GLOBALS['ESPCONFIG']['default_num_choices']; } if(isset($_POST['extra_choices'])) $num_choices = max($c, $_POST['num_choices']) + 1; else $num_choices = $c; ?> MoveNext(); } else { if ($curr_q) { $choice_id = intval($_POST["choice_id_$i"]); if(isset($_POST["choice_content_$i"])) $choice_content = _stripslashes($_POST["choice_content_$i"]); $choice_credit = _stripslashes($_POST["choice_credit_$i"]); $choice_feedback = _stripslashes($_POST["choice_feedback_$i"]); } } ?>

!other'); ?> ' . _('To assign numeric credit for a particular answer, enter the associated credit beside each possible answer. Only question types of Radio Buttons, Check Boxes, and Dropdown Box may have credit. Credit for a multiple selection is the sum of the individual credit.') . '

'; ?> ' . _('To provide feedback to the survey respondent when selecting a particular answer, enter that feedback beside the answer. Only question types of Radio Buttons, Check Boxes, and Dropdown Box may have feedback. The feedback may include HTML, if desired.') . '

'; ?>
 
.