--- loncom/interface/spreadsheet/studentcalc.pm 2003/06/23 19:58:18 1.12 +++ loncom/interface/spreadsheet/studentcalc.pm 2003/09/08 18:25:26 1.19 @@ -1,5 +1,5 @@ # -# $Id: studentcalc.pm,v 1.12 2003/06/23 19:58:18 matthew Exp $ +# $Id: studentcalc.pm,v 1.19 2003/09/08 18:25:26 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,6 +45,9 @@ studentcalc ################################################### package Apache::studentcalc; +use warnings FATAL=>'all'; +no warnings 'uninitialized'; + use strict; use Apache::Constants qw(:common :http); use Apache::lonnet; @@ -98,8 +101,9 @@ sub initialize_sequence_cache { } sub clear_package { - @Sequences = undef; - %Exportrows = undef; + undef(@Sequences); + undef(%Exportrows); + &Apache::assesscalc::clear_package(); } sub get_title { @@ -125,7 +129,7 @@ sub get_html_title { my $title = '

'.$name; if ($ENV{'user.name'} ne $self->{'name'} && $ENV{'user.domain'} ne $self->{'domain'}) { - $title .= &Apache::loncommon::aboutmewrapper + $title .= ' '.&Apache::loncommon::aboutmewrapper ($self->{'name'}.'@'.$self->{'domain'}, $self->{'name'},$self->{'domain'}); } @@ -144,10 +148,28 @@ sub parent_link { return $link; } +sub convenience_links { + my $self = shift; + my ($resource) = @_; + my $symb = &Apache::lonnet::escape($resource->{'symb'}); + my $result = <<"END"; + + + + + + + + + +END + return $result; +} + sub outsheet_html { my $self = shift; my ($r) = @_; - my $importcolor = '#FFFF66'; + my $importcolor = '#FFFFAA'; my $exportcolor = '#88FF88'; #################################### # Get the list of assessment files # @@ -208,7 +230,7 @@ END $tableheader =<<"END";

- + END } else { $tableheader =<<"END"; @@ -242,6 +264,7 @@ END my $row_output = ''; if ($editing_is_allowed) { $row_output .= ''; + $row_output .= ''; $row_output .= '
RowAssessment
Row Assessment
'.$rownum.''.$self->convenience_links($resource).''. '