{include file="phpgacl/header.tpl"} 
  </head>
<body>
{include file="phpgacl/navigation.tpl"}
<form method="post" name="acl_list" action="acl_list.php">
<table cellpadding="2" cellspacing="2" border="2" width="100%">
  <tr class="pager">
	<td colspan="11">
		{include file="phpgacl/pager.tpl" pager_data=$paging_data link="?"}
	</td>
  </tr>
  <tr>
    <th>#</th>
    <th>Section > ACO</th>
    <th>Section > ARO</th>
    <th>Return Value</th>
    <th>ACL_CHECK() Code</th>
    <th>Debug</th>
    <th>Time (ms)</th>
    <th>Access</th>
  </tr>
  {section name=x loop=$acls}
  <tr>
    <td valign="middle" align="center">
		{$smarty.section.x.iteration}
    </td>
    <td valign="middle" align="center">
		{$acls[x].display_aco_name}
    </td>
    <td valign="top" align="left">
        {$acls[x].aro_section_name} > {$acls[x].aro_name}
    </td>
    <td valign="top" align="center">
        {$acls[x].return_value}<br>
     </td>
    <td valign="top" align="left">
		acl_check('{$acls[x].aco_section_value}', '{$acls[x].aco_value}', '{$acls[x].aro_section_value}', '{$acls[x].aro_value}')
    </td>  
    <td valign="top" align="center" nowrap>
		 [ <a href="acl_debug.php?aco_section_value={$acls[x].aco_section_value}&aco_value={$acls[x].aco_value}&aro_section_value={$acls[x].aro_section_value}&aro_value={$acls[x].aro_value}&action=Submit">debug</a> ]
    </td>  
    <td valign="top" align="center">
		{$acls[x].acl_check_time}
    </td>
    <td valign="middle" class="{if $acls[x].access}green{else}red{/if}" align="center">
		{if $acls[x].access}
			ALLOW
		{else}
			DENY
		{/if}
    </td>
  </tr>
  {/section}
  <tr classs="pager">
	<td colspan="11">
		{include file="phpgacl/pager.tpl" pager_data=$paging_data link="?"}
	</td>
  </tr>
</table>
</form>

<br>
<table align="center" cellpadding="2" cellspacing="2" border="2" width="30%">
  <tr>
	<th colspan="2">
		Summary
	</th>
  </tr>
  <tr align="center">
	<td>
		<b>Total ACL Check(s)</b>
	</td>
	<td>
		{$total_acl_checks}
	</td>
  </tr>
  <tr align="center">
	<td>
		<b>Average Time / Check</b>
	</td>
	<td>
		{$avg_acl_check_time}ms
	</td>
  </tr>
</table>
<br>
<table align="center" cellpadding="2" cellspacing="2" border="2" width="30%">
	<th>
		Do you want to test 3-dimensional ACLs?
	</th>
	<tr align="center">
		<td>
			[ <a href="acl_test3.php">3-dimensional ACLs</a> ]
		</td>
	</tr>
</table>
<br>
{include file="phpgacl/footer.tpl"}