if($c->param("searchTerm")) {
while ($row = $q->fetchrow_hashref) {
my $bgc = ($i % 2 == 0) ? 'background:#DDD;' : '';
$results .= qq!
| $row->{SerialNumber} |
$row->{AssetTag} |
$row->{AssetType} |
$row->{Branch} |
$row->{Status} |
$row->{Comments} |
|
!;
$i++;
}
}
} else {
$results .= "No results matched your asset query.";
}