--- loncom/interface/spreadsheet/studentcalc.pm 2003/05/29 18:39:58 1.10 +++ loncom/interface/spreadsheet/studentcalc.pm 2003/06/23 20:47:00 1.13 @@ -1,5 +1,5 @@ # -# $Id: studentcalc.pm,v 1.10 2003/05/29 18:39:58 matthew Exp $ +# $Id: studentcalc.pm,v 1.13 2003/06/23 20:47:00 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -65,6 +65,7 @@ my %Exportrows = (); my $current_course; sub initialize { + &Apache::assesscalc::initialize(); &initialize_sequence_cache(); } @@ -146,6 +147,8 @@ sub parent_link { sub outsheet_html { my $self = shift; my ($r) = @_; + my $importcolor = '#FFFFAA'; + my $exportcolor = '#88FF88'; #################################### # Get the list of assessment files # #################################### @@ -162,7 +165,7 @@ sub outsheet_html { - @@ -171,7 +174,7 @@ END my $label_num = 0; foreach (split(//,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')){ if ($label_num<$num_uneditable) { - $tableheader .=''. - $self->html_template_row($num_uneditable)."\n"); + $self->html_template_row($num_uneditable, + $importcolor)."\n"); } # # Print out summary/export row $r->print(''. - $self->html_export_row()."\n"); + $self->html_export_row($exportcolor)."\n"); } $r->print("
Student + Import Calculations'; + $tableheader .=''; } else { $tableheader .=''; } @@ -190,12 +193,13 @@ END # Print out template row if (exists($ENV{'request.role.adv'}) && $ENV{'request.role.adv'}) { $r->print('
Template 
Summary0
\n"); # @@ -258,7 +262,8 @@ END $row_output .= 'Unavailable at this time'."\n"; } else { - $row_output .= $self->html_row($num_uneditable,$rownum). + $row_output .= $self->html_row($num_uneditable,$rownum, + $exportcolor,$importcolor). "\n"; } $r->print($row_output);