--- loncom/interface/lonhelper.pm 2003/10/08 18:23:26 1.52 +++ loncom/interface/lonhelper.pm 2003/10/09 18:24:32 1.58 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.52 2003/10/08 18:23:26 bowersj2 Exp $ +# $Id: lonhelper.pm,v 1.58 2003/10/09 18:24:32 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2081,12 +2081,31 @@ sub render { } } } + function checksec(value) { + for (i=0; i SCRIPT $buttons = < + + +  +
BUTTONS } @@ -2140,7 +2159,8 @@ BUTTONS if (!$self->{'activeonly'} || $classlist->{$_}->[$status] eq 'Active') { push @$choices, [$_, $classlist->{$_}->[$fullname], - $classlist->{$_}->[$section], 'Student']; + $classlist->{$_}->[$section], + $classlist->{$_}->[$status], 'Student']; } } @@ -2150,7 +2170,9 @@ BUTTONS $result .= "\n"; $result .= "". "" . - ""; + "" . + "" . + ""; my $checked = 0; for my $choice (@$choices) { @@ -2162,13 +2184,18 @@ BUTTONS $checked = 1; } $result .= - " value='" . HTML::Entities::encode($choice->[0] . ':' . $choice->[2]) + " value='" . HTML::Entities::encode($choice->[0] . ':' . $choice->[2] . ':' . $choice->[1] . ':' . $choice->[3]) . "' />\n\n"; + . HTML::Entities::encode($choice->[3]) + . "\n\n\n"; } $result .= "
$nameSectionRole
StatusRoleUsername:Domain
" . HTML::Entities::encode($choice->[1]) . "" . HTML::Entities::encode($choice->[2]) . "" - . HTML::Entities::encode($choice->[3]) . "
" + . HTML::Entities::encode($choice->[4]) + . "" + . HTML::Entities::encode($choice->[0]) + . "
\n\n";