aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/acp_permissions.html
blob: 88a82532a1477cac087e09b2abd6e5c21cef0a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!-- INCLUDE overall_header.html -->

<a id="maincontent"></a>

<!-- IF S_INTRO -->

	<h1>{L_ACP_PERMISSIONS}</h1>

	{L_ACP_PERMISSIONS_EXPLAIN}

<!-- ENDIF -->

<!-- IF S_SELECT_VICTIM -->

	<!-- IF U_BACK --><a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a><!-- ENDIF -->

	<h1>{L_TITLE}</h1>

	<p>{L_EXPLAIN}</p>

	<!-- IF S_FORUM_NAMES -->
		<p><strong>{L_FORUMS}{L_COLON}</strong> {FORUM_NAMES}</p>
	<!-- ENDIF -->

	<!-- IF S_SELECT_FORUM -->

		<form id="select_victim" method="post" action="{U_ACTION}">

		<fieldset>
			<legend>{L_LOOK_UP_FORUM}</legend>
			<!-- IF S_FORUM_MULTIPLE --><p>{L_LOOK_UP_FORUMS_EXPLAIN}</p><!-- ENDIF -->
		<dl>
			<dt><label for="forum">{L_LOOK_UP_FORUM}{L_COLON}</label></dt>
			<dd><select id="forum" name="forum_id[]"<!-- IF S_FORUM_MULTIPLE --> multiple="multiple"<!-- ENDIF --> size="10">{S_FORUM_OPTIONS}</select></dd>
			<!-- IF S_FORUM_ALL --><dd><label><input type="checkbox" class="radio" name="all_forums" value="1" /> {L_ALL_FORUMS}</label></dd><!-- ENDIF -->
		</dl>

		<p class="quick">
			{S_HIDDEN_FIELDS}
			{S_FORM_TOKEN}
			<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
		</p>

		</fieldset>
		</form>

		<!-- IF S_FORUM_MULTIPLE -->

			<form id="select_subforum" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_LOOK_UP_FORUM}</legend>
				<p>{L_SELECT_FORUM_SUBFORUM_EXPLAIN}</p>
			<dl>
				<dt><label for="sforum">{L_LOOK_UP_FORUM}{L_COLON}</label></dt>
				<dd><select id="sforum" name="subforum_id">{S_SUBFORUM_OPTIONS}</select></dd>
			</dl>

			<p class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
			</p>

			</fieldset>
			</form>

		<!-- ENDIF -->

	<!-- ELSEIF S_SELECT_USER and S_CAN_SELECT_USER -->

		<form id="select_victim" method="post" action="{U_ACTION}">

		<fieldset>
			<legend>{L_LOOK_UP_USER}</legend>
		<dl>
			<dt><label for="username">{L_FIND_USERNAME}{L_COLON}</label></dt>
			<dd><input class="text medium" type="text" id="username" name="username[]" /></dd>
			<dd>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</dd>
			<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>
		</dl>

		<p class="quick">
			{S_HIDDEN_FIELDS}
			{S_FORM_TOKEN}
			<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
		</p>
		</fieldset>
		</form>

	<!-- ELSEIF S_SELECT_GROUP and S_CAN_SELECT_GROUP -->

		<form id="select_victim" method="post" action="{U_ACTION}">

		<fieldset>
			<legend>{L_LOOK_UP_GROUP}</legend>
		<dl>
			<dt><label for="group">{L_LOOK_UP_GROUP}{L_COLON}</label></dt>
			<dd><select name="group_id[]" id="group">{S_GROUP_OPTIONS}</select></dd>
		</dl>

		<p class="quick">
			{S_HIDDEN_FIELDS}
			{S_FORM_TOKEN}
			<input type="submit" name="submit" value="{L_SUBMIT}" class="button1" />
		</p>

		</fieldset>
		</form>

		<!-- ELSEIF S_SELECT_USERGROUP -->

		<div style="float: {S_CONTENT_FLOW_BEGIN}; width: 48%;">

		<!-- IF S_CAN_SELECT_USER -->

			<h1>{L_USERS}</h1>

			<form id="users" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_MANAGE_USERS}</legend>
			<dl>
				<dd class="full"><select style="width: 100%;" name="user_id[]" multiple="multiple" size="5">{S_DEFINED_USER_OPTIONS}</select></dd>
				<!-- 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 -->
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<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;" />
			</fieldset>
			</form>

			<form id="add_user" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_ADD_USERS}</legend>
				<p>{L_USERNAMES_EXPLAIN}</p>
			<dl>
				<dd class="full"><textarea id="username" name="usernames" rows="5" cols="5" style="width: 100%; height: 60px;"></textarea></dd>
				<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>
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<input class="button1" type="submit" name="submit_add_options" value="{L_ADD_PERMISSIONS}" />
			</fieldset>
			</form>

		<!-- ENDIF -->

		</div>

		<div style="float: {S_CONTENT_FLOW_END}; width: 48%">

		<!-- IF S_CAN_SELECT_GROUP -->

			<h1>{L_USERGROUPS}</h1>

			<form id="groups" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_MANAGE_GROUPS}</legend>
			<dl>
				<dd class="full"><select style="width: 100%;" name="group_id[]" multiple="multiple" size="5">{S_DEFINED_GROUP_OPTIONS}</select></dd>
				<!-- 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 -->
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<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;" />
			</fieldset>
			</form>

			<form id="add_groups" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_ADD_GROUPS}</legend>
			<dl>
				<dd class="full"><select name="group_id[]" style="width: 100%; height: 107px;" multiple="multiple">{S_ADD_GROUP_OPTIONS}</select></dd>
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<input type="submit" class="button1" name="submit_add_options" value="{L_ADD_PERMISSIONS}" />
			</fieldset>
			</form>

		<!-- ENDIF -->

		</div>

	<!-- ELSEIF S_SELECT_USERGROUP_VIEW -->

		<div style="float: {S_CONTENT_FLOW_BEGIN}; width: 48%;">

			<h1>{L_USERS}</h1>

			<form id="users" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_MANAGE_USERS}</legend>
			<dl>
				<dd class="full"><select style="width: 100%;" name="user_id[]" multiple="multiple" size="5">{S_DEFINED_USER_OPTIONS}</select></dd>
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<input class="button1" type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" />
			</fieldset>
			</form>

			<form id="add_user" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_LOOK_UP_USER}</legend>
			<dl>
				<dt><label for="username">{L_FIND_USERNAME}{L_COLON}</label></dt>
				<dd><input type="text" id="username" name="username[]" /></dd>
				<dd>[ <a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a> ]</dd>
				<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>
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<input type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" class="button1" />
			</fieldset>
			</form>

		</div>

		<div style="float: {S_CONTENT_FLOW_END}; width: 48%">

			<h1>{L_USERGROUPS}</h1>

			<form id="groups" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_MANAGE_GROUPS}</legend>
			<dl>
				<dd class="full"><select style="width: 100%;" name="group_id[]" multiple="multiple" size="5">{S_DEFINED_GROUP_OPTIONS}</select></dd>
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<input class="button1" type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" />
			</fieldset>
			</form>

			<form id="group" method="post" action="{U_ACTION}">

			<fieldset>
				<legend>{L_LOOK_UP_GROUP}</legend>
			<dl>
				<dt><label for="group_select">{L_LOOK_UP_GROUP}{L_COLON}</label></dt>
				<dd><select name="group_id[]" id="group_select">{S_ADD_GROUP_OPTIONS}</select></dd>
				<dd>&nbsp;</dd>
			</dl>
			</fieldset>

			<fieldset class="quick">
				{S_HIDDEN_FIELDS}
				{S_FORM_TOKEN}
				<input type="submit" name="submit" value="{L_VIEW_PERMISSIONS}" class="button1" />
			</fieldset>
			</form>

		</div>

	<!-- ENDIF -->

