version 1.11, 2003/06/12 21:17:11
|
version 1.12, 2003/06/23 19:58:18
|
Line 147 sub parent_link {
|
Line 147 sub parent_link {
|
sub outsheet_html { |
sub outsheet_html { |
my $self = shift; |
my $self = shift; |
my ($r) = @_; |
my ($r) = @_; |
|
my $importcolor = '#FFFF66'; |
|
my $exportcolor = '#88FF88'; |
#################################### |
#################################### |
# Get the list of assessment files # |
# Get the list of assessment files # |
#################################### |
#################################### |
Line 163 sub outsheet_html {
|
Line 165 sub outsheet_html {
|
<table border="2"> |
<table border="2"> |
<tr> |
<tr> |
<th colspan="2" rowspan="2"><font size="+2">Student</font></th> |
<th colspan="2" rowspan="2"><font size="+2">Student</font></th> |
<td bgcolor="#FFDDDD" colspan="$num_uneditable"> |
<td bgcolor="$importcolor" colspan="$num_uneditable"> |
<b><font size="+1">Import</font></b></td> |
<b><font size="+1">Import</font></b></td> |
<td colspan="$num_left"> |
<td colspan="$num_left"> |
<b><font size="+1">Calculations</font></b></td> |
<b><font size="+1">Calculations</font></b></td> |
Line 172 END
|
Line 174 END
|
my $label_num = 0; |
my $label_num = 0; |
foreach (split(//,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')){ |
foreach (split(//,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')){ |
if ($label_num<$num_uneditable) { |
if ($label_num<$num_uneditable) { |
$tableheader .='<td bgcolor="#FFDDDD">'; |
$tableheader .='<td bgcolor="'.$importcolor.'">'; |
} else { |
} else { |
$tableheader .='<td>'; |
$tableheader .='<td>'; |
} |
} |
Line 191 END
|
Line 193 END
|
# Print out template row |
# Print out template row |
if (exists($ENV{'request.role.adv'}) && $ENV{'request.role.adv'}) { |
if (exists($ENV{'request.role.adv'}) && $ENV{'request.role.adv'}) { |
$r->print('<tr><td>Template</td><td> </td>'. |
$r->print('<tr><td>Template</td><td> </td>'. |
$self->html_template_row($num_uneditable)."</tr>\n"); |
$self->html_template_row($num_uneditable, |
|
$importcolor)."</tr>\n"); |
} |
} |
# |
# |
# Print out summary/export row |
# Print out summary/export row |
$r->print('<tr><td>Summary</td><td>0</td>'. |
$r->print('<tr><td>Summary</td><td>0</td>'. |
$self->html_export_row()."</tr>\n"); |
$self->html_export_row($exportcolor)."</tr>\n"); |
} |
} |
$r->print("</table>\n"); |
$r->print("</table>\n"); |
# |
# |
Line 259 END
|
Line 262 END
|
$row_output .= |
$row_output .= |
'<td colspan="52">Unavailable at this time</td></tr>'."\n"; |
'<td colspan="52">Unavailable at this time</td></tr>'."\n"; |
} else { |
} else { |
$row_output .= $self->html_row($num_uneditable,$rownum). |
$row_output .= $self->html_row($num_uneditable,$rownum, |
|
$exportcolor,$importcolor). |
"</tr>\n"; |
"</tr>\n"; |
} |
} |
$r->print($row_output); |
$r->print($row_output); |