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 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'h-source/Application/Include') 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() { -- cgit v1.2.3