<!-- ENDIF -->

<!-- IF S_VIEWING_PERMISSIONS -->

	<h1>{L_ACL_VIEW}</h1>

	<p>{L_ACL_VIEW_EXPLAIN}</p>

	<fieldset class="quick">
		<strong>&raquo; {L_PERMISSION_TYPE}</strong>
	</fieldset>

	<!-- INCLUDE permission_mask.html -->

<!-- ENDIF -->

<!-- IF S_SETTING_PERMISSIONS -->

	<h1>{L_ACL_SET}</h1>

	<p>{L_ACL_SET_EXPLAIN}</p>

	<br />

	<fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
		<strong>&raquo; {L_PERMISSION_TYPE}</strong>
	</fieldset>

	<!-- IF S_PERMISSION_DROPDOWN -->
		<form id="pselect" method="post" action="{U_ACTION}">

		<fieldset class="quick" style="float: {S_CONTENT_FLOW_BEGIN};">
			{S_HIDDEN_FIELDS}
			{S_FORM_TOKEN}
			{L_SELECT_TYPE}{L_COLON} <select name="type">{S_PERMISSION_DROPDOWN}</select>

			<input class="button2" type="submit" name="submit" value="{L_GO}" />
		</fieldset>
		</form>
	<!-- ENDIF -->

	<br /><br />

	<!-- include tooltip file -->
	<script type="text/javascript" src="style/tooltip.js"></script>
	<script type="text/javascript">
	// <![CDATA[
		window.onload = function(){enable_tooltips_select('set-permissions', '{LA_ROLE_DESCRIPTION}', 'role')};
	// ]]>
	</script>

	<form id="set-permissions" method="post" action="{U_ACTION}">

	{S_HIDDEN_FIELDS}

	<!-- INCLUDE permission_mask.html -->

	<br /><br />

	<fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
		<input class="button1" type="submit" name="action[apply_all_permissions]" value="{L_APPLY_ALL_PERMISSIONS}" />
		<input class="button2" type="button" name="cancel" value="{L_RESET}" onclick="document.forms['set-permissions'].reset(); init_colours(active_pmask + active_fmask);" />
		{S_FORM_TOKEN}
	</fieldset>

	<br /><br />

	</form>

<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->