source: trunk/forum/adm/style/acp_permissions.html

Last change on this file was 702, checked in by george, 15 years ago
  • Upraveno: Aktualizace fóra.
File size: 10.3 KB
Line 
1<!-- INCLUDE overall_header.html -->
2
3<a name="maincontent"></a>
4
5<!-- IF S_INTRO -->
6
7 <h1>{L_ACP_PERMISSIONS}</h1>
8
9 {L_ACP_PERMISSIONS_EXPLAIN}
10
11<!-- ENDIF -->
12
13<!-- IF S_SELECT_VICTIM -->
14
15 <!-- IF U_BACK --><a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a><!-- ENDIF -->
16
17 <h1>{L_TITLE}</h1>
18
19 <p>{L_EXPLAIN}</p>
20
21 <!-- IF S_FORUM_NAMES -->
22 <p><strong>{L_FORUMS}:</strong> {FORUM_NAMES}</p>
23 <!-- ENDIF -->
24
25 <!-- IF S_SELECT_FORUM -->
26
27 <form id="select_victim" method="post" action="{U_ACTION}">
28
29 <fieldset>
30 <legend>{L_LOOK_UP_FORUM}</legend>
31 <!-- IF S_FORUM_MULTIPLE --><p>{L_LOOK_UP_FORUMS_EXPLAIN}</p><!-- ENDIF -->
32 <dl>
33 <dt><label for="forum">{L_LOOK_UP_FORUM}:</label></dt>
34 <dd><select id="forum" name="forum_id[]"<!-- IF S_FORUM_MULTIPLE --> multiple="multiple"<!-- ENDIF --> size="10">{S_FORUM_OPTIONS}</select></dd>
35 <!-- IF S_FORUM_ALL --><dd><label><input type="checkbox" class="radio" name="all_forums" value="1" /> {L_ALL_FORUMS}</label></dd><!-- ENDIF -->
36 </dl>
37
38 <p class="quick">
39 {S_HIDDEN_FIELDS}
40 {S_FORM_TOKEN}
41 <input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
42 </p>
43
44 </fieldset>
45 </form>
46
47 <!-- IF S_FORUM_MULTIPLE -->
48
49 <form id="select_subforum" method="post" action="{U_ACTION}">
50
51 <fieldset>
52 <legend>{L_LOOK_UP_FORUM}</legend>
53 <p>{L_SELECT_FORUM_SUBFORUM_EXPLAIN}</p>
54 <dl>
55 <dt><label for="sforum">{L_LOOK_UP_FORUM}:</label></dt>
56 <dd><select id="sforum" name="subforum_id">{S_SUBFORUM_OPTIONS}</select></dd>
57 </dl>
58
59 <p class="quick">
60 {S_HIDDEN_FIELDS}
61 {S_FORM_TOKEN}
62 <input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
63 </p>
64
65 </fieldset>
66 </form>
67
68 <!-- ENDIF -->
69
70 <!-- ELSEIF S_SELECT_USER and S_CAN_SELECT_USER -->
71
72 <form id="select_victim" method="post" action="{U_ACTION}">
73
74 <fieldset>
75 <legend>{L_LOOK_UP_USER}</legend>
76 <dl>
77 <dt><label for="username">{L_FIND_USERNAME}:</label></dt>
78 <dd><input class="text medium" type="text" id="username" name="username[]" /></dd>
79 <dd>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</dd>
80 <dd class="full" style="text-align: left;"><label><input type="checkbox" class="radio" id="anonymous" name="user_id[]" value="{ANONYMOUS_USER_ID}" /> {L_SELECT_ANONYMOUS}</label></dd>
81 </dl>
82
83 <p class="quick">
84 {S_HIDDEN_FIELDS}
85 {S_FORM_TOKEN}
86 <input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
87 </p>
88 </fieldset>
89 </form>
90
91 <!-- ELSEIF S_SELECT_GROUP and S_CAN_SELECT_GROUP -->
92
93 <form id="select_victim" method="post" action="{U_ACTION}">
94
95 <fieldset>
96 <legend>{L_LOOK_UP_GROUP}</legend>
97 <dl>
98 <dt><label for="group">{L_LOOK_UP_GROUP}:</label></dt>
99 <dd><select name="group_id[]" id="group">{S_GROUP_OPTIONS}</select></dd>
100 </dl>
101
102 <p class="quick">
103 {S_HIDDEN_FIELDS}
104 {S_FORM_TOKEN}
105 <input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
106 </p>
107
108 </fieldset>
109 </form>
110
111 <!-- ELSEIF S_SELECT_USERGROUP -->
112
113 <div style="float: {S_CONTENT_FLOW_BEGIN}; width: 48%;">
114
115 <!-- IF S_CAN_SELECT_USER -->
116
117 <h1>{L_USERS}</h1>
118
119 <form id="users" method="post" action="{U_ACTION}">
120
121 <fieldset>
122 <legend>{L_MANAGE_USERS}</legend>
123 <dl>
124 <dd class="full"><select style="width: 100%;" name="user_id[]" multiple="multiple" size="5">{S_DEFINED_USER_OPTIONS}</select></dd>
125 <!-- IF S_ALLOW_ALL_SELECT --><dd class="full" style="text-align: right;"><label><input type="checkbox" class="radio" name="all_users" value="1" /> {L_ALL_USERS}</label></dd><!-- ENDIF -->
126 </dl>
127 </fieldset>
128
129 <fieldset class="quick">
130 {S_HIDDEN_FIELDS}
131 {S_FORM_TOKEN}
132 <input type="submit" class="button2" name="action[delete]" value="{L_REMOVE_PERMISSIONS}" style="width: 46% !important;" /> &nbsp; <input class="button1" type="submit" name="submit_edit_options" value="{L_EDIT_PERMISSIONS}" style="width: 46% !important;" />
133 </fieldset>
134 </form>
135
136 <form id="add_user" method="post" action="{U_ACTION}">
137
138 <fieldset>
139 <legend>{L_ADD_USERS}</legend>
140 <p>{L_USERNAMES_EXPLAIN}</p>
141 <dl>
142 <dd class="full"><textarea id="username" name="usernames" rows="5" cols="5" style="width: 100%; height: 60px;"></textarea></dd>
143 <dd class="full" style="text-align: left;"><div style="float: {S_CONTENT_FLOW_END};">[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</div><label><input type="checkbox" class="radio" id="anonymous" name="user_id[]" value="{ANONYMOUS_USER_ID}" /> {L_SELECT_ANONYMOUS}</label></dd>
144 </dl>
145 </fieldset>
146
147 <fieldset class="quick">
148 {S_HIDDEN_FIELDS}
149 {S_FORM_TOKEN}
150 <input class="button1" type="submit" name="submit_add_options" value="{L_ADD_PERMISSIONS}" />
151 </fieldset>
152 </form>
153
154 <!-- ENDIF -->
155
156 </div>
157
158 <div style="float: {S_CONTENT_FLOW_END}; width: 48%">
159
160 <!-- IF S_CAN_SELECT_GROUP -->
161
162 <h1>{L_USERGROUPS}</h1>
163
164 <form id="groups" method="post" action="{U_ACTION}">
165
166 <fieldset>
167 <legend>{L_MANAGE_GROUPS}</legend>
168 <dl>
169 <dd class="full"><select style="width: 100%;" name="group_id[]" multiple="multiple" size="5">{S_DEFINED_GROUP_OPTIONS}</select></dd>
170 <!-- IF S_ALLOW_ALL_SELECT --><dd class="full" style="text-align: right;"><label><input type="checkbox" class="radio" name="all_groups" value="1" /> {L_ALL_GROUPS}</label></dd><!-- ENDIF -->
171 </dl>
172 </fieldset>
173
174 <fieldset class="quick">
175 {S_HIDDEN_FIELDS}
176 {S_FORM_TOKEN}
177 <input class="button2" type="submit" name="action[delete]" value="{L_REMOVE_PERMISSIONS}" style="width: 46% !important;" /> &nbsp; <input class="button1" type="submit" name="submit_edit_options" value="{L_EDIT_PERMISSIONS}" style="width: 46% !important;" />
178 </fieldset>
179 </form>
180
181 <form id="add_groups" method="post" action="{U_ACTION}">
182
183 <fieldset>
184 <legend>{L_ADD_GROUPS}</legend>
185 <dl>
186 <dd class="full"><select name="group_id[]" style="width: 100%; height: 107px;" multiple="multiple">{S_ADD_GROUP_OPTIONS}</select></dd>
187 </dl>
188 </fieldset>
189
190 <fieldset class="quick">
191 {S_HIDDEN_FIELDS}
192 {S_FORM_TOKEN}
193 <input type="submit" class="button1" name="submit_add_options" value="{L_ADD_PERMISSIONS}" />
194 </fieldset>
195 </form>
196
197 <!-- ENDIF -->
198
199 </div>
200
201 <!-- ELSEIF S_SELECT_USERGROUP_VIEW -->
202
203 <div style="float: {S_CONTENT_FLOW_BEGIN}; width: 48%;">
204
205 <h1>{L_USERS}</h1>
206
207 <form id="users" method="post" action="{U_ACTION}">
208
209 <fieldset>
210 <legend>{L_MANAGE_USERS}</legend>
211 <dl>
212 <dd class="full"><select style="width: 100%;" name="user_id[]" multiple="multiple" size="5">{S_DEFINED_USER_OPTIONS}</select></dd>
213 </dl>
214 </fieldset>
215
216 <fieldset class="quick">
217 {S_HIDDEN_FIELDS}
218 {S_FORM_TOKEN}
219 <input class="button1" type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" />
220 </fieldset>
221 </form>
222
223 <form id="add_user" method="post" action="{U_ACTION}">
224
225 <fieldset>
226 <legend>{L_LOOK_UP_USER}</legend>
227 <dl>
228 <dt><label for="username">{L_FIND_USERNAME}:</label></dt>
229 <dd><input type="text" id="username" name="username[]" /></dd>
230 <dd>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</dd>
231 <dd class="full" style="text-align: left;"><label><input type="checkbox" class="radio" id="anonymous" name="user_id[]" value="{ANONYMOUS_USER_ID}" /> {L_SELECT_ANONYMOUS}</label></dd>
232 </dl>
233 </fieldset>
234
235 <fieldset class="quick">
236 {S_HIDDEN_FIELDS}
237 {S_FORM_TOKEN}
238 <input type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" class="button1" />
239 </fieldset>
240 </form>
241
242 </div>
243
244 <div style="float: {S_CONTENT_FLOW_END}; width: 48%">
245
246 <h1>{L_USERGROUPS}</h1>
247
248 <form id="groups" method="post" action="{U_ACTION}">
249
250 <fieldset>
251 <legend>{L_MANAGE_GROUPS}</legend>
252 <dl>
253 <dd class="full"><select style="width: 100%;" name="group_id[]" multiple="multiple" size="5">{S_DEFINED_GROUP_OPTIONS}</select></dd>
254 </dl>
255 </fieldset>
256
257 <fieldset class="quick">
258 {S_HIDDEN_FIELDS}
259 {S_FORM_TOKEN}
260 <input class="button1" type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" />
261 </fieldset>
262 </form>
263
264 <form id="group" method="post" action="{U_ACTION}">
265
266 <fieldset>
267 <legend>{L_LOOK_UP_GROUP}</legend>
268 <dl>
269 <dt><label for="group_select">{L_LOOK_UP_GROUP}:</label></dt>
270 <dd><select name="group_id[]" id="group_select">{S_ADD_GROUP_OPTIONS}</select></dd>
271 <dd>&nbsp;</dd>
272 </dl>
273 </fieldset>
274
275 <fieldset class="quick">
276 {S_HIDDEN_FIELDS}
277 {S_FORM_TOKEN}
278 <input type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" class="button1" />
279 </fieldset>
280 </form>
281
282 </div>
283
284 <!-- ENDIF -->
285
286<!-- ENDIF -->
287
288<!-- IF S_VIEWING_PERMISSIONS -->
289
290 <h1>{L_ACL_VIEW}</h1>
291
292 <p>{L_ACL_VIEW_EXPLAIN}</p>
293
294 <fieldset class="quick">
295 <strong>&raquo; {L_PERMISSION_TYPE}</strong>
296 </fieldset>
297
298 <!-- INCLUDE permission_mask.html -->
299
300<!-- ENDIF -->
301
302<!-- IF S_SETTING_PERMISSIONS -->
303
304 <h1>{L_ACL_SET}</h1>
305
306 <p>{L_ACL_SET_EXPLAIN}</p>
307
308 <br />
309
310 <fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
311 <strong>&raquo; {L_PERMISSION_TYPE}</strong>
312 </fieldset>
313
314 <!-- IF S_PERMISSION_DROPDOWN -->
315 <form id="pselect" method="post" action="{U_ACTION}">
316
317 <fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
318 {S_HIDDEN_FIELDS}
319 {S_FORM_TOKEN}
320 {L_SELECT_TYPE}: <select name="type">{S_PERMISSION_DROPDOWN}</select>
321
322 <input class="button2" type="submit" name="submit" value="{L_GO}" />
323 </fieldset>
324 </form>
325 <!-- ENDIF -->
326
327 <br /><br />
328
329 <!-- include tooltip file -->
330 <script type="text/javascript" src="style/tooltip.js"></script>
331 <script type="text/javascript">
332 // <![CDATA[
333 window.onload = function(){enable_tooltips_select('set-permissions', '{LA_ROLE_DESCRIPTION}', 'role')};
334 // ]]>
335 </script>
336
337 <form id="set-permissions" method="post" action="{U_ACTION}">
338
339 {S_HIDDEN_FIELDS}
340
341 <!-- INCLUDE permission_mask.html -->
342
343 <br /><br />
344
345 <fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
346 <input class="button1" type="submit" name="action[apply_all_permissions]" value="{L_APPLY_ALL_PERMISSIONS}" />
347 <input class="button2" type="button" name="cancel" value="{L_RESET}" onclick="document.forms['set-permissions'].reset(); init_colours(active_pmask + active_fmask);" />
348 {S_FORM_TOKEN}
349 </fieldset>
350
351 <br /><br />
352
353 </form>
354
355<!-- ENDIF -->
356
357<!-- INCLUDE overall_footer.html -->
Note: See TracBrowser for help on using the repository browser.