--- rat/lonpage.pm 2002/06/20 17:47:35 1.40 +++ rat/lonpage.pm 2002/07/01 15:02:19 1.43 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Page Handler # -# $Id: lonpage.pm,v 1.40 2002/06/20 17:47:35 sakharuk Exp $ +# $Id: lonpage.pm,v 1.43 2002/07/01 15:02:19 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -152,10 +152,10 @@ sub handler { $r->send_http_header; return OK; } - + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, ['forceselect','launch']); - + my $number_of_columns = 1; my $requrl=$r->uri; my $target = $ENV{'form.grade_target'}; # ----------------------------------------------------------------- Tie db file @@ -196,7 +196,6 @@ sub handler { # ------------------------------------------------------------------ Page parms - my $number_of_columns = 1; my $j; my $lcm=1; my $contents=0; @@ -374,11 +373,13 @@ sub handler { \usepackage[dvips]{graphicx} \usepackage{epsfig} \usepackage{calc} + \usepackage{longtable} \begin{document}'); } # ----------------------------------------------------------------- Start table if ($target eq 'tex') { - $r->print('\begin{tabular}INSERT'); + $r->print('\begin{longtable}INSERTTHEHEADOFLONGTABLE\endfirsthead\endhead '); + if ($number_of_columns le $lcm) {$number_of_columns=$lcm;}; } else { $r->print('