#!/usr/bin/perl # # $Id: sreports.pl,v 1.4 2006/01/23 21:39:30 ddoughty Exp $ # # Source File: sreports.pl # Get config require 'sitecfg.pl'; require 'testlib.pl'; require 'tstatlib.pl'; $FORM{'frm'}=""; &app_initialize; print "Content-Type: text/html\n\n"; if (&get_session($FORM{'tid'})) { &LanguageSupportInit(); $REPORT{'rptid'}=""; @rptdefs = &get_data("sitereports.dat"); @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' || ($FORM{'frm'} == '' && $REPORT{'rptid'} eq "ACT-004")) { &show_index; } else { if ($FORM{'frm'} == '2') { &show_detail; } else { if ($FORM{'frm'} == '') { &show_frames; } else { print "\n"; print "
\n"; print " \n"; print "\n"; } } } } sub show_frames { print "\n"; print "\n"; print "\n"; print "\n"; } sub show_index { &log_entry($SESSION{'clid'}, $SESSION{'uid'}, "2", "Exec Report $FORM{'rptno'}"); print "\n"; print "\nAdvanced Options | \n||
\nQuestion Statistics: \n"); $finputs=join('',$finputs," Question Statistics \n"); $finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; include inactive questions \n"); $finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; exclude No Response from stats \n"); $finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \;User Comments: \n"); $finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; do not include \n"); $finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; include with question \n"); $finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; include at end \n"); $finputs=join('',$finputs,"\t\t | \n");
### DED 12/23/04 Removed Test Stats & Other Options
#$finputs=join('',$finputs,"\t\t\nTest Statistics \n"); #$finputs=join('',$finputs," Individual Test results \n"); #$finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; breakdown by subject area \n"); #$finputs=join('',$finputs,"\t\t | \n");
#$finputs=join('',$finputs,"\t\t\nOther Options: "); #$finputs=join('',$finputs," Extract From Tests \n"); #$finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; Candidate Name \n"); #$finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; Candidate Email Address \n"); #$finputs=join('',$finputs,"\ \;\ \;\ \;\ \;\ \; Candidate Score \n"); #$finputs=join('',$finputs,"\t\t | \n");
$finputs=join('',$finputs,"\t\n");
### DED 12/23/04
### Removed Filter-by-question options
#$finputs=join('',$finputs,"\ \; \n"); #$finputs=join('',$finputs," Filter by question \n"); #$finputs=join('',$finputs," Filter by user \n"); #$finputs=join('',$finputs,"\t\t | \n");
#$finputs=join('',$finputs,"\t\t\n");
#my $j;
#$finputs=join('',$finputs,"From: \n"); #$finputs=join('',$finputs,"To: \n"); #$finputs=join('',$finputs,"\t\t | \n");
#$finputs=join('',$finputs,"\t\t\n");
#$finputs=join('',$finputs," download in text format \n"); #$finputs=join('',$finputs,"\t\t | \n");
$finputs=join('',$finputs,"\t\n");
$finputs=join('',$finputs,"