1 | {* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *} |
---|
2 | |
---|
3 | {include file='../../../plugins/event_cats/admin/template/header.inc.tpl'} |
---|
4 | |
---|
5 | {* <!-- Available soon... --> *} |
---|
6 | <p>Bientôt disponible :-] !</p> |
---|
7 | |
---|
8 | <!-- Aknowledgement ---------------------------------------------------------- |
---|
9 | | A lot of below code has simply been copied-pasted from file cat_perm.tpl . | |
---|
10 | | Many thanks to people who wrote it ! | |
---|
11 | -----------------------------------------------------------------------------> |
---|
12 | |
---|
13 | {* <!-- Duplication configuration parameters --> *} |
---|
14 | <form action = "" method = "post" class = "titrePage" name = "ec_duplic_conf"> |
---|
15 | <fieldset> |
---|
16 | <legend>{'ec_duplication_config'|@translate}</legend> |
---|
17 | <table> |
---|
18 | <tr> |
---|
19 | <td> |
---|
20 | <span style = "font-weight:bold;">{'ec_duplication_allowance'|@translate} </span> |
---|
21 | </td> |
---|
22 | <td> |
---|
23 | <label for = "ec_dup_conf_none_id"> |
---|
24 | <input type = "radio" name = "ec_dup_conf[]" value = "none" id = "ec_dup_conf_none_id" /> |
---|
25 | {'ec_dup_allowance_none'|@translate} |
---|
26 | </label><br> |
---|
27 | <label for = "ec_dup_conf_group_id"> |
---|
28 | <input type = "radio" name = "ec_dup_conf[]" value = "group" id = "ec_dup_conf_group_id" /> |
---|
29 | {'ec_dup_allowance_group'|@translate} |
---|
30 | </label><br> |
---|
31 | <label for = "ec_dup_conf_all_id"> |
---|
32 | <input type = "radio" name = "ec_dup_conf[]" value = "all" id = "ec_dup_conf_all_id" /> |
---|
33 | {'ec_dup_allowance_all'|@translate} |
---|
34 | </label> |
---|
35 | </td> |
---|
36 | </tr> |
---|
37 | </table> |
---|
38 | <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'ec_dup_conf_sbmt_lbl'|@translate}" /> |
---|
39 | </fieldset> |
---|
40 | </form> |
---|
41 | |
---|
42 | {* <!-- Duplication settings by groups / types / user ids --> *} |
---|
43 | <form action = "" method = "post" name = "ec_duplic_set" id="categoryPermissions"> |
---|
44 | |
---|
45 | <h4>{'Groups'|@translate}</h4> |
---|
46 | |
---|
47 | <fieldset> |
---|
48 | <legend>{'ec_duplic_ok'|@translate}</legend> |
---|
49 | <ul> |
---|
50 | {foreach from=$groups_granted_ids item=id} |
---|
51 | <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}" /> {$all_groups[$id]}</label></li> |
---|
52 | {/foreach} |
---|
53 | </ul> |
---|
54 | <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'ec_dup_grp_ok_sbmt_lbl'|@translate}" /> |
---|
55 | </fieldset> |
---|
56 | |
---|
57 | <fieldset> |
---|
58 | <legend>{'ec_duplic_nok'|@translate}</legend> |
---|
59 | <ul> |
---|
60 | {foreach from=$groups_denied_ids item=id} |
---|
61 | <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li> |
---|
62 | {/foreach} |
---|
63 | </ul> |
---|
64 | <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'ec_dup_grp_nok_sbmt_lbl'|@translate}" /> |
---|
65 | </fieldset> |
---|
66 | |
---|
67 | <h4>{'ec_dup_types'|@translate}</h4> |
---|
68 | |
---|
69 | <fieldset> |
---|
70 | <legend>{'ec_duplic_ok'|@translate}</legend> |
---|
71 | <ul> |
---|
72 | {if $ec_gen_granted} |
---|
73 | <li><label><input type = "checkbox" name = "deny_generic" {* id = "ec_dup_types_generic_nok_id" *} /> {'user_status_generic'|@translate}</label></li> |
---|
74 | <br /> |
---|
75 | {/if} |
---|
76 | {foreach from=$types_granted_ids item=id} |
---|
77 | <li><label><input type = "checkbox" name = "deny_types[]" value = "{$id}" /> {$all_types[$id]}</label></li> |
---|
78 | {/foreach} |
---|
79 | </ul> |
---|
80 | <input class = "submit" type = "submit" name = "deny_types_submit" value = "{'ec_dup_typ_sbmt_nok_lbl'|@translate}" /> |
---|
81 | </fieldset> |
---|
82 | |
---|
83 | <fieldset> |
---|
84 | <legend>{'ec_duplic_nok'|@translate}</legend> |
---|
85 | <ul> |
---|
86 | {if !$ec_gen_granted} |
---|
87 | <li><label><input type = "checkbox" name = "grant_generic" {* id = "ec_dup_types_generic_ok_id" *} /> {'user_status_generic'|@translate}</label></li> |
---|
88 | <br /> |
---|
89 | {/if} |
---|
90 | {foreach from=$types_denied_ids item=id} |
---|
91 | <li><label><input type = "checkbox" name = "grant_types[]" value = "{$id}" /> {$all_types[$id]}</label></li> |
---|
92 | {/foreach} |
---|
93 | </ul> |
---|
94 | <input class = "submit" type = "submit" name = "grant_types_submit" value = "{'ec_dup_typ_sbmt_ok_lbl'|@translate}" /> |
---|
95 | </fieldset> |
---|
96 | |
---|
97 | <h4>{'Users'|@translate}</h4> |
---|
98 | |
---|
99 | <fieldset> |
---|
100 | <legend>{'ec_duplic_ok'|@translate}</legend> |
---|
101 | <ul> |
---|
102 | {foreach from=$users_granted_direct_ids item=id} |
---|
103 | <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}" /> {$all_users[$id]}</label></li> |
---|
104 | {/foreach} |
---|
105 | </ul> |
---|
106 | <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'ec_dup_usr_ok_sbmt_lbl'|@translate}" /> |
---|
107 | </fieldset> |
---|
108 | |
---|
109 | <fieldset> |
---|
110 | <legend>{'ec_duplic_ok_groups'|@translate}</legend> |
---|
111 | {if isset($user_granted_indirects) } |
---|
112 | <ul> |
---|
113 | {foreach from=$user_granted_indirects item=user_group} |
---|
114 | <li>{$user_group.USER} ({$user_group.GROUP})</li> |
---|
115 | {/foreach} |
---|
116 | </ul> |
---|
117 | {/if} |
---|
118 | </fieldset> |
---|
119 | |
---|
120 | <fieldset> |
---|
121 | <legend>{'ec_duplic_nok'|@translate}</legend> |
---|
122 | <ul> |
---|
123 | {foreach from=$users_denied_ids item=id} |
---|
124 | <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li> |
---|
125 | {/foreach} |
---|
126 | </ul> |
---|
127 | <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'ec_dup_usr_nok_sbmt_lbl'|@translate}" /> |
---|
128 | </fieldset> |
---|
129 | |
---|
130 | </form> |
---|
131 | |
---|
132 | |
---|
133 | |
---|
134 | |
---|
135 | {* <!-- JavaScript functions --> *} |
---|
136 | {* <!-- |
---|
137 | <script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script> |
---|
138 | <script type = "text/javascript"><!-- |
---|
139 | ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}"; |
---|
140 | ec_JS_message['ec_act_cat_miss'] = "{'ec_act_cat_miss'|@translate|@escape:javascript}"; |
---|
141 | ec_JS_message['ec_new_pwd_gen'] = "{'ec_new_pwd_gen'|@translate|@escape:javascript}"; |
---|
142 | ec_JS_message['ec_up_code_lbl_home'] = "{'ec_up_code_lbl_home'|@translate}"; |
---|
143 | ec_init(); |
---|
144 | //--></script> |
---|
145 | --> *} |
---|
146 | |
---|
147 | {include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'} |
---|
148 | |
---|
149 | {* <!-- |
---|
150 | --> *} |
---|
151 | |
---|