Diff for /loncom/interface/statistics/lonproblemanalysis.pm between versions 1.61 and 1.64

version 1.61, 2004/01/20 15:51:06 version 1.64, 2004/02/02 19:32:11
Line 76  sub BuildProblemAnalysisPage { Line 76  sub BuildProblemAnalysisPage {
     #      #
     &Apache::lonstatistics::PrepareClasslist();      &Apache::lonstatistics::PrepareClasslist();
     #      #
     $r->print('<h2>'.&mt('Option Response Problem Analysis').'</h2>');      $r->print('<h2>'.&mt('Detailed Problem Analysis').'</h2>');
     $r->print(&CreateInterface());      $r->print(&CreateInterface());
     #      #
     my @Students = @Apache::lonstatistics::Students;      my @Students = @Apache::lonstatistics::Students;
Line 301  sub RR_Tries_Foil_Analysis { Line 301  sub RR_Tries_Foil_Analysis {
                                                   'Percent Choosing',                                                    'Percent Choosing',
                                                   100,                                                    100,
                                                   ['#33ff00','#ff3300'],                                                    ['#33ff00','#ff3300'],
                                                     undef,
                                                   \@PlotData_Correct,                                                    \@PlotData_Correct,
                                                   \@PlotData_Incorrect);                                                    \@PlotData_Incorrect);
     }      }
Line 493  sub OR_Tries_Foil_Analysis { Line 494  sub OR_Tries_Foil_Analysis {
         }          }
         my $correctgraph = &Apache::loncommon::DrawBarGraph          my $correctgraph = &Apache::loncommon::DrawBarGraph
             ($title,'Foil Number','Percent Correct',              ($title,'Foil Number','Percent Correct',
              100,$plotcolors,$Datasets[0]);               100,$plotcolors,undef,$Datasets[0]);
         $analysis_html.= '<tr><td>'.$correctgraph.'</td>';          $analysis_html.= '<tr><td>'.$correctgraph.'</td>';
         ##          ##
         ##          ##
Line 512  sub OR_Tries_Foil_Analysis { Line 513  sub OR_Tries_Foil_Analysis {
         $title = 'Attempt '.$i.', '.$count;          $title = 'Attempt '.$i.', '.$count;
         my $incorrectgraph = &Apache::loncommon::DrawBarGraph          my $incorrectgraph = &Apache::loncommon::DrawBarGraph
             ($title,'Foil Number','% Option Chosen Incorrectly',              ($title,'Foil Number','% Option Chosen Incorrectly',
              100,$plotcolors,@Datasets);               100,$plotcolors,undef,@Datasets);
         $analysis_html.= '<td>'.$incorrectgraph.'</td>';          $analysis_html.= '<td>'.$incorrectgraph.'</td>';
         $analysis_html.= '<td>'.$foilkey."<td></tr>\n";          $analysis_html.= '<td>'.$foilkey."<td></tr>\n";
     }      }
Line 579  sub OR_Tries_Concept_Analysis { Line 580  sub OR_Tries_Concept_Analysis {
         $title = 'Attempt '.$i.', '.$count;          $title = 'Attempt '.$i.', '.$count;
         my $graphlink = &Apache::loncommon::DrawBarGraph          my $graphlink = &Apache::loncommon::DrawBarGraph
             ($title,'Concept Number','Percent Correct',              ($title,'Concept Number','Percent Correct',
              100,$plotcolors,$PlotData[$i]->{'_correct'});               100,$plotcolors,undef,$PlotData[$i]->{'_correct'});
         $analysis_html.= '<tr><td>'.$graphlink."</td></tr>\n";          $analysis_html.= '<tr><td>'.$graphlink."</td></tr>\n";
     }      }
     $analysis_html .= "</table>\n";      $analysis_html .= "</table>\n";
