فهرست منبع

changed image for device types in device tree

Roman Dmitriev 2 سال پیش
والد
کامیت
cb347ea13b
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      html/admin/devices/index-tree.php

+ 4 - 4
html/admin/devices/index-tree.php

@@ -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'].'&nbsp'.$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 },';