diff options
author | Ian Gilfillan <ian@greenman.co.za> | 2016-07-31 13:52:46 +0000 |
---|---|---|
committer | Ian Gilfillan <ian@greenman.co.za> | 2016-07-31 13:52:46 +0000 |
commit | 78d649395a72e8ac1e07d8ae751890a674067ca9 (patch) | |
tree | 751849838f4f950e965229dc74de118f91f38af8 /h-source/Application/Include | |
parent | ae9775b52ffadec19f6ebb5a9fc8d858953180da (diff) |
Total and translate statistics
Diffstat (limited to 'h-source/Application/Include')
-rw-r--r-- | h-source/Application/Include/myFunctions.php | 55 |
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; +} |