%doc> Example: <& /elements/search-cust_svc.html, 'svcpart' => 10, 'pkgnum' => 315, 'svcdb' => 'svc_acct', &> %doc> % if ( $first ) { % $first = 0; % }
<%init> my %hints = ( svc_acct => emt('(user or email)'), svc_domain => emt('(domain)'), svc_broadband => emt('(ip or mac)'), svc_forward => emt('(email)'), svc_phone => emt('(phone)'), svc_pbx => emt('(phone)'), '' => '', ); my( %opt ) = @_; if ( !$opt{'svcdb'} and $opt{'svcpart'} ) { my $part_svc = qsearchs('part_svc', { 'svcpart' => $opt{'svcpart'} }); $opt{'svcdb'} = $part_svc->svcdb if $part_svc; } my $hint = $hints{$opt{'svcdb'} || ''}; %init> <%shared> my $first = 1; %shared>