diff --git a/front/devices.php b/front/devices.php index b51aa1a8..ff4ab940 100755 --- a/front/devices.php +++ b/front/devices.php @@ -193,8 +193,8 @@ var tableRows = 10; var tableOrder = [[3,'desc'], [0,'asc']]; - var columnsStr = '[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]'; - var tableColumnOrder = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] ; + var columnsStr = '[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]'; + var tableColumnOrder = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17] ; var tableColumnVisible = tableColumnOrder; // Read parameters & Initialize components @@ -230,7 +230,9 @@ function main () { '', '', '', - '' + '', + '', + '' ]; html = ''; @@ -331,8 +333,8 @@ function initializeDatatable () { 'columnDefs' : [ {visible: false, targets: tableColumnHide }, - {className: 'text-center', targets: [mapIndx(3), mapIndx(4), mapIndx(9), mapIndx(10)] }, - {width: '80px', targets: [mapIndx(6), mapIndx(7)] }, + {className: 'text-center', targets: [mapIndx(3), mapIndx(4), mapIndx(9), mapIndx(10), mapIndx(15)] }, + {width: '80px', targets: [mapIndx(6), mapIndx(7), mapIndx(15)] }, {width: '30px', targets: [mapIndx(10), mapIndx(13)] }, {orderData: [mapIndx(12)], targets: mapIndx(8) }, @@ -342,6 +344,17 @@ function initializeDatatable () { $(td).html (''+ cellData +''); } }, + // Connected Devices + // + // '.$idParentMac.' + // + {targets: [mapIndx(15)], + 'createdCell': function (td, cellData, rowData, row, col) { + $(td).html (''+ cellData +''); + // $(td).find("b").attr('onclick', "setCache('activeNetworkTab','"+rowData[mapIndx(11)]+"_id')" ); + + } }, + // Icon {targets: [mapIndx(3)], 'createdCell': function (td, cellData, rowData, row, col) { diff --git a/front/js/pialert_common.js b/front/js/pialert_common.js index 39d4a8d6..2226e9fc 100755 --- a/front/js/pialert_common.js +++ b/front/js/pialert_common.js @@ -10,7 +10,7 @@ // ----------------------------------------------------------------------------- var timerRefreshData = '' var modalCallbackFunction = ''; -var emptyArr = ['undefined', "", undefined, null]; +var emptyArr = ['undefined', "", undefined, null, 'null']; // urlParams = new Proxy(new URLSearchParams(window.location.search), { // get: (searchParams, prop) => searchParams.get(prop.toString()), @@ -290,6 +290,18 @@ function settingsChanged() }; } +// ----------------------------------------------------------------------------- +function getQueryString(key){ + params = new Proxy(new URLSearchParams(window.location.search), { + get: (searchParams, prop) => searchParams.get(prop), + }); + + tmp = params[key] + + result = emptyArr.includes(tmp) ? "" : tmp; + + return result +} // ----------------------------------------------------------------------------- function translateHTMLcodes (text) { if (text == null || emptyArr.includes(text)) { diff --git a/front/maintenance.php b/front/maintenance.php index e45b1ec8..a5193bb0 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -271,6 +271,8 @@ if (isset($_POST['submit']) && submit && isset($_POST['skinselector_set'])) { + + @@ -761,8 +763,8 @@ function scrollDown() // -------------------------------------------------------- // Manage displayed columns // -------------------------------------------------------- -colDefaultOrder = ['0','1','2','3','4','5','6','7','8','9','10','12','13','14','15']; -colDefaultOrderTxt = '[0,1,2,3,4,5,6,7,8,9,10,12,13,14,15]'; +colDefaultOrder = ['0','1','2','3','4','5','6','7','8','9','10','12','13','14','15','16','17']; +colDefaultOrderTxt = '[0,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17]'; function saveSelectedColumns () { diff --git a/front/network.php b/front/network.php index a128dbc8..ee850b85 100755 --- a/front/network.php +++ b/front/network.php @@ -127,7 +127,7 @@ '.lang('Network_Parent').'