From 3efeb8b62b067af1cec804ac659b18aa72d4b4a5 Mon Sep 17 00:00:00 2001 From: ak703 Date: Mon, 3 Jan 2005 10:41:07 +0000 Subject: [PATCH] implemented new style of multiple select (recommended by Mauro Donadello) Items can now be selected by checkboxes instead of keeping CTRL key pressed, which makes life easier for many users. --- admin/inc/class.uiaccounts.inc.php | 47 ++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/admin/inc/class.uiaccounts.inc.php b/admin/inc/class.uiaccounts.inc.php index 8e697abac3..ad866ad353 100755 --- a/admin/inc/class.uiaccounts.inc.php +++ b/admin/inc/class.uiaccounts.inc.php @@ -1199,15 +1199,31 @@ reset($allGroups); while (list($key,$value) = each($allGroups)) { - $groups_select .= ''."\n"; } @@ -1262,6 +1278,23 @@ $appRightsOutput .= sprintf('%s%s',$this->nextmatchs->alternate_row_color(), $part[0], $part[1]); } +// new version for multiple select from Mauro Donadello - NDEE + $var = Array( + 'groups_select' + => '
' . "\n", + 'primary_group_select' + => ''."\n".$groups_select.''."\n", @@ -1272,6 +1305,8 @@ 'lang_app' => lang('application'), 'lang_acl' => lang('enabled').' / '.lang('ACL'), ); +*/ + $t->set_var($var); // create the menu on the left, if needed