';
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] .= '
';
+ $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/zoom.png',
- true,
- [
- 'title' => __('Show'),
- 'class' => 'invert_filter',
- ]
- ).'';
+ if ($total_profile == 0 && count($user_profiles) >= 5) {
+ $data[4] .= '
'.html_print_image(
+ 'images/zoom.png',
+ true,
+ [
+ 'title' => __('Show profiles'),
+ 'class' => 'invert_filter',
+ ]
+ ).'';
- $data[4] .= html_print_input_hidden(
- 'show_groups_'.$row['id_usuario'],
- -1,
- true
- );
- }
-
- $data[4] .= '
';
- $data[4] .= '
';
+ $data[4] .= html_print_input_hidden(
+ 'show_groups_'.$row['id_usuario'],
+ -1,
+ true
+ );
}
+ $data[4] .= '
';
+ $data[4] .= '
';
+
$total_profile++;
}
@@ -754,6 +752,8 @@ foreach ($info as $user_id => $user_info) {
}
$data[4] .= '
';
} else {
$data[4] .= __('The user doesn\'t have any assigned profile/group');
}
@@ -946,14 +946,13 @@ enterprise_hook('close_meta_frame');
}
});
$(`#hidden-show_groups_${id_user}`).val('1');
+ $(`#profiles_${id_user}`).show();
} else if ($(`#hidden-show_groups_${id_user}`).val() === '1') {
$(`#hidden-show_groups_${id_user}`).val('0');
- $(`div[id^=left_${id_user}_]`).hide();
- $(`div[id^=right_${id_user}_]`).hide();
+ $(`#profiles_${id_user}`).hide();
} else {
$(`#hidden-show_groups_${id_user}`).val('1');
- $(`div[id^=left_${id_user}_]`).show();
- $(`div[id^=right_${id_user}_]`).show();
+ $(`#profiles_${id_user}`).show();
}
}