aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Desktop/Search
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2012-08-02 00:44:36 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2012-08-02 00:44:36 +0000
commitea0f13c140f6444d4b0da9e38e1c27c9004b6184 (patch)
treec95d58a3a74f5c287040042f030dba6dd34c4012 /h-source/Application/Views/Desktop/Search
parent4ee5f0d9dd40b3baa2e27889a579dc7852cbfd6c (diff)
dropped pcmcia controller, added generic host controller with subtype
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>