source: extensions/event_cats/admin/template/duplication.tpl @ 4247

Revision 4247, 5.1 KB checked in by LucMorizur, 10 years ago (diff)

[Event Cats] Continue duplication management using cat_perm.php and cat_perm.tpl codes

Line 
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 ------------------------------------------------------
9A lot of below code has simply been copied-pasted from file cat_perm.tpl .
10Many thanks to people who wrote it !
11------------------------------------------------------------------------->
12
13{* <!-- Duplication configuration parameters --> *}
14<form 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" 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" 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" id = "ec_dup_conf_all_id" />
33            {'ec_dup_allowance_all'|@translate}
34          </label><br>
35        </td>
36        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
37        <td>
38          <span style = "font-weight:bold;">{'ec_duplication_display'|@translate}</span>
39        </td>
40        <td>
41          <label for = "ec_dup_disp_normal_id">
42            <input type = "radio" name = "ec_dup_disp" id = "ec_dup_disp_normal_id" />
43            {'ec_dup_display_normal'|@translate}{if $reg_display.0 != '0'} ("{$reg_display.1}"){/if}
44          </label><br>
45          <label for = "ec_dup_disp_dup_id">
46            <input type = "radio" name = "ec_dup_disp" id = "ec_dup_disp_dup_id" />
47            {'ec_dup_display_dup'|@translate} ("{'ec_duplication'|@translate}")
48          </label><br>
49        </td>
50      </tr>
51    </table>
52    <input class = "submit" type = "submit" name = "ec_duplic_conf_submit" value = "{'ec_dup_conf_submit_lbl'|@translate}" />
53  </fieldset>
54</form>
55
56{* <!-- Duplication settings by groups / user ids --> *}
57<form action = "" method = "post" name = "ec_duplic_set" id="categoryPermissions">
58
59  <h4>{'Groups'|@translate}</h4>
60
61  <fieldset>
62    <legend>{'Permission granted'|@translate}</legend>
63    <ul>
64      {foreach from=$group_granted_ids item=id}
65      <li><label><input type = "checkbox" name = "deny_groups[]" value = "{$id}" /> {$all_groups[$id]}</label></li>
66      {/foreach}
67    </ul>
68    <input class = "submit" type = "submit" name = "deny_groups_submit" value = "{'Deny selected groups'|@translate}" />
69  </fieldset>
70
71  <fieldset>
72    <legend>{'Permission denied'|@translate}</legend>
73    <ul>
74      {foreach from=$group_denied_ids item=id}
75      <li><label><input type = "checkbox" name = "grant_groups[]" value = "{$id}"> {$all_groups[$id]}</label></li>
76      {/foreach}
77    </ul>
78    <input class = "submit" type = "submit" name = "grant_groups_submit" value = "{'Grant selected groups'|@translate}" />
79  </fieldset>
80
81  <h4>{'Users'|@translate}</h4>
82
83  <fieldset>
84    <legend>{'Permission granted'|@translate}</legend>
85    <ul>
86      {foreach from=$user_granted_direct_ids item=id}
87      <li><label><input type = "checkbox" name = "deny_users[]" value = "{$id}" /> {$all_users[$id]}</label></li>
88      {/foreach}
89    </ul>
90    <input class = "submit" type = "submit" name = "deny_users_submit" value = "{'Deny selected users'|@translate}" />
91  </fieldset>
92
93  <fieldset>
94    <legend>{'Permission granted thanks to a group'|@translate}</legend>
95    {if isset($user_granted_indirects) }
96    <ul>
97      {foreach from=$user_granted_indirects item=user_group}
98      <li>{$user_group.USER} ({$user_group.GROUP})</li>
99      {/foreach}
100    </ul>
101    {/if}
102  </fieldset>
103
104  <fieldset>
105    <legend>{'Permission denied'|@translate}</legend>
106    <ul>
107      {foreach from=$user_denied_ids item=id}
108      <li><label><input type = "checkbox" name = "grant_users[]" value = "{$id}"> {$all_users[$id]}</label></li>
109      {/foreach}
110    </ul>
111    <input class = "submit" type = "submit" name = "grant_users_submit" value = "{'Grant selected users'|@translate}" />
112  </fieldset>
113
114</form>
115
116
117
118
119{* <!-- JavaScript functions --> *}
120{* <!--
121<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
122<script type = "text/javascript"><!--
123  ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
124  ec_JS_message['ec_act_cat_miss']      = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
125  ec_JS_message['ec_new_pwd_gen1']       = "{'ec_new_pwd_gen1'|@translate|@escape:javascript}";
126  ec_JS_message['ec_up_code_lbl_home']  = "{'ec_up_code_lbl_home'|@translate}";
127  ec_init();
128//--></script>
129--> *}
130
131{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
132
133{* <!--
134--> *}
135
Note: See TracBrowser for help on using the repository browser.