[horde] [patch] sort user for individual user select on admin/perm
=?big5?b?sWmofaTl?=
david at tmv.gov.tw
Tue Jun 15 19:15:02 PDT 2004
Quoting =B1i=A8}=A4=E5 <david at tmv.gov.tw>:
Opps,one thing forgot that Admin/Group also patch required to sort user lis=
t:
--- ./templates/admin/groups/edit.inc.org Wed Jun 16 10:06:37 2004
+++ ./templates/admin/groups/edit.inc Wed Jun 16 10:05:57 2004
@@ -43,7 +43,8 @@
<?php if ($auth->hasCapability('list')): ?>
<td class=3D"light">
<select name=3D"new_user[]" multiple=3D"multiple">
- <?php foreach ($auth->listUsers() as $user) { if (!in_array($user,
$users)>
+ <?php $user_list =3D $auth->listUsers(); sort ($user_list) ?>
+ <?php foreach ($user_list as $user) { if (!in_array($user, $users)) { =
?>
<option value=3D"<?php echo $user ?>"><?php echo $user ?></option>
<?php } } ?>
</select>
> Hi there:
> To easy select user from hundred users list ,i think sort list is better.
>
> David Chang
>
>
>
>
>
> --- edit.php.org Wed Jun 16 09:21:19 2004
> +++ edit.php Wed Jun 16 09:21:37 2004
> @@ -145,6 +145,7 @@
> * adding new users to the permissions matrix. */
> $new_users =3D array();
> $user_list =3D $auth->listUsers();
> + sort($user_list);
> foreach ($user_list as $user) {
> if (!isset($perm_val[$user])) {
> $new_users[$user] =3D $user;
More information about the horde
mailing list