version 1.155, 2012/03/20 16:03:54
|
version 1.156.2.2, 2013/03/18 01:28:27
|
Line 691 sub DisplayClasslist {
|
Line 691 sub DisplayClasslist {
|
} |
} |
|
|
$Str .= '<h2>'.&mt('Select One Student').'</h2>' |
$Str .= '<h2>'.&mt('Select One Student').'</h2>' |
.'<p>'.&mt("Click on a student's name or username to view their chart").'</p>' |
.'<p>'.&mt("Click on a student's name or username to view their chart.").'</p>' |
.&Apache::loncommon::start_data_table() |
.&Apache::loncommon::start_data_table() |
.&Apache::loncommon::start_data_table_header_row(); |
.&Apache::loncommon::start_data_table_header_row(); |
foreach my $field (@Fields) { |
foreach my $field (@Fields) { |
Line 715 sub DisplayClasslist {
|
Line 715 sub DisplayClasslist {
|
$Str .= '&sort='.&escape($env{'form.sort'}); |
$Str .= '&sort='.&escape($env{'form.sort'}); |
$Str .= '&SelectedStudent='; |
$Str .= '&SelectedStudent='; |
$Str .= &escape($sname).'">'; |
$Str .= &escape($sname).'">'; |
$Str .= $student->{$field}.' '; |
$Str .= $student->{$field}; |
$Str .= '</a>'; |
$Str .= '</a>'; |
} elsif ($field eq 'status') { |
} elsif ($field eq 'status') { |
$Str .= &mt($student->{$field}); |
$Str .= &mt($student->{$field}); |
} else { |
} else { |
|
if ($student->{$field} eq 'none') { |
|
$Str .= &mt('none') |
|
} else { |
|
$Str .= $student->{$field}; |
|
} |
$Str .= $student->{$field}; |
$Str .= $student->{$field}; |
} |
} |
$Str .= '</td>'; |
$Str .= '</td>'; |
Line 839 ENDSTYLE
|
Line 844 ENDSTYLE
|
bug=>'Statistics and Charts'}); |
bug=>'Statistics and Charts'}); |
if (! exists($env{'form.reportSelected'}) || |
if (! exists($env{'form.reportSelected'}) || |
$env{'form.reportSelected'} eq '') { |
$env{'form.reportSelected'} eq '') { |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Statistics Main Page')); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('Statistics Main Page'). |
&Apache::lonquickgrades::startGradeScreen($r,'statistics'); |
&CreateMainMenu()); |
$r->print(&CreateMainMenu()); |
|
} else { |
} else { |
# |
# |
if (! &Apache::lonmysql::verify_sql_connection()) { |
if (! &Apache::lonmysql::verify_sql_connection()) { |
my $serveradmin = $r->dir_config('lonAdmEMail'); |
my $serveradmin = $r->dir_config('lonAdmEMail'); |
$r->print('<h2 class="LC_error">'. |
$r->print('<p class="LC_error">'. |
&mt('Unable to connect to database!'). |
&mt('Unable to connect to database!'). |
'</h2>'); |
'</p>'); |
$r->print('<p>' |
$r->print('<p>' |
.&mt('Please notify the server administrator [_1]', |
.&mt('Please notify the server administrator [_1]', |
,'<b>'.$serveradmin.'</b>') |
,'<b>'.$serveradmin.'</b>') |
Line 928 ENDSTYLE
|
Line 932 ENDSTYLE
|
# |
# |
$r->print("</form>\n"); |
$r->print("</form>\n"); |
} |
} |
&Apache::lonquickgrades::endGradeScreen($r); |
|
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
$r->rflush(); |
$r->rflush(); |
# |
# |