version 1.29, 2004/05/03 17:49:11
|
version 1.31, 2004/05/10 14:12:14
|
Line 45 sub handler {
|
Line 45 sub handler {
|
|
|
# ------------------------------------------------------------ Print the screen |
# ------------------------------------------------------------ Print the screen |
my $target=$ENV{'form.grade_target'}; |
my $target=$ENV{'form.grade_target'}; |
&Apache::lonnet::logthis("NOW TARGET IS DEFINIED AS $target"); |
|
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print(<<ENDDOCUMENT); |
$r->print(<<ENDDOCUMENT); |
<html> |
<html> |
Line 160 ENDDOCUMENT
|
Line 159 ENDDOCUMENT
|
if (($syllabus{'uploaded.lastmodified'}) && (!$forceedit)) { |
if (($syllabus{'uploaded.lastmodified'}) && (!$forceedit)) { |
$forcestudent='student'; |
$forcestudent='student'; |
} |
} |
if ($forcestudent) { $allowed=0; } |
if ($forcestudent or $target eq 'tex') { $allowed=0; } |
} |
} |
if ($allowed) { |
if ($allowed) { |
$r->print('<p>'. |
$r->print('<p>'. |
Line 277 ENDDOCUMENT
|
Line 276 ENDDOCUMENT
|
$message.'</blockquote>'); |
$message.'</blockquote>'); |
} else { |
} else { |
$r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'. |
$r->print('\\\\\textbf{'.$syllabusfields{$_}.'}\\\\'. |
&Apache::lonxml::xmlparse($r,' ',$message).'\\\\'); |
&Apache::lonxml::xmlparse($r,'tex',$message).'\\\\'); |
} |
} |
} |
} |
if ($allowed) { |
if ($allowed) { |