Line 744  sub OR_Foil_Time_Analysis { Line 745  sub OR_Foil_Time_Analysis {
                                                        'Percent Correct',                                                         'Percent Correct',
                                                        100,                                                         100,
                                                        $plotcolors,                                                         $plotcolors,
                                                          undef,
                                                        $Plotdata[0]);                                                         $Plotdata[0]);
     for (my $j=0; $j< scalar(@{$Plotdata[0]});$j++) {      for (my $j=0; $j< scalar(@{$Plotdata[0]});$j++) {
         $Plotdata[0]->[$j]=0;          $Plotdata[0]->[$j]=0;
Line 761  sub OR_Foil_Time_Analysis { Line 763  sub OR_Foil_Time_Analysis {
                                                  'Incorrect Option Choice',                                                   'Incorrect Option Choice',
                                                  100,                                                   100,
                                                  $plotcolors,                                                   $plotcolors,
                                                    undef,
                                                  @Plotdata);                                                           @Plotdata);        
     $analysis_html.='<tr>'.      $analysis_html.='<tr>'.
         '<td>'.$correctplot.'</td>'.          '<td>'.$correctplot.'</td>'.
Line 825  sub OR_Concept_Time_Analysis { Line 828  sub OR_Concept_Time_Analysis {
                                                     'Percent Correct',                                                      'Percent Correct',
                                                     100,                                                      100,
                                                     $plotcolors,                                                      $plotcolors,
                                                       undef,
                                                     \@Plotdata);                                                      \@Plotdata);
     $analysis_html.='<tr>'.      $analysis_html.='<tr>'.
         '<td>'.$correctplot.'</td>'.          '<td>'.$correctplot.'</td>'.
Line 1313  sub build_foil_index { Line 1317  sub build_foil_index {
         if (@Concepts > 1) {          if (@Concepts > 1) {
             $table .= '<tr>'.              $table .= '<tr>'.
                 '<td>'.$conceptindex.'</td>'.                  '<td>'.$conceptindex.'</td>'.
                 '<td>'.$concept->{'name'}.'</td>'.                  '<td>'.&HTML::Entities::encode($concept->{'name'}).'</td>'.
                 '<td>'.$foilindex++.'</td>'.                  '<td>'.$foilindex++.'</td>'.
                 '<td>'.$Foildata{$firstfoil}->{'name'}.'</td>'.                  '<td>'.&HTML::Entities::encode($Foildata{$firstfoil}->{'name'}).'</td>'.
                 '<td>'.$Foildata{$firstfoil}->{'text'}.'</td>'.                  '<td>'.&HTML::Entities::encode($Foildata{$firstfoil}->{'text'}).'</td>'.
                 '<td>'.$Foildata{$firstfoil}->{'value'}.'</td>'.                  '<td>'.&HTML::Entities::encode($Foildata{$firstfoil}->{'value'}).'</td>'.
                 "</tr>\n";                  "</tr>\n";
         } else {          } else {
             $table .= '<tr>'.              $table .= '<tr>'.
                 '<td>'.$foilindex++.'</td>'.                  '<td>'.$foilindex++.'</td>'.
                 '<td>'.$Foildata{$firstfoil}->{'name'}.'</td>'.                  '<td>'.&HTML::Entities::encode($Foildata{$firstfoil}->{'name'}).'</td>'.
                 '<td>'.$Foildata{$firstfoil}->{'text'}.'</td>'.                  '<td>'.&HTML::Entities::encode($Foildata{$firstfoil}->{'text'}).'</td>'.
                 '<td>'.$Foildata{$firstfoil}->{'value'}.'</td>'.                  '<td>'.&HTML::Entities::encode($Foildata{$firstfoil}->{'value'}).'</td>'.
                 "</tr>\n";                  "</tr>\n";
         }          }
         foreach my $foilid (@FoilsInConcept) {          foreach my $foilid (@FoilsInConcept) {
Line 1333  sub build_foil_index { Line 1337  sub build_foil_index {
                     '<td></td>'.                      '<td></td>'.
                     '<td></td>'.                      '<td></td>'.
                     '<td>'.$foilindex.'</td>'.                      '<td>'.$foilindex.'</td>'.
                     '<td>'.$Foildata{$foilid}->{'name'}.'</td>'.                      '<td>'.&HTML::Entities::encode($Foildata{$foilid}->{'name'}).'</td>'.
                     '<td>'.$Foildata{$foilid}->{'text'}.'</td>'.                      '<td>'.&HTML::Entities::encode($Foildata{$foilid}->{'text'}).'</td>'.
                     '<td>'.$Foildata{$foilid}->{'value'}.'</td>'.                      '<td>'.&HTML::Entities::encode($Foildata{$foilid}->{'value'}).'</td>'.
                     "</tr>\n";                      "</tr>\n";
             } else {              } else {
                 $table .= '<tr>'.                  $table .= '<tr>'.
                     '<td>'.$foilindex.'</td>'.                      '<td>'.$foilindex.'</td>'.
                     '<td>'.$Foildata{$foilid}->{'name'}.'</td>'.                      '<td>'.&HTML::Entities::encode($Foildata{$foilid}->{'name'}).'</td>'.
                     '<td>'.$Foildata{$foilid}->{'text'}.'</td>'.                      '<td>'.&HTML::Entities::encode($Foildata{$foilid}->{'text'}).'</td>'.
                     '<td>'.$Foildata{$foilid}->{'value'}.'</td>'.                      '<td>'.&HTML::Entities::encode($Foildata{$foilid}->{'value'}).'</td>'.
                     "</tr>\n";                      "</tr>\n";
             }                              }                
         } continue {          } continue {
Line 1367  sub build_option_index { Line 1371  sub build_option_index {
               '<tr>'.                '<tr>'.
               '<td bgcolor="'.$plotcolors->[$optionindex++].'">'.                '<td bgcolor="'.$plotcolors->[$optionindex++].'">'.
               ('&nbsp;'x4).'</td>'.                ('&nbsp;'x4).'</td>'.
               '<td>'.$option.'</td>'.                '<td>'.&HTML::Entities::encode($option).'</td>'.
               "</tr>\n");                "</tr>\n");
     }      }
     shift(@Rows); # Throw away 'correct option chosen' color      shift(@Rows); # Throw away 'correct option chosen' color

Removed from v.1.61  
changed lines
  Added in v.1.64


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>