--- loncom/homework/bridgetask.pm 2006/03/02 21:20:30 1.115 +++ loncom/homework/bridgetask.pm 2006/03/28 19:55:43 1.122 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.115 2006/03/02 21:20:30 albertel Exp $ +# $Id: bridgetask.pm,v 1.122 2006/03/28 19:55:43 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -176,10 +176,10 @@ sub add_grading_button { if (scalar(keys(%sections)) < 3) { $size=scalar(keys(%sections))+2; } - my $sec_select = ''."\n"; $sec_select .= "\n"; foreach my $sec (sort {lc($a) cmp lc($b)} (keys(%sections))) { - $sec_select .= "\n"; + $sec_select .= "\n"; } $sec_select .= "\n"; @@ -260,7 +260,7 @@ sub preserve_grade_info { sub style { return (< -.fail, .pass, .neutral { +.LC_fail, .LC_pass, .LC_neutral { position: relative; margin : 5px; margin-bottom :10px; @@ -273,7 +273,7 @@ sub style { background-color : rgb(255,240,225); } -.fail h4, .pass h4 { +.LC_fail h4, .LC_pass h4 { position:absolute; left: -4px; top: -8px; @@ -283,25 +283,25 @@ sub style { border : thin solid; } -.fail { +.LC_fail { color: red; } -.pass { +.LC_pass { color : green; } -.neutral { +.LC_neutral { color : blue; } -.question { +.LC_question { border : thin solid black; padding : 4px; margin-bottom : 1em; } -.grade { +.LC_grade { font-size: x-large; font-family: Arial; position:absolute; @@ -371,12 +371,15 @@ sub submission_time_stamp { return $result; } -sub webgrade_standard_info { - my ($version)=&get_version(); - my (undef,undef,$udom,$uname) = &Apache::lonxml::whichuser(); +sub file_list { + my ($files,$uname,$udom) = @_; + if (!defined($uname) || !defined($udom)) { + (undef,undef,$udom,$uname) = &Apache::lonxml::whichuser(); + } my $file_url = '/uploaded/'.$udom.'/'.$uname.'/portfolio/'; - my $file_list="