\n"); printf("
\n\n",$submit_to,$form_name,$form_name); unset($options); preg_match_all("|\"([^\"]*)\"|",$row_trial_form['enum_values'],$matches,PREG_PATTERN_ORDER); foreach($matches[1] as $values) $options[] = $values; $num_options = sizeof($options); printf("\n"); printf("",$row_trial_form['question_text']); printf("\t\n"); $enum_ind = 0; while($enum_ind < sizeof($options)) { $row_count = $enum_ind % $num_cell_width + 1; $row_enum_ind = $enum_ind; while(($row_count <= $num_cell_width) && ($row_enum_ind < sizeof($options)) ) { printf(sprintf("\n\t\n",$options[$row_enum_ind])); $row_enum_ind++; $row_count++; } printf("\n\n"); $row_enum_ind = $enum_ind; $row_count = $enum_ind % $num_cell_width + 1; while( ($row_count <= $num_cell_width) && ($row_enum_ind < sizeof($options)) ) { if($options[$row_enum_ind] != $row_form_questions['default']) printf(sprintf("\n\t\n",$enum_fieldname,$row_enum_ind)); else printf(sprintf("\n\t\n",$enum_fieldname,$row_enum_ind)); $row_enum_ind++; $row_count++; } //start a new row if we have exceeded the row width if($row_count > $num_cell_width) printf("\n\n\n"); $enum_ind = $row_enum_ind; } printf("\n"); printf("\n
%s
%s
"); //write the footer of the form printf("

".$row_form_info['footer']."

"); printf("

\n",$form_id); printf("

\n"); printf("\n",$enum_fieldname); printf("\n",date("Y-m-d H:i:s")); printf("

>>\">\n

\n"); printf("\n
\n"); ?>