--- loncom/interface/lonpickcode.pm 2007/01/25 20:34:29 1.12 +++ loncom/interface/lonpickcode.pm 2007/11/13 01:14:11 1.14 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a CODE from the list of possible CODEs # -# $Id: lonpickcode.pm,v 1.12 2007/01/25 20:34:29 albertel Exp $ +# $Id: lonpickcode.pm,v 1.14 2007/11/13 01:14:11 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -75,6 +75,8 @@ sub handler { } if ($env{'form.command'} eq 'codelist') { &code_list($r); + $r->print(&Apache::grades::show_grading_menu_form($env{'form.symb'}, + $env{'form.url'})); } elsif ($env{'form.command'} eq 'showcodes') { &show_codes($r); } else { @@ -85,23 +87,42 @@ sub handler { } sub code_list { - my ($r,$secondview)=@_; - if (!$secondview) { + my ($r,$context)=@_; + # $context = 0 Print page header and enclosing table + # $context = 1 No page header, print enclosing table + # $context = 2 No page header, no enclosing table + my $table_head; + my $enc_table_start; + my $enc_table_close; + + if (!$context) { $r->print(&Apache::loncommon::start_page("View CODEs",undef, {'no_nav_bar' => 1})); - $r->print("
".&mt('Select a set of saved CODEs to view.')."
"); - } else { - $r->print("".&mt('Select another set of saved CODEs to view.')."
"); + $table_head = (''.&mt('Select a set of saved CODEs to view.').""); + } elsif ($context eq 1) { + $table_head = (''.&mt('Select another set of saved CODEs to view.').""); + $enc_table_start = ''; + $enc_table_close = ' |