From 1cf99818c67377227c2cac2a2c020d64389605e8 Mon Sep 17 00:00:00 2001 From: Spi Date: Tue, 21 Nov 2023 17:32:48 +0100 Subject: [PATCH] Devices OLT Kunden Update Bei OLT Kunden wo Seriennummern gefunden es aber keine Kundenummer gibt, wird nun die Adresse angezeigt. PopRacks Device Verlinkung --- Layout/default/Device/Detail.php | 9 ++--- Layout/default/Pop/Detail.php | 5 +-- application/Device/DeviceModel.php | 35 ++++--------------- application/Poprack/PoprackController.php | 5 +-- .../Poprackmodule/PoprackmoduleModel.php | 2 +- 5 files changed, 19 insertions(+), 37 deletions(-) diff --git a/Layout/default/Device/Detail.php b/Layout/default/Device/Detail.php index cc33a3dfe..6bf9ed054 100644 --- a/Layout/default/Device/Detail.php +++ b/Layout/default/Device/Detail.php @@ -335,8 +335,8 @@ if ($devices->power != "0.0") {
'createconfig', 'ip' => $devices->ip, 'id' => $devices->id]) ?>" - +
power != "0.0") { allonts++; if (typeof customers[ont['serial']] !== "undefined") { customerid = customers[ont['serial']]['customer_number']; - if (customers[ont['serial']]['lastname'] != "") { + if (customers[ont['serial']]['lastname'] != "" && customers[ont['serial']]['lastname'] != null) { customername = customers[ont['serial']]['lastname'] + " " + customers[ont['serial']]['firstname']; + } else if (customers[ont['serial']]['lastname'] == null) { + customername = customers[ont['serial']]['street'] + ", " + customers[ont['serial']]['zip'] + " " + customers[ont['serial']]['city'] } else { customername = "" + customers[ont['serial']]['company'] + " (C)"; } @@ -736,7 +738,6 @@ if ($devices->power != "0.0") {
` + ont['serial'] + `
`); - }); $('#olt-splitter').append('' + allonts + 'show' + online + '/' + offline + ''); } else { diff --git a/Layout/default/Pop/Detail.php b/Layout/default/Pop/Detail.php index 809544a5e..270410f99 100644 --- a/Layout/default/Pop/Detail.php +++ b/Layout/default/Pop/Detail.php @@ -498,6 +498,7 @@ if (!empty(trim($pops->vlan_ipv6))) $extTextspan = ""; foreach ($module['slots'] as $slots) { $extText = ""; + $title=$slots['modulname']; if ($slots['type'] == '0') { $color = '#9fff6e'; $colorclass = "rack-color-lwl"; @@ -506,6 +507,7 @@ if (!empty(trim($pops->vlan_ipv6))) $extTextspan = "" . $extText . ""; } } else if ($slots['type'] == '1') { + $slots['modulname']=' $slots['device_id']]).'">'.$slots['modulname'].''; ?>