require_once ROOTDIR . "/include/database/class.AdminGroupQueries.php"; $groupId = $_POST['groupId']; $plugin = $_POST['plugin']; $adminGroupQueries = new AdminGroupQueries(); $adminGroupQueries->addPluginToGroup($groupId, $plugin); $pluginList = $adminGroupQueries->getPluginList($groupId); // The HTML must match what is in the manageAdminGroups.php file ?> <span id="pluginTables-<?php echo $groupId; ?> "> <?php // Now create each plugin table foreach ($pluginList as $plugin) { $flags = $adminGroupQueries->getGroupPluginPowers($groupId, $plugin->getId()); ?> <table id="pluginSection-<?php echo $groupId; ?> -<?php echo $plugin->getId(); ?> " class="bordercolor" width="99%" cellspacing="1" cellpadding="5" border="0" align="center" style="margin-bottom: 10px;"> <tr> <th class="colColor1" colspan="3"> <?php echo $plugin->getName(); ?> [<span class="actionLink" onclick="selectAllOfPlugin('<?php