--- loncom/interface/lonhelper.pm 2003/10/08 18:23:26 1.52 +++ loncom/interface/lonhelper.pm 2003/10/09 14:28:09 1.53 @@ -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.53 2003/10/09 14:28:09 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2081,12 +2081,30 @@ sub render { } } } + function checksec() { + for (i=0; i SCRIPT $buttons = < + + + 
BUTTONS } @@ -2140,7 +2158,8 @@ BUTTONS if (!$self->{'activeonly'} || $classlist->{$_}->[$status] eq 'Active') { push @$choices, [$_, $classlist->{$_}->[$fullname], - $classlist->{$_}->[$section], 'Student']; + $classlist->{$_}->[$section], + $classlist->{$_}->[$status], 'Student']; } } @@ -2150,7 +2169,9 @@ BUTTONS $result .= "\n"; $result .= "". "" . - ""; + "" . + "" . + ""; my $checked = 0; for my $choice (@$choices) { @@ -2162,13 +2183,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";