version 1.16, 2005/06/30 17:56:28
|
version 1.17, 2006/01/16 17:34:15
|
Line 63 sub get_data {
|
Line 63 sub get_data {
|
# |
# |
my $max_time = &get_max_time_in_db($r,$prog_state); |
my $max_time = &get_max_time_in_db($r,$prog_state); |
if (defined($max_time)) { |
if (defined($max_time)) { |
$r->print('<h3>'.&mt('Activity data goes to [_1]', |
$r->print('<h3>'.&mt('Activity data compiled up to [_1]', |
&Apache::lonlocal::locallocaltime($max_time)). |
&Apache::lonlocal::locallocaltime($max_time)). |
'</h3>'); |
'</h3>'.&mt('While data is processed, periodically reload this page for more recent activity').'<br />'); |
$r->rflush(); |
$r->rflush(); |
} else { |
} else { |
$r->print('<h3>'.&mt('Unable to retrieve any data. Please reload this page and try again.').'</h3>'); |
$r->print('<h3>'.&mt('Unable to retrieve any data. Please reload this page and try again.').'</h3>'); |
Line 236 sub output_results {
|
Line 236 sub output_results {
|
## |
## |
if (! -s $results_file) { |
if (! -s $results_file) { |
# results file is empty, just let them know there is no data |
# results file is empty, just let them know there is no data |
$r->print('<h2>'.&mt('No data was returned for your request').'</h2>'); |
$r->print('<h2>'.&mt('So far, no data has been returned for your request').'</h2>'); |
return; |
return; |
} |
} |
if (! open(ACTIVITYDATA,$results_file)) { |
if (! open(ACTIVITYDATA,$results_file)) { |
Line 545 sub handler {
|
Line 545 sub handler {
|
'</h2>'); |
'</h2>'); |
$r->print('<p>'.&mt(<<END).'</p>'); |
$r->print('<p>'.&mt(<<END).'</p>'); |
Compiling student activity data can take a long time. |
Compiling student activity data can take a long time. |
It may be necessary to reload this page to get the most current information. |
Your request continues to be processed while results are displayed. |
END |
END |
&get_data($r,\%prog_state,$navmap, |
&get_data($r,\%prog_state,$navmap, |
'student:'.$env{'form.selected_student'}); |
'student:'.$env{'form.selected_student'}); |