version 1.129, 2006/12/21 19:52:28
|
version 1.131, 2008/10/23 09:07:51
|
Line 636 sub numerical_determine_answers {
|
Line 636 sub numerical_determine_answers {
|
$sdom); |
$sdom); |
# make the key |
# make the key |
my $key = $partid.'.'.$respid; |
my $key = $partid.'.'.$respid; |
|
# pick one of the possible answers |
|
my $which = 'INTERNAL'; |
|
if (!exists($analysis->{$key}{$which})) { |
|
$which = (sort(keys(%{ $analysis->{$key} })))[0]; |
|
} |
foreach my $item ('answer','unit','ans_high','ans_low') { |
foreach my $item ('answer','unit','ans_high','ans_low') { |
$correct->{$sname.':'.$sdom}->{$item} = |
if (ref($analysis->{$key.'.'.$item}) eq 'ARRAY') { |
$analysis->{$key.'.'.$item}->[0]; |
$correct->{$sname.':'.$sdom}->{$item} = |
|
$analysis->{$key.'.'.$item}[0]; |
|
} else { |
|
$correct->{$sname.':'.$sdom}->{$item} = |
|
$analysis->{$key.'.'.$item}{$which}[0][0]; |
|
} |
} |
} |
$answers{$analysis->{$key.'.answer'}->[0]}++; |
$answers{$correct->{$sname.':'.$sdom}{'answer'}}++; |
&Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state, |
&Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state, |
&mt('last student')); |
&mt('last student')); |
} |
} |
Line 1908 sub CreateInterface {
|
Line 1918 sub CreateInterface {
|
$Str .= '<nobr><label>'.&mt('Number of Plots [_1]',$numplots_selector). |
$Str .= '<nobr><label>'.&mt('Number of Plots [_1]',$numplots_selector). |
'</label></nobr>'; |
'</label></nobr>'; |
## |
## |
$Str .= '<nobr><label>'.&mt('Status: [_1]', |
$Str .= '<span class="LC_nobreak"><label>' |
'<input type="text" '. |
.&mt('Status: [_1]', |
'name="stats_status" size="60" value="" />' |
'<input type="text" name="stats_status"' |
). |
.' size="60" value="" readonly="readonly" />') |
'</label></nobr>'; |
.'</label></span>'; |
$Str .= '</td>'; |
$Str .= '</td>'; |
## |
## |
## |
## |