1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<% include( '/elements/select-table.html', 'table' => 'cdr_carrier', 'name_col' => 'carriername', 'empty_label' => '(none)', %opt, ) %> <%init> my( %opt ) = @_; $opt{'records'} = delete $opt{'cdr_carrier'} if $opt{'cdr_carrier'}; my %hash = ( 'disabled' => '', ); $opt{'records'} ||= [ qsearch( 'cdr_carrier', \%hash ) ]; </%init>