[5058] | 1 | {* <!-- Event Cats (event categories) LucMorizur June 2009 - ... --> *} |
---|
[4421] | 2 | |
---|
[8956] | 3 | {* <!-- Keeps file coded in UTF-8 without BOM : é --> *} |
---|
[4421] | 4 | |
---|
[6269] | 5 | {include file=$HeaderIncTPL} |
---|
[4421] | 6 | |
---|
[4437] | 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');"> |
---|
[10456] | 11 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"> |
---|
[4443] | 12 | {'Show'|@translate} |
---|
[4437] | 13 | </label> |
---|
| 14 | |
---|
| 15 | <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');"> |
---|
[10456] | 16 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"> |
---|
[4443] | 17 | {'Hide'|@translate} |
---|
[4437] | 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 | |
---|
[8956] | 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 | -----------------------------------------------------------------------------> |
---|
[4421] | 28 | |
---|
| 29 | {* <!-- Duplication configuration parameters --> *} |
---|
[8956] | 30 | <form action = "" method = "post" class = "titrePage" name = "ec_duplic_conf"> |
---|
[4421] | 31 | <fieldset> |
---|
| 32 | <legend>{'Configuration'|@translate}</legend> |
---|
| 33 | <table> |
---|
| 34 | <tr> |
---|
| 35 | <td style = "text-align:right; font-weight:bold;"> |
---|
[8956] | 36 | {'Duplication allowance'|@translate} |
---|
[4421] | 37 | </td> |
---|
| 38 | <td> |
---|
[8956] | 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} |
---|
[10456] | 43 | > |
---|
[8956] | 44 | {'No account'|@translate} |
---|
[10456] | 45 | </label><br> |
---|
[8956] | 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} |
---|
[10456] | 50 | > |
---|
[8956] | 51 | {'Selection per group'|@translate} |
---|
[10456] | 52 | </label><br> |
---|
[8956] | 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} |
---|
[10456] | 57 | > |
---|
[8956] | 58 | {'All accounts'|@translate} |
---|
| 59 | </label> |
---|
[4421] | 60 | </td> |
---|
| 61 | <td> </td><td> </td><td> </td> {* <!-- sorry :-\ --> *} |
---|
| 62 | <td style = "text-align:right; font-weight:bold;"> |
---|
[8956] | 63 | {$ec_dup_link_conf} |
---|
[4421] | 64 | </td> |
---|
| 65 | <td> |
---|
[8956] | 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} |
---|
[10456] | 70 | > |
---|
[8956] | 71 | {'No account'|@translate} |
---|
[10456] | 72 | </label><br> |
---|
[8956] | 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} |
---|
[10456] | 77 | > |
---|
[8956] | 78 | {'All but generics'|@translate} |
---|
[10456] | 79 | </label><br> |
---|
[8956] | 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} |
---|
[10456] | 84 | > |
---|
[8956] | 85 | {'All accounts'|@translate} |
---|
[10456] | 86 | </label><br> |
---|
[4421] | 87 | </td> |
---|
| 88 | </tr> |
---|
[8956] | 89 | </table> |
---|
[10456] | 90 | <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'Save dup. config btn'|@translate}"> |
---|
[4421] | 91 | </fieldset> |
---|
| 92 | </form> |
---|
| 93 | |
---|
| 94 | {* <!-- Duplication settings by groups / types / user ids --> *} |
---|
[8956] | 95 | <form action = "" method = "post" name = "ec_duplic_set" id="categoryPermissions"> |
---|
[4421] | 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} |
---|
[10456] | 103 | <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li> |
---|
[4421] | 104 | {/foreach} |
---|
[8956] | 105 | </ul> |
---|
[10456] | 106 | <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'Deny to groups btn'|@translate}"> |
---|
[4421] | 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} |
---|
[8956] | 115 | </ul> |
---|
[10456] | 116 | <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'Grant to groups btn'|@translate}"> |
---|
[4421] | 117 | </fieldset> |
---|
| 118 | |
---|
| 119 | <h4>{'Types'|@translate}</h4> |
---|
| 120 | |
---|
| 121 | <fieldset> |
---|
| 122 | <legend>{'Duplication allowed'|@translate}</legend> |
---|
| 123 | <ul> |
---|
| 124 | {if $ec_gen_granted} |
---|
[10456] | 125 | <li><label><input type = "checkbox" name = "deny_generic"> {'user_status_generic'|@translate}</label></li> |
---|
| 126 | <br> |
---|
[4421] | 127 | {/if} |
---|
| 128 | {foreach from=$types_granted_ids item=id} |
---|
[10456] | 129 | <li><label><input type = "checkbox" name = "deny_types[]" value = "{$id}"> {$all_types[$id]}</label></li> |
---|
[4421] | 130 | {/foreach} |
---|
[8956] | 131 | </ul> |
---|
[10456] | 132 | <input class = "submit" type = "submit" name = "deny_types_submit" value = "{'Deny to types btn'|@translate}"> |
---|
[4421] | 133 | </fieldset> |
---|
| 134 | |
---|
| 135 | <fieldset> |
---|
| 136 | <legend>{'Duplication denied'|@translate}</legend> |
---|
| 137 | <ul> |
---|
| 138 | {if !$ec_gen_granted} |
---|
[10456] | 139 | <li><label><input type = "checkbox" name = "grant_generic"> {'user_status_generic'|@translate}</label></li> |
---|
| 140 | <br> |
---|
[4421] | 141 | {/if} |
---|
| 142 | {foreach from=$types_denied_ids item=id} |
---|
[10456] | 143 | <li><label><input type = "checkbox" name = "grant_types[]" value = "{$id}"> {$all_types[$id]}</label></li> |
---|
[4421] | 144 | {/foreach} |
---|
[8956] | 145 | </ul> |
---|
[10456] | 146 | <input class = "submit" type = "submit" name = "grant_types_submit" value = "{'Grant to types btn'|@translate}"> |
---|
[4421] | 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} |
---|
[10456] | 155 | <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}"> {$all_users[$id]}</label></li> |
---|
[4421] | 156 | {/foreach} |
---|
[8956] | 157 | </ul> |
---|
[10456] | 158 | <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'Deny to users btn'|@translate}"> |
---|
[4421] | 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} |
---|
[8956] | 178 | </ul> |
---|
[10456] | 179 | <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'Grant to users btn'|@translate}"> |
---|
[4421] | 180 | </fieldset> |
---|
| 181 | |
---|
| 182 | </form> |
---|
| 183 | |
---|
[6269] | 184 | {include file=$FooterIncTPL} |
---|
[4421] | 185 | |
---|