version 1.12, 2003/06/23 19:58:18
|
version 1.15, 2003/07/16 20:30:36
|
Line 144 sub parent_link {
|
Line 144 sub parent_link {
|
return $link; |
return $link; |
} |
} |
|
|
|
sub convenience_links { |
|
my $self = shift; |
|
my ($resource) = @_; |
|
my $symb = &Apache::lonnet::escape($resource->{'symb'}); |
|
my $result = <<"END"; |
|
<a href="/adm/grades?symb=$symb&command=submission" target="LONcatInfo"> |
|
<img src="/adm/lonMisc/subm_button.gif" border=0 /> |
|
</a> |
|
<a href="/adm/grades?symb=$symb&command=gradingmenu" target="LONcatInfo"> |
|
<img src="/adm/lonMisc/pgrd_button.gif" border=0 /> |
|
</a> |
|
<a href="/adm/parmset?symb=$symb" target="LONcatInfo"> |
|
<img src="/adm/lonMisc/pprm_button.gif" border=0 /> |
|
</a> |
|
END |
|
return $result; |
|
} |
|
|
sub outsheet_html { |
sub outsheet_html { |
my $self = shift; |
my $self = shift; |
my ($r) = @_; |
my ($r) = @_; |
my $importcolor = '#FFFF66'; |
my $importcolor = '#FFFFAA'; |
my $exportcolor = '#88FF88'; |
my $exportcolor = '#88FF88'; |
#################################### |
#################################### |
# Get the list of assessment files # |
# Get the list of assessment files # |
Line 208 END
|
Line 226 END
|
$tableheader =<<"END"; |
$tableheader =<<"END"; |
</p><p> |
</p><p> |
<table border="2"> |
<table border="2"> |
<tr><th>Row</th><th>Assessment</th> |
<tr><th>Row</th><th> </th><th>Assessment</th> |
END |
END |
} else { |
} else { |
$tableheader =<<"END"; |
$tableheader =<<"END"; |
Line 242 END
|
Line 260 END
|
my $row_output = '<tr>'; |
my $row_output = '<tr>'; |
if ($editing_is_allowed) { |
if ($editing_is_allowed) { |
$row_output .= '<td>'.$rownum.'</td>'; |
$row_output .= '<td>'.$rownum.'</td>'; |
|
$row_output .= '<td>'.$self->convenience_links($resource).'</td>'; |
$row_output .= '<td>'. |
$row_output .= '<td>'. |
'<a href="/adm/assesscalc?sname='.$self->{'name'}. |
'<a href="/adm/assesscalc?sname='.$self->{'name'}. |
'&sdomain='.$self->{'domain'}. |
'&sdomain='.$self->{'domain'}. |
Line 596 sub export_data {
|
Line 615 sub export_data {
|
my $self = shift; |
my $self = shift; |
my $student = $self->{'name'}.':'.$self->{'domain'}; |
my $student = $self->{'name'}.':'.$self->{'domain'}; |
if (! exists($Exportrows{$student}) || |
if (! exists($Exportrows{$student}) || |
|
! defined($Exportrows{$student}) || |
|
! defined($Exportrows{$student}->{'data'}) || |
! $self->check_expiration_time($Exportrows{$student}->{'time'})) { |
! $self->check_expiration_time($Exportrows{$student}->{'time'})) { |
$self->compute(); |
$self->compute(); |
} |
} |