1 | <!-- INCLUDE overall_header.html -->
|
---|
2 |
|
---|
3 | <a name="maincontent"></a>
|
---|
4 |
|
---|
5 | <!-- IF S_EDIT -->
|
---|
6 |
|
---|
7 | <script type="text/javascript">
|
---|
8 | // <![CDATA[
|
---|
9 | var active_pmask = '0';
|
---|
10 | var active_fmask = '0';
|
---|
11 | var active_cat = '0';
|
---|
12 |
|
---|
13 | var id = '000';
|
---|
14 |
|
---|
15 | var role_options = new Array();
|
---|
16 |
|
---|
17 | <!-- IF S_ROLE_JS_ARRAY -->
|
---|
18 | {S_ROLE_JS_ARRAY}
|
---|
19 | <!-- ENDIF -->
|
---|
20 | // ]]>
|
---|
21 | </script>
|
---|
22 |
|
---|
23 | <script type="text/javascript" src="style/permissions.js"></script>
|
---|
24 |
|
---|
25 | <a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">« {L_BACK}</a>
|
---|
26 |
|
---|
27 | <h1>{L_TITLE}</h1>
|
---|
28 |
|
---|
29 | <p>{L_EXPLAIN}</p>
|
---|
30 |
|
---|
31 | <br />
|
---|
32 | <a href="#acl">» {L_SET_ROLE_PERMISSIONS}</a>
|
---|
33 |
|
---|
34 | <form id="acp_roles" method="post" action="{U_ACTION}">
|
---|
35 |
|
---|
36 | <fieldset>
|
---|
37 | <legend>{L_ROLE_DETAILS}</legend>
|
---|
38 | <dl>
|
---|
39 | <dt><label for="role_name">{L_ROLE_NAME}:</label></dt>
|
---|
40 | <dd><input name="role_name" type="text" id="role_name" value="{ROLE_NAME}" maxlength="255" /></dd>
|
---|
41 | </dl>
|
---|
42 | <dl>
|
---|
43 | <dt><label for="role_description">{L_ROLE_DESCRIPTION}:</label><br /><span>{L_ROLE_DESCRIPTION_EXPLAIN}</span></dt>
|
---|
44 | <dd><textarea id="role_description" name="role_description" rows="3" cols="45">{ROLE_DESCRIPTION}</textarea></dd>
|
---|
45 | </dl>
|
---|
46 |
|
---|
47 | <p class="quick">
|
---|
48 | <input type="submit" class="button1" name="submit" value="{L_SUBMIT}" />
|
---|
49 | {S_FORM_TOKEN}
|
---|
50 | </p>
|
---|
51 | </fieldset>
|
---|
52 |
|
---|
53 | <!-- IF S_DISPLAY_ROLE_MASK -->
|
---|
54 |
|
---|
55 | <h1>{L_ROLE_ASSIGNED_TO}</h1>
|
---|
56 |
|
---|
57 | <!-- INCLUDE permission_roles_mask.html -->
|
---|
58 |
|
---|
59 | <!-- ENDIF -->
|
---|
60 |
|
---|
61 | <p>
|
---|
62 |
|
---|
63 | <a name="acl"></a>
|
---|
64 |
|
---|
65 | <a href="#maincontent">» {L_BACK_TO_TOP}</a><br />
|
---|
66 | <br /><br />
|
---|
67 |
|
---|
68 | </p>
|
---|
69 |
|
---|
70 | <h1>{L_ACL_TYPE}</h1>
|
---|
71 |
|
---|
72 | <fieldset class="perm nolegend">
|
---|
73 |
|
---|
74 | <div id="advanced00">
|
---|
75 | <div class="permissions-category">
|
---|
76 | <ul>
|
---|
77 | <!-- BEGIN auth -->
|
---|
78 | <!-- IF auth.S_YES -->
|
---|
79 | <li class="permissions-preset-yes<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">
|
---|
80 | <!-- ELSEIF auth.S_NEVER -->
|
---|
81 | <li class="permissions-preset-never<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">
|
---|
82 | <!-- ELSEIF auth.S_NO -->
|
---|
83 | <li class="permissions-preset-no<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">
|
---|
84 | <!-- ELSE -->
|
---|
85 | <li class="permissions-preset-custom<!-- IF auth.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab00{auth.S_ROW_COUNT}">
|
---|
86 | <!-- ENDIF -->
|
---|
87 | <a href="#" onclick="swap_options('0','0','{auth.S_ROW_COUNT}'); return false;"><span class="tabbg"><span class="colour"></span>{auth.CAT_NAME}</span></a></li>
|
---|
88 | <!-- END auth -->
|
---|
89 | </ul>
|
---|
90 | </div>
|
---|
91 | <!-- BEGIN auth -->
|
---|
92 | <div class="permissions-panel" id="options00{auth.S_ROW_COUNT}"<!-- IF auth.S_FIRST_ROW --><!-- ELSE --> style="display: none;"<!-- ENDIF -->>
|
---|
93 | <span class="corners-top"><span></span></span>
|
---|
94 | <div class="tablewrap">
|
---|
95 | <table id="table00{auth.S_ROW_COUNT}" cellspacing="1">
|
---|
96 | <colgroup>
|
---|
97 | <col class="permissions-name" />
|
---|
98 | <col class="permissions-yes" />
|
---|
99 | <col class="permissions-no" />
|
---|
100 | <col class="permissions-never" />
|
---|
101 | </colgroup>
|
---|
102 | <thead>
|
---|
103 | <tr>
|
---|
104 | <th class="name" scope="col"><strong>{L_ACL_SETTING}</strong></th>
|
---|
105 | <th class="value permissions-yes" scope="col"><a href="#" onclick="mark_options('options00{auth.S_ROW_COUNT}', 'y'); set_colours('00{auth.S_ROW_COUNT}', false, 'yes'); return false;">{L_ACL_YES}</a></th>
|
---|
106 | <th class="value permissions-no" scope="col"><a href="#" onclick="mark_options('options00{auth.S_ROW_COUNT}', 'u'); set_colours('00{auth.S_ROW_COUNT}', false, 'no'); return false;">{L_ACL_NO}</a></th>
|
---|
107 | <th class="value permissions-never" scope="col"><a href="#" onclick="mark_options('options00{auth.S_ROW_COUNT}', 'n'); set_colours('00{auth.S_ROW_COUNT}', false, 'never'); return false;">{L_ACL_NEVER}</a></th>
|
---|
108 | </tr>
|
---|
109 | </thead>
|
---|
110 | <tbody>
|
---|
111 | <!-- BEGIN mask -->
|
---|
112 | <!-- IF auth.mask.S_ROW_COUNT is even --><tr class="row4"><!-- ELSE --><tr class="row3"><!-- ENDIF -->
|
---|
113 | <th class="permissions-name<!-- IF auth.mask.S_ROW_COUNT is even --> row4<!-- ELSE --> row3<!-- ENDIF -->">{auth.mask.PERMISSION}</th>
|
---|
114 |
|
---|
115 | <td class="permissions-yes"><label for="setting_{auth.mask.FIELD_NAME}_y"><input onchange="set_colours('00{auth.S_ROW_COUNT}', false)" id="setting_{auth.mask.FIELD_NAME}_y" name="setting[{auth.mask.FIELD_NAME}]" class="radio" type="radio"<!-- IF auth.mask.S_YES --> checked="checked"<!-- ENDIF --> value="1" /></label></td>
|
---|
116 | <td class="permissions-no"><label for="setting_{auth.mask.FIELD_NAME}_u"><input onchange="set_colours('00{auth.S_ROW_COUNT}', false)" id="setting_{auth.mask.FIELD_NAME}_u" name="setting[{auth.mask.FIELD_NAME}]" class="radio" type="radio"<!-- IF auth.mask.S_NO --> checked="checked"<!-- ENDIF --> value="-1" /></label></td>
|
---|
117 | <td class="permissions-never"><label for="setting_{auth.mask.FIELD_NAME}_n"><input onchange="set_colours('00{auth.S_ROW_COUNT}', false)" id="setting_{auth.mask.FIELD_NAME}_n" name="setting[{auth.mask.FIELD_NAME}]" class="radio" type="radio"<!-- IF auth.mask.S_NEVER --> checked="checked"<!-- ENDIF --> value="0" /></label></td>
|
---|
118 | </tr>
|
---|
119 | <!-- END mask -->
|
---|
120 | </tbody>
|
---|
121 | </table>
|
---|
122 | </div>
|
---|
123 | <span class="corners-bottom"><span></span></span>
|
---|
124 | </div>
|
---|
125 | <!-- END auth -->
|
---|
126 | </div>
|
---|
127 |
|
---|
128 | </fieldset>
|
---|
129 |
|
---|
130 | <fieldset class="quick">
|
---|
131 | <input type="submit" class="button1" name="submit" value="{L_SUBMIT}" />
|
---|
132 | {S_FORM_TOKEN}
|
---|
133 | </fieldset>
|
---|
134 | </form>
|
---|
135 |
|
---|
136 | <a href="#maincontent">» {L_BACK_TO_TOP}</a><br />
|
---|
137 | <br />
|
---|
138 |
|
---|
139 | <!-- ELSE -->
|
---|
140 |
|
---|
141 | <h1>{L_TITLE}</h1>
|
---|
142 |
|
---|
143 | <p>{L_EXPLAIN}</p>
|
---|
144 |
|
---|
145 | <form id="acp_roles" method="post" action="{U_ACTION}">
|
---|
146 |
|
---|
147 | <table cellspacing="1">
|
---|
148 | <col class="col2" /><col class="col2" /><col class="col1" /><col class="col2" /><col class="col2" />
|
---|
149 | <thead>
|
---|
150 | <tr>
|
---|
151 | <th>{L_ROLE_NAME}</th>
|
---|
152 | <th colspan="2">{L_OPTIONS}</th>
|
---|
153 | </tr>
|
---|
154 | </thead>
|
---|
155 | <tbody>
|
---|
156 | <!-- BEGIN roles -->
|
---|
157 | <tr>
|
---|
158 | <td style="vertical-align: top;"><strong>{roles.ROLE_NAME}</strong>
|
---|
159 | <!-- IF roles.ROLE_DESCRIPTION --><br /><span>{roles.ROLE_DESCRIPTION}</span><!-- ENDIF -->
|
---|
160 | </td>
|
---|
161 | <td style="width: 30%; text-align: center; vertical-align: top; white-space: nowrap;"><!-- IF roles.U_DISPLAY_ITEMS --><a href="{roles.U_DISPLAY_ITEMS}">{L_VIEW_ASSIGNED_ITEMS}</a><!-- ELSE -->{L_VIEW_ASSIGNED_ITEMS}<!-- ENDIF --></td>
|
---|
162 | <td style="width: 80px; text-align: right; vertical-align: top; white-space: nowrap;">
|
---|
163 | <!-- IF roles.S_FIRST_ROW && not roles.S_LAST_ROW -->
|
---|
164 | {ICON_MOVE_UP_DISABLED}
|
---|
165 | <a href="{roles.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
---|
166 | <!-- ELSEIF not roles.S_FIRST_ROW && not roles.S_LAST_ROW-->
|
---|
167 | <a href="{roles.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
---|
168 | <a href="{roles.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
---|
169 | <!-- ELSEIF roles.S_LAST_ROW && not roles.S_FIRST_ROW -->
|
---|
170 | <a href="{roles.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
---|
171 | {ICON_MOVE_DOWN_DISABLED}
|
---|
172 | <!-- ELSE -->
|
---|
173 | {ICON_MOVE_UP_DISABLED}
|
---|
174 | {ICON_MOVE_DOWN_DISABLED}
|
---|
175 | <!-- ENDIF -->
|
---|
176 | <a href="{roles.U_EDIT}" title="{L_EDIT_ROLE}">{ICON_EDIT}</a>
|
---|
177 | <a href="{roles.U_REMOVE}" title="{L_REMOVE_ROLE}">{ICON_DELETE}</a>
|
---|
178 | </td>
|
---|
179 | </tr>
|
---|
180 | <!-- END roles -->
|
---|
181 | </tbody>
|
---|
182 | </table>
|
---|
183 |
|
---|
184 | <fieldset class="quick">
|
---|
185 | {L_CREATE_ROLE}: <input type="text" name="role_name" value="" maxlength="255" /><!-- IF S_ROLE_OPTIONS --> <select name="options_from"><option value="0" selected="selected">{L_CREATE_ROLE_FROM}</option>{S_ROLE_OPTIONS}</select><!-- ENDIF --> <input class="button2" type="submit" name="add" value="{L_SUBMIT}" /><br />
|
---|
186 | {S_FORM_TOKEN}
|
---|
187 | </fieldset>
|
---|
188 | </form>
|
---|
189 |
|
---|
190 | <!-- IF S_DISPLAY_ROLE_MASK -->
|
---|
191 |
|
---|
192 | <a name="assigned_to"></a>
|
---|
193 |
|
---|
194 | <h1>{L_ROLE_ASSIGNED_TO}</h1>
|
---|
195 |
|
---|
196 | <!-- INCLUDE permission_roles_mask.html -->
|
---|
197 |
|
---|
198 | <!-- ENDIF -->
|
---|
199 |
|
---|
200 | <!-- ENDIF -->
|
---|
201 |
|
---|
202 | <!-- INCLUDE overall_footer.html -->
|
---|