--- loncom/interface/statistics/lonproblemanalysis.pm 2003/09/29 21:13:23 1.24 +++ loncom/interface/statistics/lonproblemanalysis.pm 2003/10/14 22:02:49 1.38 @@ -1,6 +1,7 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemanalysis.pm,v 1.24 2003/09/29 21:13:23 matthew Exp $ + +# $Id: lonproblemanalysis.pm,v 1.38 2003/10/14 22:02:49 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -24,82 +25,534 @@ # # http://www.lon-capa.org/ # -# (Navigate problems for statistical reports -# YEAR=2002 -# 5/12,7/26,9/7,11/22 Behrouz Minaei -# -### package Apache::lonproblemanalysis; use strict; use Apache::lonnet(); +use Apache::loncommon(); use Apache::lonhtmlcommon(); use Apache::loncoursedata(); use Apache::lonstatistics; use Apache::lonlocal; +use HTML::Entities(); sub BuildProblemAnalysisPage { my ($r,$c)=@_; $r->print('
'.
- # Oh this is dumb! Need to rewrite relative links
- # otherwise images (for example) will not show.
- &Apache::lonnet::ssi_body($resource->{'src'}).
+ ' |
\nProblem choice = $symb $id\n\n"); $r->print('
'.&mt('Concept Number').' | '. + ''.&mt('Concept').' | '. + ''.&mt('Foil Number').' | '. + ''.&mt('Foil Name').' | '. + ''.&mt('Foil Text').' | '. + ''.&mt('Correct Value').' | '. + "
---|---|---|---|---|---|
'.$conceptindex.' | '. + ''.$concept->{'name'}.' | '. + ''.$foilindex++.' | '. + ''.$Foildata{$firstfoil}->{'name'}.' | '. + ''.$Foildata{$firstfoil}->{'text'}.' | '. + ''.$Foildata{$firstfoil}->{'value'}.' | '. + "
'. + ' | '. + ' | '.$foilindex.' | '. + ''.$Foildata{$foilid}->{'name'}.' | '. + ''.$Foildata{$foilid}->{'text'}.' | '. + ''.$Foildata{$foilid}->{'value'}.' | '. + "
'.$plotlink.' | '; + for (my $i=1;$i<$plots_per_row;$i++) { + if ($plotlink = shift(@Plots)) { + $table .= ''.$plotlink.' | '; + } else { + $table .= ''; + } + } + $table .= " |
".$plothtml.' | '.
+ "Start Time: ".$startdateform." ". + "End Time : "." ".$enddateform." ". + 'Plot Title :'.(" "x3). + ' '. + " |
'.&mt('Sections').' | '; $Str .= ''.&mt('Enrollment Status').' | '; - $Str .= ''.&mt('Sequences and Folders').' | '; +# $Str .= ''.&mt('Sequences and Folders').' | '; + $Str .= ''; $Str .= ' |
'."\n"; $Str .= &Apache::lonstatistics::SectionSelect('Section','multiple',5); - $Str .= ' | '; + $Str .= ' | '; + # + $Str .= ''; $Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); - $Str .= ' | '; + $Str .= ' | '; + # +# $Str .= ''; my $only_seq_with_assessments = sub { my $s=shift; if ($s->{'num_assess'} < 1) { @@ -108,16 +561,63 @@ sub CreateInterface { return 1; } }; - $Str .= &Apache::lonstatistics::MapSelect('Maps','multiple,all',5, + &Apache::lonstatistics::MapSelect('Maps','multiple,all',5, $only_seq_with_assessments); - $Str .= ' | ';
+ { # These braces are here to organize the code, not scope it.
+ {
+ $Str .= ' '; + } + { + $Str .= ' '; + } + { + $Str .= ' | ';
+ ##
+ ##
+ $Str .= ''."\n";
$Str .= '