% include('/elements/header.html', $title ) %>
<% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Services: Hardware: Advanced search'); my $title = 'Hardware Service Report'; my @classes = qsearch('hardware_class', {}); my @classnums = ('', map { $_->classnum } @classes); my %class_labels = ('' => 'Select hardware class', map { $_->classnum => $_->classname } @classes); sub layer_callback { my $classnum = shift or return ''; include('/elements/select-hardware_type.html', 'field' => 'classnum'.$classnum.'typenum', 'classnum' => $classnum, 'prefix' => $classnum, 'empty_label' => 'any', ); } %init>