--- loncom/interface/lonwhatsnew.pm 2012/02/08 17:07:02 1.101.2.1.2.1 +++ loncom/interface/lonwhatsnew.pm 2012/10/04 06:07:11 1.105.2.3 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.101.2.1.2.1 2012/02/08 17:07:02 raeburn Exp $ +# $Id: lonwhatsnew.pm,v 1.105.2.3 2012/10/04 06:07:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -613,7 +613,7 @@ sub display_actions_box { } } - $r->print(''); } } elsif ($itemserror) { @@ -1697,7 +1698,7 @@ sub display_abovethreshold { if (ref($$triggered{$res}{text}) eq 'ARRAY') { if (@{$$triggered{$res}{text}} > 1) { for (my $i=1; $i<@{$$triggered{$res}{text}}; $i++) { - $r->print(''. + $r->print(''. $$triggered{$res}{text}[$i].''); } }
'); + $r->print('
'); my $displayed = 0; my $totalboxes = 0; @@ -639,6 +639,7 @@ sub display_actions_box {
+ '); } @@ -889,7 +890,7 @@ sub display_launcher { $crstype,$itemserror,$loggedin,$logincount) = @_; if ($$checkallowed{$action}) { - &start_box($r,$show,$headings,$action,$refpage,$action); + &start_box($r,$show,$headings,$action,$refpage); if ($$show{$action}) { if ($action eq 'handgrading') { # UNGRADED ITEMS &display_handgrade($r,$tograde,$ungraded,$itemserror); @@ -916,7 +917,6 @@ sub display_launcher { } elsif ($action eq 'crslogin') { #LAST LOGIN &display_crslogins($r,$logincount,$loggedin,$interval->{'crslogin'}, $crstype); - } } &end_box($r); @@ -1096,6 +1096,7 @@ sub check_thresholds { $av_attempts = $attempts/$users; $av_attempts = sprintf("%.2f",$av_attempts); } + &Apache::lonnet::statslog($symb,$part,$users,$av_attempts,$degdiff); if ((($degdiff ne '' && $degdiff >= $$threshold{'degdiff'}) || ($av_attempts ne '' && $av_attempts >= $$threshold{'av_attempts'})) && ($users >= $$threshold{'numstudents'})) { $stats{$part}{degdiff} = $degdiff; $stats{$part}{attempts} = $av_attempts; @@ -1607,9 +1608,9 @@ sub display_handgrade { my $linkurl=&Apache::lonnet::clutter($url); $linkurl .= '?symb='.&escape($res); if ($$ungraded{$res}{'enclink'}) { - $linkurl = + $linkurl = $$ungraded{$res}{'enclink'}.'?symb='.$$ungraded{$res}{'encsymb'}; - } + } $r->print('
'.$$ungraded{$res}{title}.''.$$ungraded{$res}{count}.'