summaryrefslogtreecommitdiffstats
path: root/frontends/php/users.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-03-03 17:01:05 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-03-03 17:01:05 +0000
commitbf6ba8ea7dc3a099cf0c8beeb71c91ade86dbc2f (patch)
tree8e5abe6bea2ff3ecda51813081ef0d04cee3b031 /frontends/php/users.php
parenteed105e53527fce5ea921ba81fca63bf2a321369 (diff)
downloadzabbix-bf6ba8ea7dc3a099cf0c8beeb71c91ade86dbc2f.tar.gz
zabbix-bf6ba8ea7dc3a099cf0c8beeb71c91ade86dbc2f.tar.xz
zabbix-bf6ba8ea7dc3a099cf0c8beeb71c91ade86dbc2f.zip
- show user groups in the list of users. Thanks to Igor (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1283 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/users.php')
-rw-r--r--frontends/php/users.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/frontends/php/users.php b/frontends/php/users.php
index b1df5bc5..a3e5134c 100644
--- a/frontends/php/users.php
+++ b/frontends/php/users.php
@@ -109,6 +109,7 @@
echo "<TABLE BORDER=0 COLS=4 align=center WIDTH=100% BGCOLOR=\"#CCCCCC\" cellspacing=1 cellpadding=3>";
echo "<TR><TD WIDTH=3%><B>Id</B></TD>";
echo "<TD><B>Name</B></TD>";
+ echo "<TD><B>Members</B></TD>";
echo "<TD WIDTH=10%><B>Actions</B></TD>";
echo "</TR>";
@@ -121,9 +122,22 @@
continue;
}
if($col++%2==0) { echo "<TR BGCOLOR=#EEEEEE>"; }
+ else { echo "<TR BGCOLOR=#DDDDDD>"; }
echo "<TD>".$row["usrgrpid"]."</TD>";
echo "<TD>".$row["name"]."</TD>";
echo "<TD>";
+ $result1=DBselect("select distinct u.alias from users u,users_groups ug where u.userid=ug.userid and ug.usrgrpid=".$row["usrgrpid"]." order by alias");
+ for($i=0;$i<DBnum_rows($result1);$i++)
+// while($row1=DBfetch($result1))
+ {
+ echo DBget_field($result1,$i,0);
+ if($i<DBnum_rows($result1)-1)
+ {
+ echo ", ";
+ }
+ }
+ echo "</TD>";
+ echo "<TD>";
echo "<A HREF=\"users.php?usrgrpid=".$row["usrgrpid"]."#form\">Change</A>";
echo "</TD>";
echo "</TR>";