$old_q_media_height = $q_media_height; $old_correct = $correct; $old_score_method = $score_method; $old_display_method = $display_method; $old_std = $std; $old_screen = $screen; } $result->close(); $question_no++; if ($old_q_type == 'info') { $question_no--; } if (isset($std_set_array[$old_q_id])) { $old_std = $std_set_array[$old_q_id]; } displayQuestion($exclusions, $question_no, $old_q_id, $old_theme, $old_scenario, $old_leadin, $old_q_type, $old_correct, $old_q_media, $old_q_media_width, $old_q_media_height, $options_buffer, $o_media_buffer, $bottom_log_array, $top_log_array, $freq_array, $correct_buffer, $user_no, $old_score_method, $old_display_method, $old_themecolor, $old_std); ?> </table> <br /> <div class="subsect_table"><div class="subsect_title"><?php echo $string['summary']; ?> </div><div class="subsect_hr"><hr noshade="noshade" /></div></div> <table cellpadding="0" cellspacing="0" style="width:650px; margin-left:40px"> <tr><td colspan="2" style="padding-left:4px"><?php echo $string['msg']; ?> </td></tr>
$options_buffer['n/a'] = 'n/a'; $likert_properties = explode('|', $old_display_method); for ($i = 1; $i <= substr_count($old_display_method, '|'); $i++) { $options_buffer[$i] = $i; } } if ($question_no == 1 or $display_respondents == 1) { // Calculate how many candidates. $i = 1; foreach ($options_buffer as $individual_option) { $respondents += $log_array[$old_screen][$old_q_id][1][$i]; $i++; } $respondents += $log_array[$old_screen][$old_q_id][1]['n/a']; $respondents += $log_array[$old_screen][$old_q_id][1]['t']; $respondents += $log_array[$old_screen][$old_q_id][1]['f']; $respondents += $log_array[$old_screen][$old_q_id][1]['u']; $respondents += count($log_array[$old_screen][$old_q_id][1]['other']); if ($old_screen == 1) { echo "<w:p><w:r><w:t>({$respondents} Respondents)</w:t></w:r></w:p>"; } else { echo "<w:p><w:r><w:br w:type=\"page\"/><w:t>({$respondents} Respondents)</w:t></w:r></w:p>"; } } displayQuestion($old_q_id, $old_theme, $old_scenario, $old_leadin, $old_q_type, $old_correct, $old_q_media, $old_q_media_width, $old_q_media_height, $options_buffer, $log_array, $correct_buffer, $old_screen, $question_no, $respondents); } if ($table_on == 1) { echo '</w:tbl>'; } echo '<w:sectPr><w:hdr w:type="odd"><w:p><w:pPr><w:pStyle w:val="Header"/><w:tabs><w:tab w:val="clear" w:pos="8306"/><w:tab w:val="right" w:pos="9000"/></w:tabs></w:pPr><w:r><w:t>' . $paper . '</w:t></w:r><w:r><w:tab wx:wTab="1560" wx:tlc="none" wx:cTlc="34"/><w:t>' . date("d/m/Y") . '</w:t></w:r></w:p></w:hdr><w:ftr w:type="odd"><w:p><w:pPr><w:pStyle w:val="Footer"/><w:jc w:val="center"/></w:pPr><w:r><w:rPr><w:rStyle w:val="PageNumber"/></w:rPr><w:t>- </w:t></w:r><w:r><w:rPr><w:rStyle w:val="PageNumber"/></w:rPr><w:fldChar w:fldCharType="begin"/></w:r><w:r><w:rPr><w:rStyle w:val="PageNumber"/></w:rPr><w:instrText> PAGE </w:instrText></w:r><w:r><w:rPr><w:rStyle w:val="PageNumber"/></w:rPr><w:fldChar w:fldCharType="separate"/></w:r><w:r><w:rPr><w:rStyle w:val="PageNumber"/><w:noProof/></w:rPr><w:t>1</w:t></w:r><w:r><w:rPr><w:rStyle w:val="PageNumber"/></w:rPr><w:fldChar w:fldCharType="end"/></w:r><w:r><w:rPr><w:rStyle w:val="PageNumber"/></w:rPr><w:t> -</w:t></w:r></w:p></w:ftr><w:pgSz w:w="11906" w:h="16838"/><w:pgMar w:top="1134" w:right="1418" w:bottom="1134" w:left="1418" w:header="709" w:footer="709" w:gutter="0"/><w:cols w:space="708"/><w:docGrid w:line-pitch="360"/></w:sectPr></wx:sub-section></wx:sect></w:body></w:wordDocument>'; $mysqli->close();
} $old_q_id = $q_id; $old_theme = $theme; $old_scenario = $scenario; $old_leadin = $leadin; $old_q_type = $q_type; $old_q_media = $q_media; $old_q_media_width = $q_media_width; $old_q_media_height = $q_media_height; $old_correct = $correct; $old_settings = $settings; $old_display_method = $display_method; $old_score_method = $score_method; $old_std = $std; $old_screen = $screen; } $result->close(); $question_no++; if ($old_q_type == 'info') { $question_no--; } displayQuestion($question_no, $old_q_id, $old_theme, $old_scenario, $old_leadin, $old_q_type, $old_correct, $old_settings, $old_q_media, $old_q_media_width, $old_q_media_height, $options_buffer, $comments_array, $correct_buffer, $old_display_method, $old_score_method, $labelcolor, $themecolor, $old_std, $reviewer_data, $type, $string, $language); $mysqli->close(); ?> </table> <input type="hidden" name="scrOfY" id="scrOfY" value="0" /><br /> </form> </div> </body> </html>