From b4168c20e1c32679431b2da1a488ae1e67833a63 Mon Sep 17 00:00:00 2001 From: The009 Date: Sun, 14 Oct 2018 21:43:33 -0400 Subject: [PATCH] Ajax Conversion Remove Time Stamp Requirment Change Web GUI To All Ajax Calls --- index.php | 63 ++++++++++++++++++++++++++++++++----------------------- send.php | 37 ++------------------------------ 2 files changed, 39 insertions(+), 61 deletions(-) diff --git a/index.php b/index.php index 524f94a..e75c8a6 100644 --- a/index.php +++ b/index.php @@ -34,37 +34,48 @@ - + - - - + + function SingleSend( givenIp, givenPort, reqAction, devTyp){ + var ip = givenIp; + var port = givenPort; + var action = reqAction; + var deviceType = devTyp; + return $.ajax({ + url: 'send.php', + type: 'get', + data: { ip: ip, port: port, action: action, deviceType: deviceType }, + }); + }; + + function GroupSend( groupName, reqAction){ + var group = groupName; + var action = reqAction; + return $.ajax({ + url: 'send.php', + type: 'get', + data: { group: group, action: action}, + }); + }; + + @@ -95,8 +106,8 @@ function displayDeviceList($csv){

@@ -107,7 +118,7 @@ function displayDeviceList($csv){ foreach ($unique as $key2 => $uniqueGroupIDs){ if($uniqueGroupIDs != ""){ echo << +
@@ -123,18 +134,18 @@ function displayDeviceList($csv){

EOD; - } +} } foreach($csv as $i => $item) { echo << +
@@ -142,8 +153,8 @@ function displayDeviceList($csv){