%doc> Example: include('/elements/select-did.html', #can't actuall change from phonenum yet# 'field' => 'phonenum', 'svcpart' => 5, #OR 'object' => $svc_phone, ); %doc> % if ( $use_selector ) { % if ( $export->option('restrict_selection') eq 'non-tollfree' % || !$export->option('restrict_selection') ) {
<% include('/elements/select-state.html',
'prefix' => 'phonenum_', #$field.'_',
'country' => $country,
'svcpart' => $svcpart,
'disable_empty' => 0,
'empty_label' => 'Select state',
)
%>
State |
<% include('/elements/select-areacode.html',
'state_prefix' => 'phonenum_', #$field.'_',
'svcpart' => $svcpart,
'empty' => 'Select area code',
)
%>
Area code |
<% include('/elements/select-exchange.html',
'svcpart' => $svcpart,
'empty' => 'Select exchange',
)
%>
City / Exchange |
% } else {
<% include('/elements/select.html',
'field' => 'phonenum_state',
'id' => 'phonenum_state',
'options' => [ '', @{ $export->get_dids } ],
'labels' => { '' => 'Select province' },
'onchange' => 'phonenum_state_changed(this);',
)
%>
Province |
<% include('/elements/select-region.html',
'state_prefix' => 'phonenum_', #$field.'_',
'svcpart' => $svcpart,
'empty' => 'Select region',
)
%>
Region |
% }
<% include('/elements/select-phonenum.html',
'svcpart' => $svcpart,
'empty' => 'Select phone number',
'bulknum' => $bulknum,
'multiple' => $multiple,
'region' => ! $export->get_dids_npa_select,
)
%>
Phone number |