version 1.75, 2003/06/10 18:22:17
|
version 1.77, 2003/06/16 15:54:58
|
Line 805 sub DisplayClasslist {
|
Line 805 sub DisplayClasslist {
|
my @Fields = ('fullname','username','domain','id','section'); |
my @Fields = ('fullname','username','domain','id','section'); |
# |
# |
my $Str=''; |
my $Str=''; |
|
# "Click" is asinine but it is probably not my place to change the world. |
|
$Str .= '<h2>Click on a users name to view their chart</h2>'; |
$Str .= '<table border="0"><tr><td bgcolor="#777777">'."\n"; |
$Str .= '<table border="0"><tr><td bgcolor="#777777">'."\n"; |
$Str .= '<table border="0" cellpadding="3"><tr bgcolor="#e6ffff">'."\n"; |
$Str .= '<table border="0" cellpadding="3"><tr bgcolor="#e6ffff">'."\n"; |
foreach my $field (@Fields) { |
foreach my $field (@Fields) { |
Line 855 sub CreateMainMenu {
|
Line 857 sub CreateMainMenu {
|
# |
# |
my $Str = ''; |
my $Str = ''; |
# |
# |
$Str .= '<table border="0"><tbody><tr>'."\n"; |
$Str = '<input type="hidden" name="reportSelected" value="'.$current.'">'; |
$Str .= '<td></td>'."\n"; |
# $Str .= '<table border="0"><tbody><tr>'."\n"; |
$Str .= '<td align="center"><b>Select a Report</b></td>'."\n"; |
# $Str .= '<td align="center"><b>Report:</b></td>'."\n"; |
$Str .= '<td></td>'."\n"; |
# $Str .= '<td align="center">'; |
$Str .= '<td></td>'."\n"; |
# $Str .= '<select name="reportSelected" '. |
$Str .= '<tr>'."\n"; |
# 'onchange="document.Statistics.submit()">'."\n"; |
# |
# foreach (sort(keys(%$reports))) { |
$Str .= '<td align="center">'. |
# $Str .= '<option value="'.$_.'"'; |
'<input type="submit" name="Refresh" value="Update Display" />'. |
# if($current eq $_) { |
"</td>\n"; |
# $Str .= ' selected'; |
# |
# } |
$Str .= '<td align="center">'; |
# $Str .= '>'.$reports->{$_}.'</option>'."\n"; |
$Str .= '<select name="reportSelected" >'."\n"; |
# } |
foreach (sort(keys(%$reports))) { |
# $Str .= '</select></td>'."\n"; |
$Str .= '<option value="'.$_.'"'; |
# # |
if($current eq $_) { |
# $Str .= '<td>'.(' 'x30).'</td>'; |
$Str .= ' selected'; |
# $Str .= '<td align="center">'. |
} |
# '<input type="submit" name="ClearCache" value="Clear Caches" />'. |
$Str .= '>'.$reports->{$_}.'</option>'."\n"; |
# "</td>\n"; |
} |
# $Str .= '</tr></tbody></table>'."\n"; |
$Str .= '</select></td>'."\n"; |
# $Str .= '<hr>'."\n"; |
# |
|
$Str .= '<td>'.(' 'x30).'</td>'; |
|
$Str .= '<td align="center">'. |
|
'<input type="submit" name="ClearCache" value="Clear Caches" />'. |
|
"</td>\n"; |
|
$Str .= '</tr></tbody></table>'."\n"; |
|
$Str .= '<hr>'."\n"; |
|
# |
# |
return $Str; |
return $Str; |
} |
} |
Line 993 END
|
Line 988 END
|
&Apache::lonstudentassessment::BuildStudentAssessmentPage($r,$c); |
&Apache::lonstudentassessment::BuildStudentAssessmentPage($r,$c); |
} elsif($GoToPage eq 'DoDiffGraph' || $GoToPage eq 'PercentWrongGraph') { |
} elsif($GoToPage eq 'DoDiffGraph' || $GoToPage eq 'PercentWrongGraph') { |
# &Apache::lonproblemstatistics::BuildGraphicChart($r,$c); |
# &Apache::lonproblemstatistics::BuildGraphicChart($r,$c); |
} elsif($GoToPage eq 'classlist') { |
|
&DisplayClasslist($r); |
|
} elsif($GoToPage eq 'Correct-problems Plot') { |
} elsif($GoToPage eq 'Correct-problems Plot') { |
# &Apache::lonpercentage::BuildPercentageGraph($r,$c); |
# &Apache::lonpercentage::BuildPercentageGraph($r,$c); |
} |
} |