#!/usr/bin/perl # # Source File: likert_wall_106.pl # # use strict; # Get config require 'sitecfg.pl'; require 'testlib.pl'; require 'tstatlib.pl'; require 'questionslib.pl'; use Data::Dumper; require bargraph_multi ; use vars qw(%FORM %SESSION %CLIENT %TEST_SESSION %SUBTEST_QUESTIONS %TEST %SUBTEST_SUMMARY %CANDIDATE %SUBTEST_ANSWERS %SYSTEM %REPORT %GRPFIELD %SUBTEST_RESPONSES @xlatphrase); use vars qw($testcomplete $cgiroot $pathsep $dataroot @rptparams ); use vars qw($testinprog $testpending) ; my $last_index, $HBI_Debug ; $HBI_Debug = 0 ; # Controls output of Debugging Data. my $HBI_Debug_Sample_Numbers = 0 ; $FORM{'frm'}=""; my %Month_Full = ("Jan" => "January", "Feb" => "February", "Mar" => "March", "Apr" => "April", "May" => "May", "Jun" => "June", "Jul" => "July", "Aug" => "August", "Sep" => "September", "Oct" => "October", "Nov" => "November", "Dec" => "December") ; &app_initialize; if ($HBI_Debug) {warn "INFO: " . __FILE__ . " running frm IS $FORM{'frm'} " ;} # Frames # Row-Col-Name -frm- Description and new data field(s) # * - * - - 0 - Display blank frame. # 1 - 1 - rptindx003 - 1 - Pick Candidate - FORM{'cndid'} # 2 - 1 - rpttidx003 - 2 - Pick first Test ID - FORM{'tstid', 'multiple'} # 2 - 2 - rptdtl003 - 3 - Pick Execution date of first test - ? # 3 - 1 - rpttidx004 - 4 - Pick follow up Test ID - ? # 3 - 2 - rptdtl004 - 5 - Pick Execution date of follow up test - ? # X - X - XXXXXXXXX - 6 - Print Automated Report - None # frm == 6 code will print all Content info, # and pick its own content type. unless ($FORM{'frm'} == '6') { print "Content-Type: text/html\n\n"; $bDisplay = 1; } # LIKERT Scale Test Reports by Candidate if (&get_session($FORM{'tid'})) { &LanguageSupportInit(); $REPORT{'rptid'}=""; @rptdefs = &get_data("reports.$SESSION{'clid'}"); @lbls = split(/&/, $rptdefs[0]); foreach $rptdef (@rptdefs) { chomp ($rptdef); @flds = split(/&/, $rptdef); if ($flds[0] eq $FORM{'rptno'}) { for $i (0 .. $#lbls) { $REPORT{$lbls[$i]} = $flds[$i]; $i++; } } } if ($FORM{'frm'} == '1') { &show_index_candidates; } elsif ($FORM{'frm'} == '2') { &show_index_tests; } elsif ($FORM{'frm'} == '3') { &show_filter_options; } elsif ($FORM{'frm'} == '4') { &show_2nd_index_tests ; } elsif ($FORM{'frm'} == '5') { &show_2nd_filter_options; } elsif ($FORM{'frm'} == '6') { &show_detail; } else { print "\n"; # Most likely, this is frm == 0 print "
\n"; print " \n"; print "\n"; } } else { warn __FILE__ . " running without a SESSION." ; &show_illegal_access_warning() ; } # ($FORM{'frm'} == '1') sub show_index_candidates { # This shows all of the candidates, even if they have not completed a relevant test. &log_entry($SESSION{'clid'}, $SESSION{'uid'}, "2", "Exec Report $FORM{'rptno'}"); &get_client_profile($SESSION{'clid'}); print "