added a modify line to groups for admin users
authorpaulr <me@pjr.cc>
Wed, 2 Nov 2011 16:36:02 +0000 (03:36 +1100)
committerpaulr <me@pjr.cc>
Wed, 2 Nov 2011 16:36:02 +0000 (03:36 +1100)
gwvplib/gwvpuseradmin.php

index 39eeccb..95b6a9c 100644 (file)
@@ -200,7 +200,7 @@ function gwvp_UserAdminPageBody()
                        echo "<tr><th>Group Name</th><th>Owner</th></tr>";
                        break;
                case "admin":
-                       echo "<tr><th>Group Name</th><th>Owner</th><th>Admin Group?</th></tr>";
+                       echo "<tr><th>Group Name</th><th>Owner</th><th>Admin Group?</th><th>Modify</th></tr>";
                        break;
                case "user":
                        echo "<tr><th>Group Name</th><th>Owner</th><th>Admin Group?</th></tr>";
@@ -218,6 +218,7 @@ function gwvp_UserAdminPageBody()
 
                 */
                $gname = $u_groups["name"];
+               $gid = $u_groups["id"];
                $owner = gwvp_getUserEmail($u_groups["ownerid"]);
                if($u_groups["admin"]) $gadmin = "Yes";
                else $gadmin  = "No";
@@ -227,7 +228,7 @@ function gwvp_UserAdminPageBody()
                                echo "<tr><td>$gname</td><td>$owner</td></tr>";
                                break;
                        case "admin":
-                               echo "<tr><td>$gname</td><td>$owner</td><td>$gadmin</td></tr>";
+                               echo "<tr><td>$gname</td><td>$owner</td><td>$gadmin</td><td><a href=\"$BASE_URL/users/modifygroup?groupid=$gid\">Modify</a></td></tr>";
                                break;
                        case "user":
                                echo "<tr><td>$gname</td><td>$owner</td><td>$gadmin</td></tr>";