diff --git a/Layout/default/Device/Detail.php b/Layout/default/Device/Detail.php index 570010e7b..cc33a3dfe 100644 --- a/Layout/default/Device/Detail.php +++ b/Layout/default/Device/Detail.php @@ -334,7 +334,7 @@ if ($devices->power != "0.0") {
+ href=" 'createconfig', 'ip' => $devices->ip, 'id' => $devices->id]) ?>"
@@ -356,11 +356,12 @@ if ($devices->power != "0.0") { $configfileCompressed = trim($config->config_compressed); $configid = $config->id; if ($configfileCleartext && $configfileCompressed) : - $configLinks = ' - TXT / + + $configLinks = ' 'getconfig', 'id' => $configid, 'format' => 'txt', 'filename' => $configfileCleartext]) . '"> + TXT / 'getconfig', 'id' => $configid, 'format' => 'xml', 'filename' => $configfileCompressed]) . '"> XML'; elseif ($configfileCleartext || $configfileCompressed) : - $configLinks = ' + $configLinks = ' 'getconfig', 'id' => $configid, 'format' => 'txt', 'filename' => $configfileCleartext . $configfileCompressed]) . '"> TXT'; endif; @@ -674,7 +675,7 @@ if ($devices->power != "0.0") { $('#olt-info-button').remove(); - $.getJSON("https:///Device/api?do=getoltinfo&ip=ip; ?>", {}) + $.getJSON(" 'getoltinfo', 'ip' => $devices->ip]) ?>", {}) .done(function (data) { if (data.success == false) { $('#olt-body').text('Keine OLT/ONT Daten verfügbar'); @@ -867,7 +868,8 @@ if ($devices->power != "0.0") { $("body").on("blur", "#change-splitter-ports", function () { var portid = $(this).closest('span').data('portid'); - $.getJSON("https:///Device/api?do=changeoltsplitter&id=id; ?>&portid=" + portid + "&ports=" + $(this).val(), {}) + + $.getJSON(" 'changeoltsplitter', 'id' => $devices->id]) ?>&portid=" + portid + "&ports=" + $(this).val(), {}) .done(function (data) { }); @@ -919,7 +921,7 @@ if ($devices->power != "0.0") { `); - $.getJSON("https:///Device/api?do=getoltinfo&ip=ip; ?>&portid=" + thisspan.data('portid'), {}) + $.getJSON(" 'getoltinfo', 'ip' => $devices->ip]) ?>&portid=" + thisspan.data('portid'), {}) .done(function (data) { if (typeof data.success === 'undefined') { console.log('logged out'); @@ -963,7 +965,7 @@ if ($devices->power != "0.0") { $('.sp-splitter-count-show').removeClass('noclick'); }).done(function (data) { - $.getJSON("https:///Device/api?do=getoltinfo&ip=ip; ?>&portid=" + thisspan.data('portid') + "&adv=ext", {}).done(function (data) { + $.getJSON(" 'getoltinfo', 'ip' => $devices->ip]) ?>&portid=" + thisspan.data('portid') + "&adv=ext", {}).done(function (data) { if (typeof data.success === 'undefined') { console.log('logged out'); // window.location.href = "/"; @@ -1010,7 +1012,8 @@ if ($devices->power != "0.0") { var thisspan = $(this).closest('table'); $('.ont-refresh-span').html(''); $('.sp-splitter-count-show').addClass('noclick'); - $.getJSON("https:///Device/api?do=getoltinfo&ip=ip; ?>&portid=" + thisspan.data('portid') + "&adv=ext", {}).done(function (data) { + + $.getJSON(" 'getoltinfo', 'ip' => $devices->ip]) ?>&ip=ip; ?>&portid=" + thisspan.data('portid') + "&adv=ext", {}).done(function (data) { if (thisspan.data('portid') == $('#ont-table').data('portid')) { @@ -1085,7 +1088,7 @@ if ($devices->power != "0.0") { $('#ont-detail-mac-refresh').data('ontid', button.data('ontid')); $('#ont-detail-mac-refresh').data('snr', button.data('snr')); - $.getJSON("https:///Device/api?do=getontinfo&ip=ip; ?>&portid=" + button.data('portid') + "&ont=" + button.data('port') + '-' + button.data('ontid'), {}).done(function (data) { + $.getJSON(" 'getontinfo', 'ip' => $devices->ip]) ?>&portid=" + button.data('portid') + "&ont=" + button.data('port') + '-' + button.data('ontid'), {}).done(function (data) { $.each(data.data.linestat, function (o, ont) { if (o == "lastofflinecausetitle") { $('#ont-detail-lastofflinecause').attr('data-original-title', ont); @@ -1138,7 +1141,7 @@ if ($devices->power != "0.0") { var button = $('#ont-detail-mac-refresh'); $('#ont-macadresses').empty(); $('#ont-macadresses-nomac').remove(); - $.getJSON("https:///Device/api?do=getontinfomac&ip=ip; ?>&portid=" + button.data('portid') + "&ont=" + button.data('port') + '-' + button.data('ontid'), {}).done(function (data) { + $.getJSON(" 'getontinfomac', 'ip' => $devices->ip]) ?>&portid=" + button.data('portid') + "&ont=" + button.data('port') + '-' + button.data('ontid'), {}).done(function (data) { if (typeof data.data !== 'undefined' && data.data.length > 0) { $('#ont-macadresses').html(` @@ -1194,7 +1197,7 @@ if ($devices->power != "0.0") { $('#ont-detail-refresh').data('portid', button.data('portid')); $('#ont-detail-refresh').data('port', button.data('port')); $('#ont-detail-refresh').data('ontid', button.data('ontid')); - $.getJSON("https:///Device/api?do=getontinfo&ip=ip; ?>&portid=" + button.data('portid') + "&ont=" + button.data('port') + '-' + button.data('ontid'), {}).done(function (data) { + $.getJSON(" 'getontinfo', 'ip' => $devices->ip]) ?>&portid=" + button.data('portid') + "&ont=" + button.data('port') + '-' + button.data('ontid'), {}).done(function (data) { $.each(data.data.linestat, function (o, ont) { if (o == "lastofflinecausetitle") { $('#ont-detail-lastofflinecause').attr('data-original-title', ont);