version 1.150, 2010/04/14 13:58:11
|
version 1.155, 2012/03/20 16:03:54
|
Line 64 use Apache::lonpercentage;
|
Line 64 use Apache::lonpercentage;
|
use Apache::lonstudentsubmissions(); |
use Apache::lonstudentsubmissions(); |
use Apache::lonsurveyreports(); |
use Apache::lonsurveyreports(); |
use Apache::longradinganalysis(); |
use Apache::longradinganalysis(); |
|
use Apache::lonquickgrades(); |
use LONCAPA; |
use LONCAPA; |
|
|
# |
# |
Line 412 sub StudentDataSelect {
|
Line 413 sub StudentDataSelect {
|
last; |
last; |
} |
} |
} |
} |
$Str .= ">all</option>\n"; |
$Str .= '>'.&mt('all')."</option>\n"; |
# |
# |
# Loop through the student data fields |
# Loop through the student data fields |
foreach my $item (@StudentDataOrder) { |
foreach my $item (@StudentDataOrder) { |
Line 423 sub StudentDataSelect {
|
Line 424 sub StudentDataSelect {
|
last; |
last; |
} |
} |
} |
} |
$Str .= '>'.$item."</option>\n"; |
$Str .= '>'.&mt($item)."</option>\n"; |
} |
} |
$Str .= "</select>\n"; |
$Str .= "</select>\n"; |
return $Str; |
return $Str; |
Line 749 sub CreateMainMenu {
|
Line 750 sub CreateMainMenu {
|
|
|
{url => '/adm/statistics?reportSelected=problem_analysis', |
{url => '/adm/statistics?reportSelected=problem_analysis', |
permission => 'F', |
permission => 'F', |
icon => 'edit-find.png', |
icon => 'prob_ana.png', |
linktext => ('Detailed Problem Analysis'), |
linktext => ('Detailed Problem Analysis'), |
linktitle => ('Detailed statistics and graphs of student performance on problems.')}, |
linktitle => ('Detailed statistics and graphs of student performance on problems.')}, |
]}, |
]}, |
Line 777 sub CreateMainMenu {
|
Line 778 sub CreateMainMenu {
|
|
|
{url => '/adm/statistics?reportSelected=survey_reports', |
{url => '/adm/statistics?reportSelected=survey_reports', |
permission => 'F', |
permission => 'F', |
icon => 'subdocs.png', |
icon => 'survey_rep.png', |
linktext => ('Survey Reports'), |
linktext => ('Survey Reports'), |
linktitle => ('Prepare reports on survey results.')}, |
linktitle => ('Prepare reports on survey results.')}, |
]}); |
]}); |
Line 792 sub handler {
|
Line 793 sub handler {
|
my $r=shift; |
my $r=shift; |
my $c = $r->connection(); |
my $c = $r->connection(); |
# |
# |
# Check for overloading |
|
my $loaderror=&Apache::lonnet::overloaderror($r); |
|
if ($loaderror) { return $loaderror; } |
|
$loaderror= |
|
&Apache::lonnet::overloaderror($r, |
|
$env{'course.'.$env{'request.course.id'}.'.home'}); |
|
if ($loaderror) { return $loaderror; } |
|
# |
|
# Check for access |
# Check for access |
if (! &Apache::lonnet::allowed('vgr',$env{'request.course.id'})) { |
if (! &Apache::lonnet::allowed('vgr',$env{'request.course.id'})) { |
$env{'user.error.msg'}= |
$env{'user.error.msg'}= |
Line 846 ENDSTYLE
|
Line 839 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')); |
&CreateMainMenu()); |
&Apache::lonquickgrades::startGradeScreen($r,'statistics'); |
|
$r->print(&CreateMainMenu()); |
} else { |
} else { |
# |
# |
if (! &Apache::lonmysql::verify_sql_connection()) { |
if (! &Apache::lonmysql::verify_sql_connection()) { |
Line 873 ENDSTYLE
|
Line 867 ENDSTYLE
|
&Apache::loncoursedata::delete_caches($env{'requres.course.id'}); |
&Apache::loncoursedata::delete_caches($env{'requres.course.id'}); |
} |
} |
# |
# |
|
my $GoToPage = $env{'form.reportSelected'}; |
|
# |
# Begin form output |
# Begin form output |
$r->print('<form name="Statistics" '); |
$r->print('<form name="Statistics" '); |
|
if ($GoToPage eq 'student_submission_reports') { |
|
$r->print('onsubmit="return checkanon();" '); |
|
} |
$r->print('method="post" action="/adm/statistics">'); |
$r->print('method="post" action="/adm/statistics">'); |
$r->rflush(); |
$r->rflush(); |
# |
|
my $GoToPage = $env{'form.reportSelected'}; |
|
# |
|
$r->print('<input type="hidden" name="reportSelected" value="'. |
$r->print('<input type="hidden" name="reportSelected" value="'. |
$GoToPage.'" />'); |
$GoToPage.'" />'); |
if($GoToPage eq 'activitylog') { |
if($GoToPage eq 'activitylog') { |
Line 932 ENDSTYLE
|
Line 928 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(); |
# |
# |