--- loncom/interface/lontrackstudent.pm 2010/05/03 16:41:51 1.31
+++ loncom/interface/lontrackstudent.pm 2011/12/21 21:25:40 1.33
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lontrackstudent.pm,v 1.31 2010/05/03 16:41:51 www Exp $
+# $Id: lontrackstudent.pm,v 1.33 2011/12/21 21:25:40 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -433,14 +433,25 @@ sub display_values {
my ($action,$values)=@_;
my $result='
';
if ($action eq 'CSTORE') {
+ my $is_anon;
my %values=map {split('=',$_,-1)} split(/\&/,$values);
foreach my $key (sort(keys(%values))) {
+ my $unesc_key = &unescape($key);
+ if ($values{$key} eq 'anonsurvey' || $values{$key} eq 'anonsurveycred') {
+ if ($unesc_key =~ /^resource\..+\.type$/) {
+ $is_anon = 1;
+ last;
+ }
+ }
$result.=''.
- &unescape($key).
+ $unesc_key.
' | = | '.
&unescape($values{$key}).' |
';
}
$result.='
';
+ if ($is_anon) {
+ $result = ''.&mt('Anonymous Survey Submission: details not shown').'';
+ }
} elsif ($action eq 'POST') {
my %values;
foreach my $pair (split(/\&/,$values)) {
@@ -581,10 +592,7 @@ sub handler {
'').
'');
$r->rflush();
- my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin
- ($r,&mt('Student Activity Retrieval'),
- &mt('Student Activity Retrieval'),undef,'inline',undef,
- 'trackstudent','status');
+ my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r);
&Apache::lonhtmlcommon::Update_PrgWin
($r,\%prog_state,&mt('Contacting course home server'));
#