1 <% include('/elements/header.html', $title ) %>
3 <FORM ACTION="svc_hardware.cgi" METHOD="GET">
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7 <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1">Search options</FONT></TH>
11 <% include('/elements/selectlayers.html',
12 'field' => 'classnum',
14 'options' => \@classnums,
15 'labels' => \%class_labels,
16 'layer_callback' => \&layer_callback,
17 'html_between' => '</TD><TD>',
21 <% include('/elements/tr-input-text.html',
23 'label' => 'Serial number',
25 <% include('/elements/tr-input-text.html',
27 'label' => 'Hardware address',
29 <% include('/elements/tr-input-text.html',
31 'label' => 'IP address',
33 <% include('/elements/tr-input-text.html',
34 'field' => 'smartcard',
35 'label' => 'Smartcard #',
37 <% include('/elements/tr-select-table.html',
38 'field' => 'statusnum',
39 'label' => 'Service status',
40 'table' => 'hardware_status',
41 'name_col' => 'label',
42 'empty_label' => 'any',
44 'extra_sql' => ' WHERE hardware_status.disabled IS NULL
45 OR (SELECT COUNT(*) FROM svc_hardware
46 WHERE svc_hardware.statusnum = hardware_status.statusnum) > 0',
52 <INPUT TYPE="submit" VALUE="Search">
56 <% include('/elements/footer.html') %>
60 unless $FS::CurrentUser::CurrentUser->access_right('List packages'); #?
62 my $title = 'Hardware Service Report';
64 my @classes = qsearch('hardware_class', {});
65 my @classnums = ('', map { $_->classnum } @classes);
66 my %class_labels = ('' => 'Select hardware class',
67 map { $_->classnum => $_->classname } @classes);
70 my $classnum = shift or return '';
71 include('/elements/select-hardware_type.html',
72 'field' => 'classnum'.$classnum.'typenum',
73 'classnum' => $classnum,
74 'empty_label' => 'any',