--- loncom/interface/lonpickcourse.pm 2006/03/15 22:11:04 1.40 +++ loncom/interface/lonpickcourse.pm 2006/04/10 21:40:09 1.42 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.40 2006/03/15 22:11:04 albertel Exp $ +# $Id: lonpickcourse.pm,v 1.42 2006/04/10 21:40:09 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -42,8 +42,6 @@ sub handler { return OK if $r->header_only; # ------------------------------------------------------------ Print the screen - $r->print(&Apache::lonxml::xmlbegin(). - &Apache::loncommon::head()); # Get parameters from query string &Apache::loncommon::get_unprocessed_cgi @@ -98,10 +96,10 @@ sub handler { ['-1','86400','604800','2592000','7776000', '15552000','31104000'])); # if called from loncreateuser, report sections, then close - my ($loaditem,$seclist); + my (%loaditem,$seclist); my $num_sections = 0; if ($env{'form.form'} eq 'cu' && $env{'form.pickedcourse'}) { - $loaditem = 'onLoad="setSections()"'; + $loaditem{'onload'} ="setSections()"; my ($cdom,$cnum) = split/_/,$env{'form.pickedcourse'}; my %sections_count = (); $num_sections = &Apache::loncommon::get_sections($cdom,$cnum,\%sections_count); @@ -121,7 +119,9 @@ sub handler { $jscript = &Apache::loncommon::check_uncheck_jscript(); $multelement = ''; } - $r->print(&Apache::loncommon::bodytag($title,undef,$loaditem,undef,undef,undef,undef,1)); + $r->print(&Apache::loncommon::start_page($title,undef, + {'add_entries' => \%loaditem, + 'no_nav_bar' => 1, })); my %lt=&Apache::lonlocal::texthash( 'cac' => 'Course Activity', 'cde' => 'Course Description',