--- loncom/interface/lontrackstudent.pm 2012/10/04 13:41:10 1.34 +++ loncom/interface/lontrackstudent.pm 2017/11/12 22:19:56 1.39 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lontrackstudent.pm,v 1.34 2012/10/04 13:41:10 bisitz Exp $ +# $Id: lontrackstudent.pm,v 1.39 2017/11/12 22:19:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -186,11 +186,11 @@ sub get_max_time_in_db { ($r,$prog_state,&mt('Parsing results')); # if (! open(TIMEDATA,$results_file)) { - $r->print('

'.&mt('Unable to read results file.').'

'. + $r->print('

'.&mt('Unable to read results file.').'

'. '

'. - &mt('This is a serious error and has been logged. '. - 'You should contact your system administrator '. - 'to resolve this issue.'). + &mt('This is a serious error and has been logged.'). + '
'. + &mt('Please alert your LON-CAPA administrator.'). '

'); return; } @@ -257,9 +257,9 @@ sub output_results { if (! open(ACTIVITYDATA,$results_file)) { $r->print('

'.&mt('Unable to read results file.').'

'. '

'. - &mt('This is a serious error and has been logged. '. - 'You should contact your system administrator '. - 'to resolve this issue.'). + &mt('This is a serious error and has been logged.'). + '
'. + &mt('Please alert your LON-CAPA administrator.'). '

'); return -2; } @@ -432,7 +432,7 @@ sub convert_timezone { sub display_values { my ($action,$values)=@_; my $result=''; - if ($action eq 'CSTORE') { + if (($action eq 'CSTORE') || ($action eq 'PUTSTORE')) { my $is_anon; my %values=map {split('=',$_,-1)} split(/\&/,$values); foreach my $key (sort(keys(%values))) { @@ -573,12 +573,14 @@ sub handler { title=>'Student Activity', text =>'Student Activity', faq=>139, - bug=>'instructor interface'}); + bug=>'instructor interface', + help=>'View_recent_activity'}); # # Give the LON-CAPA page header my $args; if ($env{'form.only_body'}) { $args = { only_body => 1, }; + $args->{'add_progressbar'} = 1; } $r->print(&Apache::loncommon::start_page('Student Activity',&styles(),$args). &Apache::lonhtmlcommon::breadcrumbs('Student Activity')); @@ -586,11 +588,6 @@ sub handler { # # Begin form output $r->print(''); - $r->print('
'); - $r->print('
'. - &mt('Status: [_1]', - ''). - '
'); $r->rflush(); my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r); &Apache::lonhtmlcommon::Update_PrgWin