$usergroupentries .= "<td align='center'>{$egurow['users_name']}</td>\n" . "<td align='center'>{$egurow['email']}</td>\n" . "</tr>\n"; $row++; } $usergroupsummary .= $usergroupowner; if (isset($usergroupentries)) {$usergroupsummary .= $usergroupentries;}; $usergroupsummary .= '</tbody></table>'; if(isset($row2['ugid'])) { $usergroupsummary .= "<form action='$scriptname?ugid={$ugid}' method='post'>\n" . "<table class='users'><tbody><tr><td> </td>\n" . "<td> </td>" . "<td align='center'><select name='uid'>\n" . getgroupuserlist() . "</select>\n" . "<input type='submit' value='".$clang->gT("Add User")."' />\n" . "<input type='hidden' name='action' value='addusertogroup' /></td>\n" . "</tr></tbody></table>\n" . "</form>\n"; } } else { include("access_denied.php"); } } } else {
// output users $usergroupentries .= "<tr class='{$bgcc}'>\n" . "<td align='center'>\n"; if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1) { $usergroupentries .= "<form method='post' action='{$scriptname}?action=deleteuserfromgroup&ugid={$ugid}'>" . " <input type='image' src='{$imageurl}/token_delete.png' alt='" . $clang->gT("Delete this user from group") . "' onclick='return confirm(\"" . $clang->gT("Are you sure you want to delete this entry?", "js") . "\")' />" . " <input type='hidden' name='user' value='{$egurow['users_name']}' />" . " <input name='uid' type='hidden' value='{$egurow['uid']}' />" . " <input name='ugid' type='hidden' value='{$ugid}' />"; } $usergroupentries .= "</form>" . "</td>\n"; $usergroupentries .= "<td align='center'>{$egurow['users_name']}</td>\n" . "<td align='center'>{$egurow['email']}</td>\n" . "</tr>\n"; $row++; } $usergroupsummary .= $usergroupowner; if (isset($usergroupentries)) { $usergroupsummary .= $usergroupentries; } $usergroupsummary .= '</tbody></table>'; if (isset($row2['ugid'])) { $usergroupsummary .= "<form action='{$scriptname}?ugid={$ugid}' method='post'>\n" . "<table class='users'><tbody><tr><td> </td>\n" . "<td> </td>" . "<td align='center'><select name='uid'>\n" . getgroupuserlist() . "</select>\n" . "<input type='submit' value='" . $clang->gT("Add User") . "' />\n" . "<input type='hidden' name='action' value='addusertogroup' /></td>\n" . "</tr></tbody></table>\n" . "</form>\n"; } } else { include "access_denied.php"; } } } else { include "access_denied.php"; } } if ($action == "deleteuserfromgroup") { $usersummary = "<div class=\"header\">" . $clang->gT("Delete User") . "</div>\n"; $usersummary .= "<div class=\"messagebox\">\n"; if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1) { $ugid = $postusergroupid; $uid = $postuserid;