--- loncom/interface/lonpickcode.pm 2007/11/13 01:47:56 1.15 +++ loncom/interface/lonpickcode.pm 2019/01/31 16:08:06 1.17 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a CODE from the list of possible CODEs # -# $Id: lonpickcode.pm,v 1.15 2007/11/13 01:47:56 albertel Exp $ +# $Id: lonpickcode.pm,v 1.17 2019/01/31 16:08:06 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -39,7 +39,7 @@ sub get_code_freq { my ($r)=@_; my %codes; my %scantron_config= - &Apache::grades::get_scantron_config($env{'form.scantron_format'}); + &Apache::lonnet::get_scantron_config($env{'form.scantron_format'}); $r->rflush(); my ($scanlines,$scan_data)=&Apache::grades::scantron_getfile(); for (my $i=0;$i<=$scanlines->{'count'};$i++) { @@ -69,7 +69,7 @@ sub handler { if (!($env{'request.course.id'}) && (&Apache::lonnet::allowed('usc',$env{'request.course.id'}))) { $r->print(&Apache::loncommon::start_page(). - &mt('Access not allowed.'). + '
'.&mt('Access not allowed.').'
'. &Apache::loncommon::end_page()); return OK; } @@ -145,10 +145,12 @@ sub show_codes { sub picking_a_code { my ($r)=@_; - $r->print(&Apache::loncommon::start_page("Selecting a CODE",undef, + my $title = 'Selecting a CODE'; + $r->print(&Apache::loncommon::start_page($title,undef, {'no_nav_bar' => 1})); - $r->print(<The CODE on the paper is ".$env{'form.curCODE'}. - ". Please Select a new one.
\n".''); }