--- loncom/interface/lonhelper.pm 2003/09/29 16:33:09 1.48 +++ loncom/interface/lonhelper.pm 2003/10/09 14:37:48 1.54 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.48 2003/09/29 16:33:09 bowersj2 Exp $ +# $Id: lonhelper.pm,v 1.54 2003/10/09 14:37:48 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1873,7 +1873,7 @@ BUTTONS # Evaluate the map url as needed my $mapUrl; - if ($self->{EVALUATE_MAP_URL}) { + if ($self->{EVAL_MAP_URL}) { my $mapUrlFunc = eval('sub { my $helper = shift; my $state = shift; ' . $self->{MAP_URL} . '}'); $mapUrl = &$mapUrlFunc($helper, $self); @@ -2044,13 +2044,34 @@ sub render { } } } + function checksec(value) { + for (i=0; i SCRIPT $buttons = < +
+ +  + + +
BUTTONS } @@ -2103,7 +2124,8 @@ BUTTONS if (!$self->{'activeonly'} || $classlist->{$_}->[$status] eq 'Active') { push @$choices, [$_, $classlist->{$_}->[$fullname], - $classlist->{$_}->[$section], 'Student']; + $classlist->{$_}->[$section], + $classlist->{$_}->[$status], 'Student']; } } @@ -2113,7 +2135,9 @@ BUTTONS $result .= "\n"; $result .= "". "" . - ""; + "" . + "" . + ""; my $checked = 0; for my $choice (@$choices) { @@ -2125,13 +2149,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";