aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--h-source/Application/Include/languages.php19
-rw-r--r--h-source/Application/Views/Search/lspci_results.php4
-rwxr-xr-xh-source/Public/Css/website.css16
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 @@
<?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
diff --git a/h-source/Public/Css/website.css b/h-source/Public/Css/website.css
index 142be45..8f15343 100755
--- a/h-source/Public/Css/website.css
+++ b/h-source/Public/Css/website.css
@@ -1564,4 +1564,20 @@ td.text_item_date
background:#B7F18C;
font-weight:bold;
/* border: 1px solid #CECECE; */
+}
+
+.lspci_item_found
+{
+ margin:10px 5px;
+ background: #C7DAEF;
+ padding:8px;
+}
+.lspci_item_found_compat
+{
+ padding-left:37px;
+}
+
+.search_result_model_name
+{
+ padding-left:10px;
} \ No newline at end of file