Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/gedit.inc.php
<table border="0">
	<tr align="center">
		<td><img src="gfx/gedit.png" border="0"><br><?php echo "{$verbage['adm_group_editor']}"; ?></td>
	</tr>
</table>
<hr>

<?php

if (isset($selectedGroup)) {
	echo <<<EOT
		<form method="{$options['formMethod']}" action="{$options['baseURL']}{$options['formSubmitTo']}">
		<input type="hidden" name="area" value="admin" />
		<input type="hidden" name="action" value="gedit" />
		<input type="hidden" name="selectedGroup" value="{$selectedGroup}" />

		<table border="1" width="100%">
		<tr>
			<th>{$verbage['group']}: {$groupName}</th>
			<th>{$verbage['members']}</th>
		</tr>
		<tr>
			<td>
				Group Name:
				<input type="text" name="mod[group_name]" value="{$groupName}"><br>
			</td>
			<td>
EOT;
	reset($bugDatabase->lists['user']);
	while (list($uid, $user) = each($bugDatabase->lists['user'])) {
		if ((in_array($selectedGroup, $user['user_group'])) && $user['uid'] > 0) {
			echo <<<EOT
				<a href="{$options['baseURL']}?area=admin&action=uedit&selectedUser={$user['uid']}">{$user['name']}</a><br />
EOT;

			}
		}
	echo <<<EOT
				</td>
			</tr>
		</table>
		<input type="submit" value="Update Group">
		</form>
EOT;

}
elseif (!isset($mod)) {
	echo <<<EOT
	{$verbage['adm_grp_edit']}
	<table border="1" valign="top">
		<tr valign="top">
			<th>ID</th>
			<th>{$verbage['group']}</th>
			<th>{$verbage['members'] }</th>
			<th>{$verbage['delete']}</th>
		</tr>
EOT;

	reset($bugDatabase->lists['group']);
	while (list($key, $value) = each($bugDatabase->lists['group'])) {
		echo <<<EOT
		<tr valign="top">
			<td>
				<a href="{$options['baseURL']}?area=admin&action=gedit&selectedGroup={$value['id']}">{$key}</a>
			</td>
			<td>
				<a href="{$options['baseURL']}?area=admin&action=gedit&selectedGroup={$value['id']}">{$value['name']}</a>
			</td>
			<td>
			
EOT;
		reset($bugDatabase->lists['user']);
		while (list($uid, $user) = each($bugDatabase->lists['user'])) {
			if ((in_array($value['id'], $user['user_group'])) && $user['uid'] > 0) {
				echo <<<EOT
				<a href="{$options['baseURL']}?area=admin&action=uedit&selectedUser={$user['uid']}">{$user['name']}</a><br />
EOT;

			}
		}
		echo <<<EOT
			</td>
			<td>
				<a href="{$options['baseURL']}?area=admin&action=gdelete&selectedGroup={$value['id']}">[{$verbage['delete']}]</a>
			</td>
		</tr>

EOT;

	}
	echo <<<EOT
	</table><br />
	[<a href="{$options['baseURL']}?area=admin&action=gadd">{$verbage['adm_grp_add']}</a>]
EOT;
}
else {
	echo <<<EOT
	[<a href="{$options['baseURL']}?area=admin&action=gedit">{$verbage['continue']}</a>]

EOT;
}
?>
Return current item: BugIn and Ticketing System