added a modify component to the user lines in the user admin page - it
authorpaulr <me@pjr.cc>
Wed, 2 Nov 2011 16:33:43 +0000 (03:33 +1100)
committerpaulr <me@pjr.cc>
Wed, 2 Nov 2011 16:33:43 +0000 (03:33 +1100)
doesnt work!

gwvplib/gwvpuseradmin.php

index 5fe0442..39eeccb 100644 (file)
@@ -136,6 +136,7 @@ function gwvp_UserAdminPageBody()
 
         */
        foreach($users as $u_users) {
+               $userid = $u_users["id"];
                $email = $u_users["email"];
                $fullname = $u_users["fullname"];
                $username = $u_users["username"];
@@ -176,7 +177,8 @@ function gwvp_UserAdminPageBody()
                                echo "<tr><td>$username</td><td>$ugroups</td><td>$desc</td></tr>";
                                break;
                        case "admin":
-                               echo "<tr><td>$email</td><td>$username</td><td>$fullname</td><td>$ugroups</td><td>$desc</td><td>$globaladmin</td><td>$status</td></tr>";
+                               echo "<tr><td>$email</td><td>$username</td><td>$fullname</td><td>$ugroups</td><td>$desc</td>";
+                               echo "<td>$globaladmin</td><td>$status</td><td><a href=\"$BASE_URL/users/modify?id=$userid\">Modify</a></td></tr>";
                                break;
                        case "user":
                                echo "<tr><td>$username</td><td>$ugroups</td><td>$desc</td></tr>";