From 1f794e2273d3e7d6c6d3730ed723121e0ad5ba33 Mon Sep 17 00:00:00 2001 From: e025532 Date: Thu, 17 Jul 2025 10:21:59 +0200 Subject: [PATCH] Add ActiveDirectory navigation and group management pages - Added new ActiveDirectory section in the navigation bar (`navbar.html`) with expandable options. - Implemented `GroupReview.php` for reviewing AD group details and tiering. - Implemented `GroupSearch.php` for searching and displaying AD group memberships with autocomplete functionality. - Fixed incorrect link in `index.php` pointing to `AD-Detail.php`. --- AD/GroupReview.php | 73 +++++++++++++++++++++++++++++++ AD/GroupSearch.php | 105 +++++++++++++++++++++++++++++++++++++++++++++ index.php | 2 +- navbar.html | 10 +++++ 4 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 AD/GroupReview.php create mode 100644 AD/GroupSearch.php diff --git a/AD/GroupReview.php b/AD/GroupReview.php new file mode 100644 index 0000000..e6955fd --- /dev/null +++ b/AD/GroupReview.php @@ -0,0 +1,73 @@ + + + + + + + + + + Web Infra Reports IT + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ +
+ +

Group Review

+ + +
+ ".$team['equipe'].""; + $groups = Invoke_Infra("SELECT * FROM Group_Review_SOX WHERE equipe = '".$team['equipe']."' order by groupe"); + foreach($groups as $group) { + echo "

".$group['Groupe']."

"; + echo "

".$group['Tiering']."

"; + echo " - ".str_replace("),",")
- ",$group['Members']); + echo "

"; + } + echo "
"; + } + ?> +
+
+
+
+ +
+
+
+ + + + diff --git a/AD/GroupSearch.php b/AD/GroupSearch.php new file mode 100644 index 0000000..e2f4a4f --- /dev/null +++ b/AD/GroupSearch.php @@ -0,0 +1,105 @@ + + + + + + + + + + Web Infra Reports IT + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ +
+ +

Group Membership

+ + +
+ +
+
+
+ +
+
+
+ + +
+
+ +
+
+
+ + ".$_POST['group-search'].""; + $members = Invoke_Infra("SELECT * FROM AD_GroupMembership WHERE grp = '".$_POST['group-search']."'"); + echo "

".$members[0]['descr']."

"; + echo " - ".str_replace(" | ","
- ",$members[0]['members']); + } + ?> + + +
+ +
+
+
+ + + + diff --git a/index.php b/index.php index 76ba22b..8134a69 100644 --- a/index.php +++ b/index.php @@ -79,7 +79,7 @@ $result = $conn->query("SELECT count(*) as nbADinactive FROM adcomputers WHERE enabled = 'False'"); $nbADinactive = mysqli_fetch_array($result)['nbADinactive']; ?> -

Devices ( inactifs)

+

Devices ( inactifs)

diff --git a/navbar.html b/navbar.html index ff97474..b4ff917 100644 --- a/navbar.html +++ b/navbar.html @@ -102,6 +102,16 @@ +
  • + + ActiveDirectory + +