#!/usr/bin/perl
##!/usr/local/bin/perl5.8.0
#
#
#
# Source File: tgwall101.pl
# Get config
# require 'sitecfg.pl';
# require 'testlib.pl';
# require 'tstatlib.pl';
# require 'cybertestlib.pl';
# use Time::Local;
# $FORM{'frm'}="";
# &app_initialize;
my $HBI_Debug = 0 ;
if ($FORM{'pdf'}) {
print "Content-Type: application/pdf\n\n";
open(STDOUT, "| ".$cfgroot.$pathsep."html2pdf");
select(STDOUT); # needed for older versions of perl
} else {
; # print "Content-Type: text/html\n\n";
}
# This is a customized version of the Test/Survey Summary Statistics for Terry G. Wall.
# It is trying to provide a lot of the ACT-C-004 functionality,
# but not the stuff he does not want.
# $REPORT{'rptid'} = 'ACT-C-004' ;
my $HBI_Key ;
if (($FORM{'frm'} eq '1') || ($FORM{'frm'} eq '5')) {
&show_index;
if ($HBI_Debug) {
foreach $HBI_Key (sort keys %FORM) {
print " key $HBI_Key FORM $FORM{$HBI_Key} X \n" ;
}
}
} else {
if ($FORM{'frm'} eq '2') {
&show_detail;
if ($HBI_Debug) {
foreach $HBI_Key (sort keys %FORM) {
print " key $HBI_Key FORM $FORM{$HBI_Key} X \n" ;
}
}
} elsif ($FORM{'frm'} eq '') {
$REPORT{'rptid'}=$FORM{'rptno'};
&show_index;
if ($HBI_Debug) {
foreach $HBI_Key (sort keys %FORM) {
print " key $HBI_Key FORM $FORM{$HBI_Key} X \n" ;
}
}
} else {
print "\n";
print "