additional work on the acl_debug script
[openemr.git] / gacl / admin / templates / phpgacl / acl_debug.tpl
blob2a099105f2719c8b66038af803106b6c30ddea8f
1 {include file="phpgacl/header.tpl"}
2   </head>
3 <body>
4 {include file="phpgacl/navigation.tpl"}
5 <form method="get" name="acl_debug" action="acl_debug.php">
6 <table cellpadding="2" cellspacing="2" border="2" width="100%">
7   <tr>
8         <th rowspan="2">&nbsp;</th>
9         <th colspan="2">ACO</th>
10         <th colspan="2">ARO</th>
11         <th colspan="2">AXO</th>
12     <th rowspan="2">Root ARO<br />Group ID</th>
13     <th rowspan="2">Root AXO<br />Group ID</th>
14     <th rowspan="2">&nbsp;</th>
15   </tr>
16   <tr>
17     <th>Section</th>
18     <th>Value</th>
19     <th>Section</th>
20     <th>Value</th>
21     <th>Section</th>
22     <th>Value</th>
23   </tr>
24   <tr valign="middle" align="center">
25     <td nowrap><b>acl_query(</b></td>
26     <td><input type="text" name="aco_section_value" size="15" value="{$aco_section_value|escape:'html'}"></td>
27     <td><input type="text" name="aco_value" size="15" value="{$aco_value|escape:'html'}"></td>
28     <td><input type="text" name="aro_section_value" size="15" value="{$aro_section_value|escape:'html'}"></td>
29     <td><input type="text" name="aro_value" size="15" value="{$aro_value|escape:'html'}"></td>
30     <td><input type="text" name="axo_section_value" size="15" value="{$axo_section_value|escape:'html'}"></td>
31     <td><input type="text" name="axo_value" size="15" value="{$axo_value|escape:'html'}"></td>
32     <td><input type="text" name="root_aro_group_id" size="15" value="{$root_aro_group_id|escape:'html'}"></td>
33     <td><input type="text" name="root_axo_group_id" size="15" value="{$root_axo_group_id|escape:'html'}"></td>
34     <td><b>)</b></td>
35   </tr>
36   <tr class="controls" align="center">
37     <td colspan="10">
38         <input type="submit" class="button" name="action" value="Submit">
39     </td>
40   </tr>
41 </table>
42 {if count($acls) gt 0}
43 <br />
44 <table cellpadding="2" cellspacing="2" border="2" width="100%">
45   <tr>
46     <th rowspan="2" width="4%">ACL ID</th>
47     <th colspan="2">ACO</th>
48     <th colspan="2">ARO</th>
49     <th colspan="2">AXO</th>
50     <th colspan="2">ACL</th>
51   </tr>
52   <tr>
53     <th width="12%">Section</th>
54     <th width="12%">Value</th>
55     <th width="12%">Section</th>
56     <th width="12%">Value</th>
57     <th width="12%">Section</th>
58     <th width="12%">Value</th>
59     <th width="8%">Access</th>
60     <th width="16%">Updated Date</th>
61   </tr>
62 {foreach from=$acls item=acl}
63   <tr valign="top" align="left">
64     <td valign="middle" rowspan="2" align="center">
65         {$acl.id|escape:'html'}
66     </td>
67     <td nowrap>
68                 {$acl.aco_section_value|escape:'html'}
69     </td>
70     <td nowrap>
71                 {$acl.aco_value|escape:'html'}
72     </td>
74     <td nowrap>
75                 {$acl.aro_section_value|escape:'html'}<br>
76     </td>
77     <td nowrap>
78                 {$acl.aro_value|escape:'html'}<br>
79     </td>
81     <td nowrap>
82                 {$acl.axo_section_value|escape:'html'}<br>
83     </td>
84     <td nowrap>
85                 {$acl.axo_value|escape:'html'}<br>
86     </td>
88     <td valign="middle" class="{if $acl.allow}green{else}red{/if}" align="center">
89                 {if $acl.allow}
90                         ALLOW
91                 {else}
92                         DENY
93                 {/if}
94     </td>
95     <td valign="middle" align="center">
96         {$acl.updated_date|escape:'html'}
97      </td>
98   </tr>
99   <tr valign="middle" align="left">
100     <td colspan="4">
101         <b>Return Value:</b> {$acl.return_value|escape:'html'}<br>
102     </td>
103     <td colspan="4">
104         <b>Note:</b> {$acl.note|escape:'html'}
105     </td>
106   </tr>
107 {/foreach}
108 </table>
109 {/if}
110 <input type="hidden" name="return_page" value="{$return_page}">
111 </form>
112 {include file="phpgacl/footer.tpl"}