version 1.13, 2004/06/15 14:22:45
|
version 1.15, 2004/06/15 14:43:45
|
Line 109 all option response and radiobutton prob
|
Line 109 all option response and radiobutton prob
|
|
|
Returns: A string containing html for a table which lists the sequences |
Returns: A string containing html for a table which lists the sequences |
and their contents. A radiobutton is provided for each problem. |
and their contents. A radiobutton is provided for each problem. |
|
Skips 'survey' problems. |
|
|
=cut |
=cut |
|
|
Line 125 sub ProblemSelector {
|
Line 126 sub ProblemSelector {
|
next if ($res->{'type'} ne 'assessment'); |
next if ($res->{'type'} ne 'assessment'); |
foreach my $part (@{$res->{'parts'}}) { |
foreach my $part (@{$res->{'parts'}}) { |
my $partdata = $res->{'partdata'}->{$part}; |
my $partdata = $res->{'partdata'}->{$part}; |
|
next if ($partdata->{'Survey'}); |
for (my $i=0;$i<scalar(@{$partdata->{'ResponseTypes'}});$i++){ |
for (my $i=0;$i<scalar(@{$partdata->{'ResponseTypes'}});$i++){ |
my $respid = $partdata->{'ResponseIds'}->[$i]; |
my $respid = $partdata->{'ResponseIds'}->[$i]; |
my $resptype = $partdata->{'ResponseTypes'}->[$i]; |
my $resptype = $partdata->{'ResponseTypes'}->[$i]; |
Line 260 sub get_prev_curr_next {
|
Line 262 sub get_prev_curr_next {
|
next if ($res->{'type'} ne 'assessment'); |
next if ($res->{'type'} ne 'assessment'); |
foreach my $part (@{$res->{'parts'}}) { |
foreach my $part (@{$res->{'parts'}}) { |
my $partdata = $res->{'partdata'}->{$part}; |
my $partdata = $res->{'partdata'}->{$part}; |
if ($granularity eq 'part_survey' && $partdata->{'Survey'}){ |
if ($partdata->{'Survey'}) { |
push (@Resource, |
if ($granularity eq 'part_survey'){ |
{ symb => $res->{symb}, |
push (@Resource, |
part => $part, |
{ symb => $res->{symb}, |
resource => $res, |
part => $part, |
} ); |
resource => $res, |
|
} ); |
|
} |
} elsif ($granularity eq 'part') { |
} elsif ($granularity eq 'part') { |
push (@Resource, |
push (@Resource, |
{ symb => $res->{symb}, |
{ symb => $res->{symb}, |