version 1.54, 2003/10/21 20:40:10
|
version 1.56, 2004/03/22 20:37:06
|
Line 158 sub handler {
|
Line 158 sub handler {
|
my $number_of_columns = 1; |
my $number_of_columns = 1; |
my $requrl=$r->uri; |
my $requrl=$r->uri; |
my $target = $ENV{'form.grade_target'}; |
my $target = $ENV{'form.grade_target'}; |
&Apache::lonnet::logthis("Got a target of $target"); |
# &Apache::lonnet::logthis("Got a target of $target"); |
if ($target eq 'meta') { |
if ($target eq 'meta') { |
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->send_http_header; |
$r->send_http_header; |
Line 234 sub handler {
|
Line 234 sub handler {
|
# --------------------------------------------------------- This is an SSI cell |
# --------------------------------------------------------- This is an SSI cell |
my $prefix=$_.'_'; |
my $prefix=$_.'_'; |
my %posthash=('request.prefix' => $prefix); |
my %posthash=('request.prefix' => $prefix); |
|
if ($ENV{'form.grade_target'} eq 'tex') { |
|
$posthash{'grade_target'}=$ENV{'form.grade_target'}; |
|
$posthash{'textwidth'}=$ENV{'form.textwidth'}; |
|
$posthash{'problem_split'}=$ENV{'form.problem_split'}; |
|
$posthash{'latex_type'}=$ENV{'form.latex_type'}; |
|
$posthash{'rndseed'}=$ENV{'form.rndseed'}; |
|
} |
if (($ENV{'form.'.$prefix.'submit'}) |
if (($ENV{'form.'.$prefix.'submit'}) |
|| ($ENV{'form.all_submit'})) { |
|| ($ENV{'form.all_submit'})) { |
foreach (keys %ENV) { |
foreach (keys %ENV) { |
Line 377 sub handler {
|
Line 384 sub handler {
|
$r->print('<form method="post" action="'. |
$r->print('<form method="post" action="'. |
$requrl.'">'); |
$requrl.'">'); |
} |
} |
} else { |
} elsif ($target eq 'tex') { |
$r->print('\documentclass{article} |
$r->print('\documentclass{article} |
\newcommand{\keephidden}[1]{} |
\newcommand{\keephidden}[1]{} |
\usepackage[dvips]{graphicx} |
\usepackage[dvips]{graphicx} |
Line 402 sub handler {
|
Line 409 sub handler {
|
my $avespan=$lcm/($#colcont+1); |
my $avespan=$lcm/($#colcont+1); |
for ($j=0;$j<=$#colcont;$j++) { |
for ($j=0;$j<=$#colcont;$j++) { |
my $rid=$colcont[$j]; |
my $rid=$colcont[$j]; |
my $metainfo='<a href="'. |
my $metainfo='<a name="'. |
|
&Apache::lonnet::escape(&Apache::lonnet::declutter($hash{'src_'.$rid})).'" />'. |
|
'<a href="'. |
$metalink{$rid}.'" target="LONcatInfo">'. |
$metalink{$rid}.'" target="LONcatInfo">'. |
'<img src="/adm/lonMisc/cat_button.gif" border=0>'. |
'<img src="/adm/lonMisc/cat_button.gif" border=0>'. |
'</img></a><a href="/adm/evaluate?postdata='. |
'</img></a><a href="/adm/evaluate?postdata='. |