From fc27db85a34cd850c1357d5f498aaf9a8f51cb8f Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 30 Oct 2021 05:07:23 -0400 Subject: [PATCH] completed more of the report system --- html/MCP/reports/data/index.php | 4 +- html/MCP/reports/view.php | 67 +++++++++++++++++++++++++-------- 2 files changed, 54 insertions(+), 17 deletions(-) diff --git a/html/MCP/reports/data/index.php b/html/MCP/reports/data/index.php index 5517df8..dc4c5dc 100644 --- a/html/MCP/reports/data/index.php +++ b/html/MCP/reports/data/index.php @@ -35,13 +35,13 @@ if ($validXML) { "Description" => $reportdescription ); - //die(json_encode($jsonData)); - foreach($chats as $chat) { $userid = (int)$chat['userID']; + $username = (string)getUsername($userid); $userchat = (string)$chat; $chatData = array( + "username" => $username, "userid" => $userid, "chat" => $userchat ); diff --git a/html/MCP/reports/view.php b/html/MCP/reports/view.php index 9f17356..34d5bc3 100644 --- a/html/MCP/reports/view.php +++ b/html/MCP/reports/view.php @@ -1,6 +1,9 @@ Report Data @@ -10,22 +13,17 @@ $body = <<
-
Reporter ID:
-
Place ID:
-
Job ID: ""
+ +
+
+

-
Abuser ID:
-
Report Reason: ""
-
Description: ""
+
+
+

Chat Log:
-
- -
-
-
- -
+
@@ -36,11 +34,50 @@ $body = << +
+
+
+
Username: {username}
+
+
+

"{chat}"

+
+
+
+
+
+
`; + + $("#message-container").html(parseHtml(html, 1000, jsonData, "No logged chats")); + }); +} + +function closeReport() +{ + alert("will close"); +} + +populateReport(); EOT; pageHandler(); -$ph->pageTitle("Chat Logs"); +$ph->pageTitle("Report"); $ph->body = $body; $ph->output(); \ No newline at end of file