3 CXGN::Page::Form::MultiSelect;
7 Implements a static (non-editable) multiple-selection list on a static form. For more information, see L<CXGN::Page::Form>.
16 use CXGN
::Page
::Form
::MultiSelect
;
18 package CXGN
::Page
::Form
::EditableMultiSelect
;
20 use base qw
/ CXGN::Page::Form::MultiSelect /;
37 my $self = $class->SUPER::new
(%params);
55 my $html = "<select id=\"" . $self->get_id() . "\" name=\"" . $self->get_field_name() . "\" multiple=\"multiple\">";
56 for(my $i = 0; $i < scalar($self->get_choice_array()); $i++)
58 if($self->is_selected($i))
60 $html .= "<option value=\"" . $self->get_choice($i) . "\" selected=\"selected\">" . $self->get_label($i) . "</option>";
64 $html .= "<option value=\"" . $self->get_choice($i) . "\">" . $self->get_label($i) . "</option>";
67 return $html . "</select>";