From 662e663843729d20aef25743f1d3f58adf6865b5 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Mon, 31 Jan 2011 22:58:19 +0000 Subject: improved search page --- h-source/Application/Include/languages.php | 19 +++++++++++++++++++ h-source/Application/Views/Search/lspci_results.php | 4 ++-- h-source/Public/Css/website.css | 16 ++++++++++++++++ 3 files changed, 37 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 @@
- ">back + ">
- + ".$row['hardware']['type']." - ".$row['hardware']['model'];?>