version 1.197, 2006/11/09 17:50:51
|
version 1.198, 2006/11/09 20:20:18
|
Line 1055 DONEBUTTON
|
Line 1055 DONEBUTTON
|
my %counts = &get_counts($dim,undef,$parstack, |
my %counts = &get_counts($dim,undef,$parstack, |
$safeeval); |
$safeeval); |
$status.="\n<div class='LC_$bt_status LC_criteria LC_task_overall_status'><p>". |
$status.="\n<div class='LC_$bt_status LC_criteria LC_task_overall_status'><p>". |
&mt('You needed to pass all of the [_1] mandatory components and [_2] of the [_3] optional components, of which you passed [_4].', |
&question_status_message(\%counts,-1). |
$counts{'man'},$counts{'opt_req'}, |
"</p></div>\n"; |
$counts{'opt'},$counts{'opt_passed'}). |
|
"</p></div>\n"; |
|
|
|
|
|
foreach my $id (@{$dimension{$dim}{'criterias'}}) { |
foreach my $id (@{$dimension{$dim}{'criterias'}}) { |
Line 2351 sub end_Dimension {
|
Line 2349 sub end_Dimension {
|
return $result; |
return $result; |
} |
} |
|
|
sub status_message { |
sub question_status_message { |
my ($counts,$depth) = @_; |
my ($counts,$depth) = @_; |
my %req = ('man' => 'mandatory', |
my %req = ('man' => 'mandatory', |
'opt' => 'optional',); |
'opt' => 'optional',); |