aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Desktop/Search
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views/Desktop/Search')
-rw-r--r--h-source/Application/Views/Desktop/Search/lspci_results.php23
1 files changed, 2 insertions, 21 deletions
diff --git a/h-source/Application/Views/Desktop/Search/lspci_results.php b/h-source/Application/Views/Desktop/Search/lspci_results.php
index b74867b..970789b 100644
--- a/h-source/Application/Views/Desktop/Search/lspci_results.php
+++ b/h-source/Application/Views/Desktop/Search/lspci_results.php
@@ -53,27 +53,7 @@
</div>
<div class="lspci_item_found_compat">
<?php
- switch ($row['hardware']['type'])
- {
- case 'wifi':
- echo gtext("does it work with free software?"). " <b>".gtext($row['hardware']['wifi_works'])."</b>";
- break;
- case 'videocard':
- echo gtext("does it work with free software?"). " <b>".gtext(Videocard::$videoReverse[$row['hardware']['video_card_works']])."</b>";
- break;
- case 'soundcard':
- echo gtext("does it work with free software?"). " <b>".gtext($row['hardware']['sound_card_works'])."</b>";
- break;
- case 'ethernet-card':
- echo gtext("does it work with free software?"). " <b>".gtext($row['hardware']['ethernet_card_works'])."</b>";
- break;
- case 'acquisition-card':
- echo gtext("does it work with free software?"). " <b>".gtext($row['hardware']['compatibility'])."</b>";
- break;
- case 'sd-card-reader':
- echo gtext("does it work with free software?"). " <b>".gtext($row['hardware']['sd_card_works'])."</b>";
- break;
- }
+ echo gtext("does it work with free software?"). " <b>".gtext($row['hardware'][Hardware::getWorksFieldFromType($row['hardware']['type'])])."</b>";
?>
</div>
</div>
@@ -94,6 +74,7 @@
<img align="top" class="catalogue_item_icon" src="<?php echo Hardware::getIconFromClass($device['classId']);?>"> <span class="search_result_model_name"><?php echo "<b>".Hardware::getTypeFromClass($device['classId'])."</b> - ".$device['deviceName'];?></span>
<div class="lspci_item_found_compat">
<ul>
+ <li><b><?php echo gtext("device type");?>:</b><?php echo $device['className'];?></li>
<li><b><?php echo gtext("vendor");?>:</b><?php echo $device['vendorName'];?></li>
<li><b><?php echo gtext("VendorID:ProductID code of the device");?></b>: <?php echo $device['vendorId'].":".$device['deviceId'];?></li>
</ul>