Playing Sound\n\n"); break; case "german": include('htmlhead_name_mesg_formhead_german.php'); //printf("\n

Ton Wird Gespielt

\n\n"); break; default: include('htmlhead_name_mesg_formhead.php'); //printf("\n

Playing Sound

\n\n"); break; } $_SESSION['trial_id'] = $trial_id; $sql_get_location = sprintf("select location from trial left join stimulus on (trial.stimulus_id1 = stimulus.stimulus_id) "). sprintf("where trial.trial_id = %d",$_SESSION['trial_id']); $get_location = mysql_select($sql_get_location); $relative_stim_path = $get_location['location']; $stim_url = utf8_encode($relative_stim_path); //get the stimulus_id for this stim based on the location returned $sql_stim_id = sprintf("select stimulus_id from stimulus where location='%s'",$relative_stim_path); mysql_select_db($database_subject,$subject); $get_stim_id = mysql_query($sql_stim_id, $subject) or die(mysql_error()); $row_stim_id = mysql_fetch_assoc($get_stim_id); $_SESSION['stimulus_id'] = $row_stim_id['stimulus_id']; present_stimuli(NULL,$_SESSION['stimulus_id']); printf("\n"); } else if ($trial_id == "break") { if($_SESSION['language'] == 'english') { include($questionnaire_dir."form_processing/htmlhead_name_mesg.php"); printf("
\n",$_SERVER['PHP_SELF']); printf("Take a short break if you would like. Click Next when you are ready to continue.

\n"); } elseif($_SESSION['language'] == 'german') { include($questionnaire_dir."form_processing/htmlhead_name_mesg_german.php"); printf("\n",$_SERVER['PHP_SELF']); printf("Wenn sie möchten können sie jetzt eine kurze Pause machen. Wenn sie fertig sind, klicken sie bitte \"weiter\".

\n"); } printf(">>\">\n"); printf("
"); } else if ($trial_id == "end") { unset($_SESSION['trial_id']); //after all trials have been exhausted, break out of the loop $_SESSION['num_skip_forms'] = 1; include($questionnaire_dir."form_processing/update_session.php"); } } else { $submit_to = "update_session.php"; $trial_form = TRUE; if($_SESSION['language'] == 'english') include('htmlhead_name_mesg_formhead.php'); else include('htmlhead_name_mesg_formhead_german.php'); include('display_form_fields.php'); } ?>