443
by dcoles
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0 |
1 |
<script type="text/javascript"> |
2 |
// <![CDATA[
|
|
3 |
var active_pmask = '0'; |
|
4 |
var active_fmask = '0'; |
|
5 |
var active_cat = '0'; |
|
6 |
||
7 |
var id = '000'; |
|
8 |
||
9 |
var role_options = new Array(); |
|
10 |
||
11 |
<!-- IF S_ROLE_JS_ARRAY --> |
|
12 |
{S_ROLE_JS_ARRAY} |
|
13 |
<!-- ENDIF --> |
|
14 |
// ]]>
|
|
15 |
</script> |
|
16 |
<script type="text/javascript" src="style/permissions.js"></script> |
|
17 |
||
18 |
<!-- BEGIN p_mask -->
|
|
19 |
<div class="clearfix"></div> |
|
20 |
<h3>{p_mask.NAME}<!-- IF p_mask.S_LOCAL --> <span class="small"> [{p_mask.L_ACL_TYPE}]</span><!-- ENDIF --></h3> |
|
21 |
||
22 |
<!-- BEGIN f_mask -->
|
|
23 |
<div class="clearfix"></div> |
|
24 |
<fieldset class="permissions" id="perm{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}"> |
|
25 |
<legend id="legend{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}"> |
|
26 |
<!-- IF not p_mask.S_VIEW -->
|
|
27 |
<input type="checkbox" style="display: none;" class="permissions-checkbox" name="inherit[{p_mask.f_mask.UG_ID}][{p_mask.f_mask.FORUM_ID}]" id="checkbox{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}" value="1" onclick="toggle_opacity('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}')" /> |
|
28 |
<!-- ELSE -->
|
|
29 |
<!-- ENDIF -->
|
|
30 |
<!-- IF p_mask.f_mask.PADDING --><span class="padding">{p_mask.f_mask.PADDING}{p_mask.f_mask.PADDING}</span><!-- ENDIF -->{p_mask.f_mask.NAME} |
|
31 |
</legend> |
|
32 |
<!-- IF not p_mask.S_VIEW -->
|
|
33 |
<div class="permissions-switch"> |
|
34 |
<div class="permissions-reset"> |
|
35 |
<a href="#" onclick="mark_options('perm{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}', 'y'); reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); init_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); return false;">{L_ALL_YES}</a> · <a href="#" onclick="mark_options('perm{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}', 'u'); reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); init_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); return false;">{L_ALL_NO}</a> · <a href="#" onclick="mark_options('perm{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}', 'n'); reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); init_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); return false;">{L_ALL_NEVER}</a> |
|
36 |
</div> |
|
37 |
<a href="#" onclick="swap_options('{p_mask.S_ROW_COUNT}', '{p_mask.f_mask.S_ROW_COUNT}', '0', true); return false;">{L_ADVANCED_PERMISSIONS}</a><!-- IF not p_mask.S_VIEW and p_mask.f_mask.S_CUSTOM --> *<!-- ENDIF --> |
|
38 |
</div> |
|
39 |
<dl class="permissions-simple"> |
|
40 |
<dt style="width: 20%"><label for="role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}">{L_ROLE}:</label></dt> |
|
41 |
<!-- IF p_mask.f_mask.S_ROLE_OPTIONS -->
|
|
42 |
<dd style="margin-left: 20%"><select id="role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}" name="role[{p_mask.f_mask.UG_ID}][{p_mask.f_mask.FORUM_ID}]" onchange="set_role_settings(this.options[selectedIndex].value, 'advanced{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); init_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}')">{p_mask.f_mask.S_ROLE_OPTIONS}</select></dd> |
|
43 |
<!-- ELSE -->
|
|
44 |
<dd>{L_NO_ROLE_AVAILABLE}</dd> |
|
45 |
<!-- ENDIF -->
|
|
46 |
</dl> |
|
47 |
<!-- ENDIF -->
|
|
48 |
||
49 |
<!-- BEGIN category -->
|
|
50 |
<!-- IF p_mask.f_mask.category.S_FIRST_ROW -->
|
|
51 |
<!-- IF not p_mask.S_VIEW -->
|
|
52 |
<div class="permissions-advanced" id="advanced{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}" style="display: none;"> |
|
53 |
<!-- ELSE -->
|
|
54 |
<div class="permissions-advanced" id="advanced{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}"> |
|
55 |
<!-- ENDIF -->
|
|
56 |
||
57 |
<div class="permissions-category"> |
|
58 |
<ul> |
|
59 |
<!-- ENDIF -->
|
|
60 |
||
61 |
<!-- IF p_mask.f_mask.category.S_YES -->
|
|
62 |
<li class="permissions-preset-yes<!-- IF p_mask.S_FIRST_ROW and p_mask.f_mask.S_FIRST_ROW and p_mask.f_mask.category.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}"> |
|
63 |
<!-- ELSEIF p_mask.f_mask.category.S_NEVER -->
|
|
64 |
<li class="permissions-preset-never<!-- IF p_mask.S_FIRST_ROW and p_mask.f_mask.S_FIRST_ROW and p_mask.f_mask.category.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}"> |
|
65 |
<!-- ELSEIF p_mask.f_mask.category.S_NO -->
|
|
66 |
<li class="permissions-preset-no<!-- IF p_mask.S_FIRST_ROW and p_mask.f_mask.S_FIRST_ROW and p_mask.f_mask.category.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}"> |
|
67 |
<!-- ELSE -->
|
|
68 |
<li class="permissions-preset-custom<!-- IF p_mask.S_FIRST_ROW and p_mask.f_mask.S_FIRST_ROW and p_mask.f_mask.category.S_FIRST_ROW --> activetab<!-- ENDIF -->" id="tab{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}"> |
|
69 |
<!-- ENDIF -->
|
|
70 |
<a href="#" onclick="swap_options('{p_mask.S_ROW_COUNT}', '{p_mask.f_mask.S_ROW_COUNT}', '{p_mask.f_mask.category.S_ROW_COUNT}', false<!-- IF p_mask.S_VIEW -->, true<!-- ENDIF -->); return false;"><span class="tabbg"><span class="colour"></span>{category.CAT_NAME}</span></a></li> |
|
71 |
<!-- END category -->
|
|
72 |
</ul> |
|
73 |
</div> |
|
74 |
||
75 |
<!-- BEGIN category -->
|
|
76 |
<div class="permissions-panel" id="options{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}" <!-- IF p_mask.S_FIRST_ROW and p_mask.f_mask.S_FIRST_ROW and p_mask.f_mask.category.S_FIRST_ROW --><!-- ELSE --> style="display: none;"<!-- ENDIF -->> |
|
77 |
<span class="corners-top"><span></span></span> |
|
78 |
<div class="tablewrap"> |
|
79 |
<table id="table{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}" cellspacing="1"> |
|
80 |
<colgroup> |
|
81 |
<col class="permissions-name" /> |
|
82 |
<col class="permissions-yes" /> |
|
83 |
<col class="permissions-no" /> |
|
84 |
<!-- IF not p_mask.S_VIEW -->
|
|
85 |
<col class="permissions-never" /> |
|
86 |
<!-- ENDIF -->
|
|
87 |
</colgroup> |
|
88 |
<thead> |
|
89 |
<tr> |
|
90 |
<th class="name" scope="col"><strong>{L_ACL_SETTING}</strong></th> |
|
91 |
<!-- IF p_mask.S_VIEW -->
|
|
92 |
<th class="value" scope="col">{L_ACL_YES}</th> |
|
93 |
<th class="value" scope="col">{L_ACL_NEVER}</th> |
|
94 |
<!-- ELSE -->
|
|
95 |
<th class="value permissions-yes" scope="col"><a href="#" onclick="mark_options('options{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', 'y'); reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); set_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', false, 'yes'); return false;">{L_ACL_YES}</a></th> |
|
96 |
<th class="value permissions-no" scope="col"><a href="#" onclick="mark_options('options{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', 'u'); reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); set_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', false, 'no'); return false;">{L_ACL_NO}</a></th> |
|
97 |
<th class="value permissions-never" scope="col"><a href="#" onclick="mark_options('options{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', 'n'); reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); set_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', false, 'never'); return false;">{L_ACL_NEVER}</a></th> |
|
98 |
<!-- ENDIF -->
|
|
99 |
</tr> |
|
100 |
</thead> |
|
101 |
<tbody> |
|
102 |
<!-- BEGIN mask -->
|
|
103 |
<!-- IF p_mask.f_mask.category.mask.S_ROW_COUNT is even --><tr class="row4"><!-- ELSE --><tr class="row3"><!-- ENDIF --> |
|
104 |
<th class="permissions-name<!-- IF p_mask.f_mask.category.mask.S_ROW_COUNT is even --> row4<!-- ELSE --> row3<!-- ENDIF -->"><!-- IF p_mask.f_mask.category.mask.U_TRACE --><a href="{p_mask.f_mask.category.mask.U_TRACE}" class="trace" onclick="popup(this.href, 750, 515, '_trace'); return false;" title="{L_TRACE_SETTING}"><img src="images/icon_trace.gif" alt="{L_TRACE_SETTING}" /></a> <!-- ENDIF -->{p_mask.f_mask.category.mask.PERMISSION}</th> |
|
105 |
<!-- IF p_mask.S_VIEW -->
|
|
106 |
<td<!-- IF p_mask.f_mask.category.mask.S_YES --> class="yes"<!-- ENDIF -->> </td> |
|
107 |
<td<!-- IF p_mask.f_mask.category.mask.S_NEVER --> class="never"<!-- ENDIF -->></td> |
|
108 |
<!-- ELSE -->
|
|
109 |
<td class="permissions-yes"><label for="{p_mask.f_mask.category.mask.S_FIELD_NAME}_y"><input onclick="reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); set_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', false)" id="{p_mask.f_mask.category.mask.S_FIELD_NAME}_y" name="{p_mask.f_mask.category.mask.S_FIELD_NAME}" class="radio" type="radio"<!-- IF p_mask.f_mask.category.mask.S_YES --> checked="checked"<!-- ENDIF --> value="1" /></label></td> |
|
110 |
<td class="permissions-no"><label for="{p_mask.f_mask.category.mask.S_FIELD_NAME}_u"><input onclick="reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); set_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', false)" id="{p_mask.f_mask.category.mask.S_FIELD_NAME}_u" name="{p_mask.f_mask.category.mask.S_FIELD_NAME}" class="radio" type="radio"<!-- IF p_mask.f_mask.category.mask.S_NO --> checked="checked"<!-- ENDIF --> value="-1" /></label></td> |
|
111 |
<td class="permissions-never"><label for="{p_mask.f_mask.category.mask.S_FIELD_NAME}_n"><input onclick="reset_role('role{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); set_colours('{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}{p_mask.f_mask.category.S_ROW_COUNT}', false)" id="{p_mask.f_mask.category.mask.S_FIELD_NAME}_n" name="{p_mask.f_mask.category.mask.S_FIELD_NAME}" class="radio" type="radio"<!-- IF p_mask.f_mask.category.mask.S_NEVER --> checked="checked"<!-- ENDIF --> value="0" /></label></td> |
|
112 |
<!-- ENDIF -->
|
|
113 |
</tr> |
|
114 |
<!-- END mask -->
|
|
115 |
</tbody> |
|
116 |
</table> |
|
117 |
</div> |
|
118 |
||
119 |
<!-- IF not p_mask.S_VIEW -->
|
|
120 |
<fieldset class="quick" style="margin-right: 11px;"> |
|
121 |
<p class="small">{L_APPLY_PERMISSIONS_EXPLAIN}</p> |
|
122 |
<input class="button1" type="submit" name="psubmit[{p_mask.f_mask.UG_ID}][{p_mask.f_mask.FORUM_ID}]" value="{L_APPLY_PERMISSIONS}" /> |
|
123 |
<!-- IF .p_mask.f_mask gt 1 or .p_mask gt 1 -->
|
|
124 |
<p class="small"><a href="#" onclick="reset_opacity(0, '{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); return false;">{L_MARK_ALL}</a> • <a href="#" onclick="reset_opacity(1, '{p_mask.S_ROW_COUNT}{p_mask.f_mask.S_ROW_COUNT}'); return false;">{L_UNMARK_ALL}</a></p> |
|
125 |
<!-- ENDIF -->
|
|
126 |
</fieldset> |
|
127 |
||
128 |
<!-- ENDIF -->
|
|
129 |
||
130 |
<span class="corners-bottom"><span></span></span> |
|
131 |
</div> |
|
132 |
<!-- END category -->
|
|
133 |
<div class="clearfix"></div> |
|
134 |
</div> |
|
135 |
</fieldset> |
|
136 |
<!-- END f_mask -->
|
|
137 |
||
138 |
<!-- END p_mask -->
|
|
139 |