version 1.105.2.3, 2012/10/04 06:07:11
|
version 1.106, 2012/08/19 00:18:16
|
Line 1604 sub display_handgrade {
|
Line 1604 sub display_handgrade {
|
foreach my $res (@{$tograde}) { |
foreach my $res (@{$tograde}) { |
$rowNum ++; |
$rowNum ++; |
my $css_class = $rowNum%2?' class="LC_odd_row"':''; |
my $css_class = $rowNum%2?' class="LC_odd_row"':''; |
my ($map,$id,$url)=&Apache::lonnet::decode_symb($res); |
my $linkurl='/adm/grades'; |
my $linkurl=&Apache::lonnet::clutter($url); |
|
$linkurl .= '?symb='.&escape($res); |
|
if ($$ungraded{$res}{'enclink'}) { |
if ($$ungraded{$res}{'enclink'}) { |
$linkurl = |
$linkurl.='?symb='.$$ungraded{$res}{'encsymb'}; |
$$ungraded{$res}{'enclink'}.'?symb='.$$ungraded{$res}{'encsymb'}; |
} else { |
|
$linkurl.='?symb='.&escape($res); |
} |
} |
|
$linkurl.='&command=ungraded'; |
$r->print('<tr'.$css_class.'><td><a href="'.$linkurl.'">'.$$ungraded{$res}{title}.'</a></td><td class="LC_right_item">'.$$ungraded{$res}{count}.'</td></tr>'); |
$r->print('<tr'.$css_class.'><td><a href="'.$linkurl.'">'.$$ungraded{$res}{title}.'</a></td><td class="LC_right_item">'.$$ungraded{$res}{count}.'</td></tr>'); |
} |
} |
} elsif ($itemserror) { |
} elsif ($itemserror) { |
Line 1698 sub display_abovethreshold {
|
Line 1698 sub display_abovethreshold {
|
if (ref($$triggered{$res}{text}) eq 'ARRAY') { |
if (ref($$triggered{$res}{text}) eq 'ARRAY') { |
if (@{$$triggered{$res}{text}} > 1) { |
if (@{$$triggered{$res}{text}} > 1) { |
for (my $i=1; $i<@{$$triggered{$res}{text}}; $i++) { |
for (my $i=1; $i<@{$$triggered{$res}{text}}; $i++) { |
$r->print('<tr '.$css_class.'>'. |
$r->print('<tr class="'.$css_class.'">'. |
$$triggered{$res}{text}[$i].'</tr>'); |
$$triggered{$res}{text}[$i].'</tr>'); |
} |
} |
} |
} |