diff options
Diffstat (limited to 'h-source/Application')
-rw-r--r-- | h-source/Application/Include/languages.php | 19 | ||||
-rw-r--r-- | h-source/Application/Views/Search/lspci_results.php | 4 |
2 files changed, 21 insertions, 2 deletions
diff --git a/h-source/Application/Include/languages.php b/h-source/Application/Include/languages.php index 831cdd4..0952da8 100644 --- a/h-source/Application/Include/languages.php +++ b/h-source/Application/Include/languages.php @@ -484,6 +484,25 @@ class MyStrings '3G-card' => 'threegcards', 'soundcard' => 'soundcards', ); + + public static $images = array( + 'notebook' => 'H2O/computer-laptop_22.png', + 'wifi' => 'H2O/network-wireless_22.png', + 'videocard' => 'Crystal/1282042976_hardware.png', + 'printer' => 'H2O/printer_22.png', + 'scanner' => 'H2O/scanner_22.png', + '3G-card' => 'Crystal/usb_22.png', + 'soundcard' => 'H2O/audio-card_22.png', + ); + + public static function getHardIcon($type) + { + if (array_key_exists($type,self::$images)) + { + return "http://".DOMAIN_NAME."/Public/Img/".self::$images[$type]; + } + return null; + } public static function getTypes() { diff --git a/h-source/Application/Views/Search/lspci_results.php b/h-source/Application/Views/Search/lspci_results.php index b460021..a23d505 100644 --- a/h-source/Application/Views/Search/lspci_results.php +++ b/h-source/Application/Views/Search/lspci_results.php @@ -35,14 +35,14 @@ <?php if (!$flag) { ?> <?php echo $notice;?> <div> - <a href="<?php echo $this->baseUrl."/search/form/$lang";?>">back</a> + <a href="<?php echo $this->baseUrl."/search/form/$lang";?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/back-60.png"></a> </div> <?php } ?> <?php foreach ($table as $row) { ?> <div class="lspci_item_found"> <div class="lspci_item_found_model"> - <?php echo $row['hardware']['model'];?> + <img align="top" class="catalogue_item_icon" src="<?php echo MyStrings::getHardIcon($row['hardware']['type']);?>"> <span class="search_result_model_name"><?php echo "<b>".$row['hardware']['type']."</b> - ".$row['hardware']['model'];?></span> </div> <div class="lspci_item_found_compat"> <?php |