'));
+ if (exists($ENV{'form.problemchoice'})) {
+ # This is me getting around my own cleverness:
+ &Apache::lonstatistics::MapSelect('Maps','multiple,all',5,
+ undef);
+ #
+ my ($symb,$id) = &get_problem_symb(
+ &Apache::lonnet::unescape($ENV{'form.problemchoice'})
+ );
+ $r->print('');
+ my $resource = &get_resource_from_symb($symb);
+ if (defined($resource)) {
+ $r->print('
'.
+ # Oh this is dumb! Need to rewrite relative links
+ # otherwise images (for example) will not show.
+ &Apache::lonnet::ssi_body($resource->{'src'}).
+ '
');
+ } else {
+ $r->print('resource is undefined');
}
- }
- untie(%cache);
-
- if(&Apache::loncoursedata::DownloadStudentCourseDataSeparate($students,
- 'true',
- $cacheDB,
- 'true',
- 'true',
- $courseID,
- $r,
- $c) ne 'OK') {
- $r->print($Str);
- return;
- }
-
-
- unless(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER(),0640)) {
- $Str .= 'Unable to tie database.';
- $r->print($Str);
- return;
- }
-
- my ($problemId, $part, $responseId)=split(':',$cache{'AnalyzeInfo'});
- my $uri = $cache{$problemId.':source'};
- my $problem = $cache{$problemId.':problem'};
- my $title = $cache{$problemId.':title'};
- my $interval = $cache{'Interval'};
-
- my %ConceptData;
- $ConceptData{"Interval"} = $interval;
-
- #Initialize the option response true answers
- my ($analyzeData) = &InitAnalysis($uri, $part, $responseId, $problem,
- $students->[0], $courseID);
- if(defined($analyzeData->{'error'})) {
- $Str .= $analyzeData->{'error'}.' Incorrect part requested. ';
- $r->print($Str);
+ $r->print('');
+ $r->print("render problem\n");
+ $r->print("image tag for plot\n");
+ $r->print("plot key\n");
+ $r->print('');
+ $r->print("