--- loncom/interface/spreadsheet/lonspreadsheet.pm 2004/02/24 21:03:09 1.31.2.1 +++ loncom/interface/spreadsheet/lonspreadsheet.pm 2004/10/12 20:51:54 1.39 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.31.2.1 2004/02/24 21:03:09 albertel Exp $ +# $Id: lonspreadsheet.pm,v 1.39 2004/10/12 20:51:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -240,7 +240,8 @@ sub handler { # Get query string for limited number of parameters # &Apache::loncommon::get_unprocessed_cgi - ($ENV{'QUERY_STRING'},['sname','sdomain','usymb','filename','recalc']); + ($ENV{'QUERY_STRING'},['sname','sdomain','usymb','filename','recalc', + 'output_format','not_first_run']); # # Deal with restricted student permissions # @@ -292,8 +293,8 @@ sub handler { # Check that the student is in their section? if (exists($ENV{'request.course.sec'}) && $ENV{'request.course.sec'} ne '' ) { - my $stu_sec = &Apache::lonnet::usection($domain,$name, - $ENV{'request.course.id'}); + my $stu_sec = &Apache::lonnet::getsection($domain,$name, + $ENV{'request.course.id'}); if ($stu_sec ne $ENV{'request.course.sec'}) { $ENV{'user.error.msg'}= $r->uri.":vgr:0:0:Requested student not in your section."; @@ -367,7 +368,15 @@ sub handler { ENDSCRIPT } + &Apache::lonhtmlcommon::clear_breadcrumbs(); + &Apache::lonhtmlcommon::add_breadcrumb + ({href => $r->uri, + title => 'Spreadsheet', + text => 'Spreadsheet', + faq => 134, + bug => 'Spreadsheet'}); $r->print(''.&Apache::loncommon::bodytag('Grades Spreadsheet'). + &Apache::lonhtmlcommon::breadcrumbs(undef,'Spreadsheet'). '