aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/myFunctions.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Include/myFunctions.php')
-rw-r--r--h-source/Application/Include/myFunctions.php55
1 files changed, 55 insertions, 0 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php
index c4a220b..b121424 100644
--- a/h-source/Application/Include/myFunctions.php
+++ b/h-source/Application/Include/myFunctions.php
@@ -485,3 +485,58 @@ function getTranslationFunction($fieldName)
return "gtext";
}
+
+//Map db type names to display names
+function displayName($name) {
+ switch ($name) {
+ case '3G-card':
+ $name = '3G cards';
+ break;
+ case 'bluetooth':
+ $name = 'Bluetooth';
+ break;
+ case 'ethernet-card':
+ $name = 'Ethernet cards';
+ break;
+ case 'fingerprint-reader':
+ $name = 'Fingerprint readers';
+ break;
+ case 'host-controller':
+ $name = 'Host Controllers';
+ break;
+ case 'modem':
+ $name = 'Modems';
+ break;
+ case 'notebook':
+ $name = 'Notebooks';
+ break;
+ case 'printer':
+ $name = 'Printers';
+ break;
+ case 'RAID-adapter';
+ $name = 'RAID adapters';
+ break;
+ case 'scanner':
+ $name = 'Scanners';
+ break;
+ case 'sd-card-reader':
+ $name = 'SD card readers';
+ break;
+ case 'soundcard':
+ $name = 'Sound cards';
+ break;
+ case 'videocard':
+ $name = 'Video cards';
+ break;
+ case 'webcam':
+ $name = 'Webcams';
+ break;
+ case 'wifi':
+ $name = 'Wifi cards';
+ break;
+ case 'acquisition-card':
+ $name = 'Acquisition cards';
+ break;
+ }
+ return $name;
+}