PHP-databaskonstruktion

Log | Files | Refs

commit 4a0b21dc1aa47721d4d58b06848bcf4aba7f6cfb
parent 759c1e7c3e3c3d207ad1631b1203cfad04a0be4f
Author: William Lindholm <william_lindholm@outlook.com>
Date:   Sun,  1 Oct 2023 17:39:46 +0000

Added ability to remove agent from database

Diffstat:
Mindex.php | 11+++++++++++
Mutils/logs.txt | 1+
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/index.php b/index.php @@ -5,6 +5,17 @@ $pageContent = ''; + $pageContent .= "<h3>Remove agent</h3>"; + $pageContent .= '<div class="mt-3 mb-3">'; + $pageContent .= ' <form class="form-inline" method="GET" action="delete.php">'; + $pageContent .= ' <input type="hidden" name="table" value="Agent">'; + $pageContent .= ' <div class="form-group">'; + $pageContent .= ' <input type="text" class="form-control" id="CodeName" name="CodeName" placeholder="Agent codename" value="' . htmlspecialchars($_GET['CodeName'] ?? '') . '">'; + $pageContent .= ' </div>'; + $pageContent .= ' <button style="margin-left:0.5em;" type="submit" class="btn btn-danger">Remove Agent</button>'; + $pageContent .= ' </form>'; + $pageContent .= '</div><hr>'; + $pageContent .= "<h3>FieldAgents</h3>" . tableFactory::createTable("FieldAgents"); $attributeModalBuilder = (new ModalBuilder()) diff --git a/utils/logs.txt b/utils/logs.txt @@ -2724,3 +2724,4 @@ 2023-10-01 14:42:09 - FROM MODALBUILDER: posthandler intercepting messages with operationType: UPDATE 2023-10-01 14:42:11 - FROM MODALBUILDER: posthandler intercepting messages with operationType: INSERT 2023-10-01 14:42:18 - FROM MODALBUILDER: posthandler intercepting messages with operationType: INSERT +2023-10-01 14:55:51 - Inserting into: Agent