From 86bfcbcd903b0783445ea7035baf7787e2d76752 Mon Sep 17 00:00:00 2001 From: Marcos Alconada Date: Wed, 12 Aug 2020 13:20:53 +0200 Subject: [PATCH] changes on user list --- pandora_console/godmode/users/user_list.php | 52 ++++++++++++++------- 1 file changed, 35 insertions(+), 17 deletions(-) diff --git a/pandora_console/godmode/users/user_list.php b/pandora_console/godmode/users/user_list.php index 9c9873a664..e0fe0d0871 100644 --- a/pandora_console/godmode/users/user_list.php +++ b/pandora_console/godmode/users/user_list.php @@ -511,34 +511,38 @@ foreach ($info as $user_id => $user_info) { $data[4] = ''; if ($user_profiles !== false) { - if (defined('METACONSOLE')) { - $data[4] .= "
"; - foreach ($user_profiles as $row) { + $total_profile = 0; + + $data[4] .= '
'; + foreach ($user_profiles as $row) { + if ($total_profile <= 5) { $data[4] .= "
"; $data[4] .= profile_get_name($row['id_perfil']); $data[4] .= ' /
'; $data[4] .= "
"; $data[4] .= groups_get_name($row['id_grupo'], true); $data[4] .= '
'; + + if ($total_profile == 0 && count($user_profiles) >= 5) { + $data[4] .= ' + '.html_print_image('images/input_zoom_gray.png', true, ['title' => __('Show')]).''; + } + $data[4] .= '
'; $data[4] .= '
'; + $data[4] .= '
'; + } else { + $data[4] .= "'; - } else { - $data[4] .= ""; - foreach ($user_profiles as $row) { - $data[4] .= ''; - $data[4] .= ''; - $data[4] .= ''; - } - - $data[4] .= '
'; - $data[4] .= profile_get_name($row['id_perfil']); - $data[4] .= ' / '; - $data[4] .= groups_get_name($row['id_grupo'], true); - $data[4] .= '
'; - } } else { $data[4] .= __('The user doesn\'t have any assigned profile/group'); } @@ -588,3 +592,17 @@ if ($config['admin_can_add_user'] !== false) { echo '
'; enterprise_hook('close_meta_frame'); + +echo '';