Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/acledit.inc.php
<?php
	echo <<<EOT
<table border="0">
	<tr align="center">
		<td><img src="gfx/acl.png" border="0"><br>[{$verbage['adm_acl_editor']}]</td>
	</tr>
</table>
<hr>
EOT;
if (!isset($selectedACL)) {

	echo <<<EOT
	{$verbage['adm_acl_list']} :
	<table border=1>
		<tr>
			<th>{$verbage['project']}</th>
			<th><b>{$verbage['user']}/{$verbage['group']}</th>
			<th><b>{$verbage['adm_permissions']}</th>
			<!--<th><b>Edit</th> -->
			<th>{$verbage['delete']}</th>
		</tr>
EOT;

	while (list($key, $value) = each($bugDatabase->lists['acl'])) {
		$flags = array();
		$prName = htmlentities($bugDatabase->lists['project'][$value['project']]['name']);
		if ($value['flags'] & ACL_READ) {
			$flags[] = "read";
		}
		if ($value['flags'] & ACL_ADD) {
			$flags[] = "add";
		}
		if ($value['flags'] & ACL_MODIFY) {
			$flags[] = "modify";
		}

		if ($value['id_tag'] == 0) {
			$aclName = "<b>Everyone</b>";
		}
		else {
			$aclName = htmlentities($bugDatabase->lists[$value['acl_type']][$value['id_tag']]['name']);
		}
		$flags = implode(",", $flags);
		echo <<<EOT
		<tr>
			<td>
				{$prName}
			</td>
			<td>
				{$value['acl_type']} ($aclName)
			</td>
			<td>
				{$flags}
			</td>
			<!--<td>
				<a href="{$options['baseURL']}?area=admin&action=acledit&selectedACL={$value['id']}">[{$verbage['edit']}]</a>
			</td> //-->
			<td>
				<a href="{$options['baseURL']}?area=admin&action=acldelete&selectedACL={$value['id']}">[{$verbage['delete']}]</a>
			</td>
		</tr>

EOT;

	}
	echo <<<EOT
	</table><br />
	[<a href="{$options['baseURL']}?area=admin&action=acladd">{$verbage['adm_acl_add']}</a>]<br>
EOT;
}
?>
Return current item: BugIn and Ticketing System