|
|
@@ -23,9 +23,9 @@ foreach ($hash as $device) {
|
|
|
if (!isset($device['parent_id'])) { continue; }
|
|
|
if ($device['parent_id'] !== $device_id) { continue; }
|
|
|
$dev_icon = '/img/server.png';
|
|
|
- if ($device['type'] == 0) { $dev_icon = '/img/gateway.png'; }
|
|
|
+ if ($device['type'] == 0) { $dev_icon = '/img/router.png'; }
|
|
|
if ($device['type'] == 1) { $dev_icon = '/img/switch16.png'; }
|
|
|
- if ($device['type'] == 2) { $dev_icon = '/img/router.png'; }
|
|
|
+ if ($device['type'] == 2) { $dev_icon = '/img/gateway.png'; }
|
|
|
if ($device['type'] == 3) { $dev_icon = '/img/server.png'; }
|
|
|
if ($device['type'] == 4) { $dev_icon = '/img/ap.png'; }
|
|
|
print '{ "text" : "'; print $device['parent_port'].'->'.$device['uplink'].' '.$device['name']; print '", "icon" : "'.$dev_icon.'", "id" : "'.$device['id'].'","state" : { "opened" : true },';
|
|
|
@@ -67,9 +67,9 @@ print "\n";
|
|
|
foreach ($dev_hash as $device) {
|
|
|
if (isset($device['parent_id'])) { continue; }
|
|
|
$dev_icon = '/img/server.png';
|
|
|
-if ($device['type'] == 0) { $dev_icon = '/img/gateway.png'; }
|
|
|
+if ($device['type'] == 0) { $dev_icon = '/img/router.png'; }
|
|
|
if ($device['type'] == 1) { $dev_icon = '/img/switch16.png'; }
|
|
|
-if ($device['type'] == 2) { $dev_icon = '/img/router.png'; }
|
|
|
+if ($device['type'] == 2) { $dev_icon = '/img/gateway.png'; }
|
|
|
if ($device['type'] == 3) { $dev_icon = '/img/server.png'; }
|
|
|
if ($device['type'] == 4) { $dev_icon = '/img/ap.png'; }
|
|
|
print '{ "text" : "'; print_url($device['name'],'/admin/devices/editdevice.php?id='.$device['id']); print '","icon" : "'.$dev_icon.'", "id" : "'.$device['id'].'" ,"state" : { "opened" : true },';
|