version 1.26, 2004/09/29 14:56:59
|
version 1.27, 2004/09/30 13:44:07
|
Line 118 sub ProblemSelector {
|
Line 118 sub ProblemSelector {
|
my ($AcceptedResponseTypes) = @_; |
my ($AcceptedResponseTypes) = @_; |
my $Str; |
my $Str; |
$Str = "\n<table>\n"; |
$Str = "\n<table>\n"; |
|
my $rb_count =0; |
foreach my $seq (&Apache::lonstatistics::Sequences_with_Assess('all')) { |
foreach my $seq (&Apache::lonstatistics::Sequences_with_Assess('all')) { |
next if ($seq->{'num_assess'}<1); |
next if ($seq->{'num_assess'}<1); |
my $seq_str = ''; |
my $seq_str = ''; |
Line 141 sub ProblemSelector {
|
Line 142 sub ProblemSelector {
|
if (! defined($title) || $title eq '') { |
if (! defined($title) || $title eq '') { |
($title) = ($res->{'src'} =~ m:/([^/]*)$:); |
($title) = ($res->{'src'} =~ m:/([^/]*)$:); |
} |
} |
$seq_str .= '<tr><td>'. |
$seq_str .= '<tr>'. |
'<input type="radio" name="problemchoice" value="'.$value.'" '.$checked.'/>'. |
qq{<td><input type="radio" id="$rb_count" name="problemchoice" value="$value" $checked /></td>}. |
'</td><td>'. |
'<td><label for="'.$rb_count.'">'.$resptype.'</label></td>'. |
$resptype.'</td><td>'. |
'<td><label for="'.$rb_count.'">'.$title.'</label>'; |
'<a href="'.$res->{'src'}.'">'.$title.'</a> '; |
|
# '<a href="'.$res->{'src'}.'">'.$resptype.' '.$res->{'title'}.'</a> '; |
|
if (scalar(@{$partdata->{'ResponseIds'}}) > 1) { |
if (scalar(@{$partdata->{'ResponseIds'}}) > 1) { |
$seq_str .= &mt('response').' '.$respid; |
$seq_str .= &mt('response').' '.$respid; |
} |
} |
|
$seq_str .= (' 'x2). |
|
qq{<a target="preview" href="$res->{'src'}">view</a>}; |
$seq_str .= "</td></tr>\n"; |
$seq_str .= "</td></tr>\n"; |
|
$rb_count++; |
} |
} |
} |
} |
} |
} |