<% include( '/elements/select-table.html', 'table' => 'cdr_batch', 'name_col' => 'cdrbatch', 'curr_value' => $cdrbatchnum, 'empty_label' => '(none)', 'pre_options' => [ '__ALL__' => 'All' ], ) %> <%init> my %opt = @_; my $cdrbatchnum = $opt{'curr_value'}; # || $opt{'value'} necessary?