1 | {* <!-- Event Cats (event categories) LucMorizur June 2009 - ... --> *} |
---|
2 | |
---|
3 | {* <!-- Keeps file coded in UTF-8 without BOM : é --> *} |
---|
4 | |
---|
5 | {include file=$HeaderIncTPL} |
---|
6 | |
---|
7 | {* <!-- For help banner --> *} |
---|
8 | <div style = "text-align:right; font-style:italic;" id = "ec_help_banner2"> |
---|
9 | {'Help banner'|@translate} |
---|
10 | <label for = "ec_help_banner2_1" onclick = "ec_mark_help('ec_help_banner_1');"> |
---|
11 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"> |
---|
12 | {'Show'|@translate} |
---|
13 | </label> |
---|
14 | |
---|
15 | <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');"> |
---|
16 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"> |
---|
17 | {'Hide'|@translate} |
---|
18 | </label> |
---|
19 | </div><span id = "ec_help_ban" style = "display:none;"></span> |
---|
20 | <script type = "text/javascript"><!-- |
---|
21 | document.getElementById('ec_help_banner2').style.display = "none"; |
---|
22 | //--></script> |
---|
23 | |
---|
24 | <!-- Aknowledgement ---------------------------------------------------------- |
---|
25 | | A lot of below code has simply been copied-pasted from file cat_perm.tpl . | |
---|
26 | | Many thanks to people who wrote it ! | |
---|
27 | -----------------------------------------------------------------------------> |
---|
28 | |
---|
29 | {* <!-- Duplication configuration parameters --> *} |
---|
30 | <form action = "" method = "post" class = "titrePage" name = "ec_duplic_conf"> |
---|
31 | <fieldset> |
---|
32 | <legend>{'Configuration'|@translate}</legend> |
---|
33 | <table> |
---|
34 | <tr> |
---|
35 | <td style = "text-align:right; font-weight:bold;"> |
---|
36 | {'Duplication allowance'|@translate} |
---|
37 | </td> |
---|
38 | <td> |
---|
39 | <label for = "ec_dup_conf_none_id"> |
---|
40 | <input |
---|
41 | type = "radio" name = "ec_dup_conf" value = "0" id = "ec_dup_conf_none_id" |
---|
42 | {if $ec_conf.dup_allow == '0'} checked = "checked" {/if} |
---|
43 | > |
---|
44 | {'No account'|@translate} |
---|
45 | </label><br> |
---|
46 | <label for = "ec_dup_conf_group_id"> |
---|
47 | <input |
---|
48 | type = "radio" name = "ec_dup_conf" value = "2" id = "ec_dup_conf_group_id" |
---|
49 | {if $ec_conf.dup_allow == '2'} checked = "checked" {/if} |
---|
50 | > |
---|
51 | {'Selection per group'|@translate} |
---|
52 | </label><br> |
---|
53 | <label for = "ec_dup_conf_all_id"> |
---|
54 | <input |
---|
55 | type = "radio" name = "ec_dup_conf" value = "1" id = "ec_dup_conf_all_id" |
---|
56 | {if $ec_conf.dup_allow == '1'} checked = "checked" {/if} |
---|
57 | > |
---|
58 | {'All accounts'|@translate} |
---|
59 | </label> |
---|
60 | </td> |
---|
61 | <td> </td><td> </td><td> </td> {* <!-- sorry :-\ --> *} |
---|
62 | <td style = "text-align:right; font-weight:bold;"> |
---|
63 | {$ec_dup_link_conf} |
---|
64 | </td> |
---|
65 | <td> |
---|
66 | <label for = "ec_dup_disp_normal_id"> |
---|
67 | <input |
---|
68 | type = "radio" name = "ec_dup_disp" value = "0" id = "ec_dup_disp_normal_id" |
---|
69 | {if $ec_conf.duplic_display == '0'} checked = "checked" {/if} |
---|
70 | > |
---|
71 | {'No account'|@translate} |
---|
72 | </label><br> |
---|
73 | <label for = "ec_dup_disp_but_gen_id"> |
---|
74 | <input |
---|
75 | type = "radio" name = "ec_dup_disp" value = "2" id = "ec_dup_disp_but_gen_id" |
---|
76 | {if $ec_conf.duplic_display == '2'} checked = "checked" {/if} |
---|
77 | > |
---|
78 | {'All but generics'|@translate} |
---|
79 | </label><br> |
---|
80 | <label for = "ec_dup_disp_dup_id"> |
---|
81 | <input |
---|
82 | type = "radio" name = "ec_dup_disp" value = "1" id = "ec_dup_disp_dup_id" |
---|
83 | {if $ec_conf.duplic_display == '1'} checked = "checked" {/if} |
---|
84 | > |
---|
85 | {'All accounts'|@translate} |
---|
86 | </label><br> |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | </table> |
---|
90 | <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'Save dup. config btn'|@translate}"> |
---|
91 | </fieldset> |
---|
92 | </form> |
---|
93 | |
---|
94 | {* <!-- Duplication settings by groups / types / user ids --> *} |
---|
95 | <form action = "" method = "post" name = "ec_duplic_set" id="categoryPermissions"> |
---|
96 | |
---|
97 | <h4>{'Groups'|@translate}</h4> |
---|
98 | |
---|
99 | <fieldset> |
---|
100 | <legend>{'Duplication allowed'|@translate}</legend> |
---|
101 | <ul> |
---|
102 | {foreach from=$groups_granted_ids item=id} |
---|
103 | <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li> |
---|
104 | {/foreach} |
---|
105 | </ul> |
---|
106 | <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'Deny to groups btn'|@translate}"> |
---|
107 | </fieldset> |
---|
108 | |
---|
109 | <fieldset> |
---|
110 | <legend>{'Duplication denied'|@translate}</legend> |
---|
111 | <ul> |
---|
112 | {foreach from=$groups_denied_ids item=id} |
---|
113 | <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li> |
---|
114 | {/foreach} |
---|
115 | </ul> |
---|
116 | <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'Grant to groups btn'|@translate}"> |
---|
117 | </fieldset> |
---|
118 | |
---|
119 | <h4>{'Types'|@translate}</h4> |
---|
120 | |
---|
121 | <fieldset> |
---|
122 | <legend>{'Duplication allowed'|@translate}</legend> |
---|
123 | <ul> |
---|
124 | {if $ec_gen_granted} |
---|
125 | <li><label><input type = "checkbox" name = "deny_generic"> {'user_status_generic'|@translate}</label></li> |
---|
126 | <br> |
---|
127 | {/if} |
---|
128 | {foreach from=$types_granted_ids item=id} |
---|
129 | <li><label><input type = "checkbox" name = "deny_types[]" value = "{$id}"> {$all_types[$id]}</label></li> |
---|
130 | {/foreach} |
---|
131 | </ul> |
---|
132 | <input class = "submit" type = "submit" name = "deny_types_submit" value = "{'Deny to types btn'|@translate}"> |
---|
133 | </fieldset> |
---|
134 | |
---|
135 | <fieldset> |
---|
136 | <legend>{'Duplication denied'|@translate}</legend> |
---|
137 | <ul> |
---|
138 | {if !$ec_gen_granted} |
---|
139 | <li><label><input type = "checkbox" name = "grant_generic"> {'user_status_generic'|@translate}</label></li> |
---|
140 | <br> |
---|
141 | {/if} |
---|
142 | {foreach from=$types_denied_ids item=id} |
---|
143 | <li><label><input type = "checkbox" name = "grant_types[]" value = "{$id}"> {$all_types[$id]}</label></li> |
---|
144 | {/foreach} |
---|
145 | </ul> |
---|
146 | <input class = "submit" type = "submit" name = "grant_types_submit" value = "{'Grant to types btn'|@translate}"> |
---|
147 | </fieldset> |
---|
148 | |
---|
149 | <h4>{'Users'|@translate}</h4> |
---|
150 | |
---|
151 | <fieldset> |
---|
152 | <legend>{'Duplication allowed'|@translate}</legend> |
---|
153 | <ul> |
---|
154 | {foreach from=$users_granted_direct_ids item=id} |
---|
155 | <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}"> {$all_users[$id]}</label></li> |
---|
156 | {/foreach} |
---|
157 | </ul> |
---|
158 | <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'Deny to users btn'|@translate}"> |
---|
159 | </fieldset> |
---|
160 | |
---|
161 | <fieldset> |
---|
162 | <legend>{'Dup. allowed tks to'|@translate}</legend> |
---|
163 | {if isset($user_granted_indirects) } |
---|
164 | <ul> |
---|
165 | {foreach from=$user_granted_indirects item=user_group} |
---|
166 | <li>{$user_group.USER} ({$user_group.GROUP})</li> |
---|
167 | {/foreach} |
---|
168 | </ul> |
---|
169 | {/if} |
---|
170 | </fieldset> |
---|
171 | |
---|
172 | <fieldset> |
---|
173 | <legend>{'Duplication denied'|@translate}</legend> |
---|
174 | <ul> |
---|
175 | {foreach from=$users_denied_ids item=id} |
---|
176 | <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li> |
---|
177 | {/foreach} |
---|
178 | </ul> |
---|
179 | <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'Grant to users btn'|@translate}"> |
---|
180 | </fieldset> |
---|
181 | |
---|
182 | </form> |
---|
183 | |
---|
184 | {include file=$FooterIncTPL} |
---|
185 | |
---|