version 1.8, 2002/03/29 15:15:54
|
version 1.11, 2003/04/15 19:01:14
|
Line 40 package Apache::lonevaluate;
|
Line 40 package Apache::lonevaluate;
|
use strict; |
use strict; |
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::Constants qw(:common); |
use Apache::Constants qw(:common); |
|
use Apache::loncommon; |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 67 sub handler {
|
Line 68 sub handler {
|
my @retrieve=map{ $prefix.$_ } @items; |
my @retrieve=map{ $prefix.$_ } @items; |
|
|
my %currenteval= |
my %currenteval= |
&Apache::lonnet::get('resevaldata',\@retrieve,$rdomain,$rauth); |
&Apache::lonnet::get('nohist_resevaldata',\@retrieve,$rdomain,$rauth); |
|
|
my $already=($currenteval{$prefix.'timestamp'} ne ''); |
my $already=($currenteval{$prefix.'timestamp'} ne ''); |
|
|
Line 75 sub handler {
|
Line 76 sub handler {
|
|
|
my $warning=''; |
my $warning=''; |
|
|
|
my $bodytag=&Apache::loncommon::bodytag('Evaluate Resource'); |
|
|
if ($ENV{'form.submiteval'} eq 'true') { |
if ($ENV{'form.submiteval'} eq 'true') { |
# ------------------------------------------------ User is submitting something |
# ------------------------------------------------ User is submitting something |
my $complete=1; |
my $complete=1; |
Line 99 sub handler {
|
Line 102 sub handler {
|
</script> |
</script> |
<meta http-equiv="pragma" content="no-cache"></meta> |
<meta http-equiv="pragma" content="no-cache"></meta> |
</head> |
</head> |
<body bgcolor="#FFFFFF"> |
$bodytag |
<h1>Thank you for your input!</h1> |
<h1>Thank you for your input!</h1> |
ENDHEADER |
ENDHEADER |
$r->print('Storing feedback: '. |
$r->print('Storing feedback: '. |
&Apache::lonnet::put('resevaldata',\%currenteval,$rdomain,$rauth)); |
&Apache::lonnet::put('nohist_resevaldata',\%currenteval,$rdomain,$rauth)); |
unless ($already) { |
unless ($already) { |
$r->print('<br>Logging first evaluation'); |
$r->print('<br>Logging first evaluation'); |
} |
} |
Line 122 ENDHEADER
|
Line 125 ENDHEADER
|
|
|
foreach my $item (@items) { |
foreach my $item (@items) { |
unless ($item eq 'comments') { |
unless ($item eq 'comments') { |
unless ($item eq 'timestamp') { |
unless (($item eq 'timestamp') || |
|
(!defined($currenteval{$prefix.$item}))) { |
$dialold.= |
$dialold.= |
'document.evaluation.'.$item.'.selectedIndex='. |
'document.evaluation.'.$item.'.selectedIndex='. |
$currenteval{$prefix.$item}.";\n"; |
$currenteval{$prefix.$item}.";\n"; |
Line 147 ENDOPTIONS
|
Line 151 ENDOPTIONS
|
<head> |
<head> |
<title>The LearningOnline Network with CAPA</title> |
<title>The LearningOnline Network with CAPA</title> |
</head> |
</head> |
<body bgcolor="#FFFFFF"> |
$bodytag |
<h1>Evaluate Resource</h1> |
|
<tt>$feedurl</tt><p> |
<tt>$feedurl</tt><p> |
<h3><font color="red">$warning</font></h3> |
<h3><font color="red">$warning</font></h3> |
Please rank the following criteria: |
Please rank the following criteria: |