version 1.170, 2005/06/28 21:41:08
|
version 1.173, 2005/08/02 18:05:25
|
Line 43 sub initialize_inputtags {
|
Line 43 sub initialize_inputtags {
|
# list of all input ids seen in this problem |
# list of all input ids seen in this problem |
@Apache::inputtags::inputlist=(); |
@Apache::inputtags::inputlist=(); |
# list of all current response ids |
# list of all current response ids |
@Apache::inputtags::response=(); |
@Apache::inputtags::hint=(); |
# list of all response ids seen in this problem |
# list of all response ids seen in this problem |
@Apache::inputtags::responselist=(); |
@Apache::inputtags::responselist=(); |
|
# list of all current hint ids |
|
@Apache::inputtags::response=(); |
|
# list of all hint ids seen in this problem |
|
@Apache::inputtags::hintlist=(); |
# list of whether or not a specific response was previously used |
# list of whether or not a specific response was previously used |
@Apache::inputtags::previous=(); |
@Apache::inputtags::previous=(); |
# submission it was used in |
# submission it was used in |
Line 75 sub check_for_duplicate_ids {
|
Line 79 sub check_for_duplicate_ids {
|
my %check; |
my %check; |
foreach my $id (@Apache::inputtags::partlist, |
foreach my $id (@Apache::inputtags::partlist, |
@Apache::inputtags::responselist, |
@Apache::inputtags::responselist, |
|
@Apache::inputtags::hintlist, |
@Apache::inputtags::importlist) { |
@Apache::inputtags::importlist) { |
$check{$id}++; |
$check{$id}++; |
} |
} |
Line 426 sub decideoutput {
|
Line 431 sub decideoutput {
|
$message=&mt('Incorrect.'); |
$message=&mt('Incorrect.'); |
$bgcolor=$possiblecolors{'charged_try'}; |
$bgcolor=$possiblecolors{'charged_try'}; |
} |
} |
if ($award eq 'ASSIGNED_SCORE') { |
if ($env{'request.filename'} =~ |
|
m|/res/lib/templates/examupload.problem$|) { |
$message = &mt("A score has been assigned."); |
$message = &mt("A score has been assigned."); |
|
$added_computer_text=1; |
} else { |
} else { |
if ($target eq 'tex') { |
if ($target eq 'tex') { |
$message = '\textbf{'.$message.'}'; |
$message = '\textbf{'.$message.'}'; |