From 7c7c36a5e6e114bc94bad28390aad41636a06dae Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 29 May 2023 09:18:32 +0200 Subject: [PATCH] user comment okay --- core/module/user/user.php | 2 +- core/module/user/view/add/add.js.php | 2 ++ core/module/user/view/add/add.php | 12 ++++++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index ecb775e6..42f66f75 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -164,7 +164,7 @@ class user extends common } foreach ($profilData as $key => $value) { self::$userProfils[$profilId][$key] = $profilData[$key]['name']; - self::$userProfilsComments[$profilId][$key] = $profilData[$key]['comment']; + self::$userProfilsComments[$profilId][$key] = $profilData[$key]['name'] . ' : ' . $profilData[$key]['comment']; } } diff --git a/core/module/user/view/add/add.js.php b/core/module/user/view/add/add.js.php index 1634f7a9..371d0825 100644 --- a/core/module/user/view/add/add.js.php +++ b/core/module/user/view/add/add.js.php @@ -41,7 +41,9 @@ $("#userAddId").on("change keydown keyup", function(event) { */ $("#userAddGroup").on("change", function() { $(".userAddGroupProfil").hide(); + $(".userCommentProfil").hide(); $("#userAddGroupProfil" + $(this).val()).show(); + $("#userCommentProfil" + $(this).val()).show(); }).trigger("change"); diff --git a/core/module/user/view/add/add.php b/core/module/user/view/add/add.php index ad36a659..a5e1887b 100644 --- a/core/module/user/view/add/add.php +++ b/core/module/user/view/add/add.php @@ -109,21 +109,21 @@
-
+
implode("\n",$module::$userProfils[self::GROUP_MEMBER]) + "value" => implode("\n",$module::$userProfilsComments[self::GROUP_MEMBER]) ]); ?>
-
+
implode("\n",$module::$userProfils[self::GROUP_MODERATOR]) + "value" => implode("\n",$module::$userProfilsComments[self::GROUP_MODERATOR]) ]); ?>
-
+
implode("\n",$module::$userProfils[self::GROUP_ADMIN]) + "value" => implode("\n",$module::$userProfilsComments[self::GROUP_ADMIN]) ]); ?>