diff --git a/inc/config.class.php b/inc/config.class.php index c905cc9..40944a9 100644 --- a/inc/config.class.php +++ b/inc/config.class.php @@ -36,8 +36,19 @@ **/ class PluginTreeviewConfig extends CommonDBTM { - static $types = ['Computer', 'Monitor', 'NetworkEquipment', 'Peripheral', 'Phone', 'Printer', - 'Software']; + static $types = [ + 'Computer', + 'Monitor', + 'NetworkEquipment', + 'Peripheral', + 'Phone', + 'Printer', + 'Software', + 'Rack', + 'Enclosure', + 'PDU', + 'PassiveDCEquipment', + ]; /** * Display name of itemtype @@ -221,6 +232,18 @@ static function getPicbyType($type) { case 'Phone' : $pic = 'pics/phone.png'; break; + case 'Rack' : + $pic = 'pics/rack.png'; + break; + case 'PDU' : + $pic = 'pics/pdu.png'; + break; + case 'Enclosure' : + $pic = 'pics/enclosure.png'; + break; + case 'PassiveDCEquipment' : + $pic = 'pics/passivedcequipment.png'; + break; } //Like $PLUGIN_HOOKS['treeview']['PluginExampleExample'] = '../example/pics/mypic.png'; if (in_array($type, self::$types) && isPluginItemtype($type)) { @@ -540,4 +563,4 @@ function getNodesFromDb() { echo "d.openTo(" .$nodes[count($nodes)-1]. ");\n"; } } -} \ No newline at end of file +} diff --git a/pics/enclosure.png b/pics/enclosure.png new file mode 100755 index 0000000..6882c8e Binary files /dev/null and b/pics/enclosure.png differ diff --git a/pics/passivedcequipment.png b/pics/passivedcequipment.png new file mode 100755 index 0000000..d2ac368 Binary files /dev/null and b/pics/passivedcequipment.png differ diff --git a/pics/pdu.png b/pics/pdu.png new file mode 100755 index 0000000..37bc93e Binary files /dev/null and b/pics/pdu.png differ diff --git a/pics/rack.png b/pics/rack.png new file mode 100755 index 0000000..77c7249 Binary files /dev/null and b/pics/rack.png differ