source: extensions/event_cats/admin/template/config.tpl @ 4418

Last change on this file since 4418 was 4418, checked in by LucMorizur, 14 years ago

[Event Cats] Adaptation for PEM

File size: 6.3 KB
Line 
1{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
2
3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
4
5{* <!-- Whether plugin Additionnal Pages is active or not --> *}
6<div style = "text-align:right; font-style:italic;">
7  {if $ec_ap_ok}
8    {'Additional Pages active'|@translate}
9    <script type = "text/javascript">
10      var ec_ap_ok = {if count($add_pages) == 0}false{else}true{/if};
11    </script>
12  {else}
13    {'Additional Pages inactive'|@translate}
14    <script type = "text/javascript">
15      var ec_ap_ok = false;
16    </script>
17  {/if}
18</div>
19
20<form action = "" method = "post" class = "titrePage" name = "ec_gen_conf" onsubmit = "return ec_check_submit();">
21 
22  {* <!-- Duplication configuration parameters --> *}
23  <h4>{'Duplication'|@translate}</h4>
24  <table>
25    <tr>
26      <td style = "text-align:right; font-weight:bold;">
27        {'Duplication allowance'|@translate}&nbsp;&nbsp;
28      </td>
29      <td>
30        <label for = "ec_dup_conf_none_id">
31          <input
32            type = "radio" name = "ec_dup_conf" value = "0" id = "ec_dup_conf_none_id"
33            {if $ec_conf.dup_allow == '0'} checked = "checked" {/if}
34          />
35          {'No account'|@translate}
36        </label><br />
37        <label for = "ec_dup_conf_group_id">
38          <input
39            type = "radio" name = "ec_dup_conf" value = "2" id = "ec_dup_conf_group_id"
40            {if $ec_conf.dup_allow == '2'} checked = "checked" {/if}
41          />
42          {'Selection per group'|@translate}
43        </label><br />
44        <label for = "ec_dup_conf_all_id">
45          <input
46            type = "radio" name = "ec_dup_conf" value = "1" id = "ec_dup_conf_all_id"
47            {if $ec_conf.dup_allow == '1'} checked = "checked" {/if}
48          />
49          {'All accounts'|@translate}
50        </label>
51      </td>
52      <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
53      <td style = "text-align:right; font-weight:bold;">
54        {* <!-- Replace "Register" link ? --> *}
55        {$ec_dup_link_conf}&nbsp;&nbsp;
56      </td>
57      <td>
58        <label for = "ec_dup_disp_normal_id">
59          <input
60            type = "radio" name = "ec_dup_disp" value = "0" id = "ec_dup_disp_normal_id"
61            {if $ec_conf.duplic_display == '0'} checked = "checked" {/if}
62          />
63          {'No account'|@translate}
64        </label><br />
65        <label for = "ec_dup_disp_but_gen_id">
66          <input
67            type = "radio" name = "ec_dup_disp" value = "2" id = "ec_dup_disp_but_gen_id"
68            {if $ec_conf.duplic_display == '2'} checked = "checked" {/if}
69          />
70          {'All but generics'|@translate}
71        </label><br />
72        <label for = "ec_dup_disp_dup_id">
73          <input
74            type = "radio" name = "ec_dup_disp" value = "1" id = "ec_dup_disp_dup_id"
75            {if $ec_conf.duplic_display == '1'} checked = "checked" {/if}
76          />
77          {'All accounts'|@translate}
78        </label><br />
79      </td>
80    </tr>
81    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
82  </table>
83 
84  {* <!-- What to do if an unknown code is used --> *}
85  <h4>{'Unknown code'|@translate}</h4>
86  <table>
87    <tr>
88      <td style = "text-align:right; vertical-align:top; font-weight:bold;">
89        {'Page for unknown code'|@translate}&nbsp;&nbsp;
90      </td>
91      <td>
92        <label for = "ec_unknown_0_id" onclick = "ec_mark_action('ec_unknown_0_id');">
93          <input type = "radio" name = "ec_unknown" value = "0" id = "ec_unknown_0_id" />
94          {'Home'|@translate}
95        </label><br />
96        <label for = "ec_unknown_1_id" onclick = "ec_mark_action('ec_unknown_1_id');">
97          <input type = "radio" name = "ec_unknown" value = "1" id = "ec_unknown_1_id" />
98          {'Access denied'|@translate}
99        </label><br />
100        {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *}
101        <label class = "ec_block" for = "ec_in_up_aps_id" {if !$ec_ap_ok or count($add_pages) == 0} style = "display:none;" {/if}
102         onclick = "ec_mark_action('ec_unknown_2_id');"
103        >
104          <input type = "radio" name = "ec_unknown" value = "2" id = "ec_unknown_2_id" for = "ec_in_up_aps_id" />
105          {'Additional Page'|@translate}<br />
106          <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" >
107            {html_options options=$add_pages}
108          </select>
109        </label>
110      </td>
111    </tr>
112    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
113  </table>
114 
115  {* <!-- Other --> *}
116  <h4>{'Other'|@translate}</h4>
117  <table>
118    <tr>
119      <td style = "text-align:right; font-weight:bold;">
120        {'Comments display'|@translate}&nbsp;&nbsp;
121      </td>
122      <td>
123        <label for = "ec_comments_0_id">
124          <input type = "radio" name = "ec_comments" value = "0" id = "ec_comments_0_id"
125            {if $ec_conf.comment_display == '0'} checked = "checked" {/if}
126          />
127          {'As tooltip'|@translate}
128        </label><br />
129        <label for = "ec_comments_1_id">
130          <input type = "radio" name = "ec_comments" value = "1" id = "ec_comments_1_id"
131            {if $ec_conf.comment_display == '1'} checked = "checked" {/if}
132          />
133          {'In a row'|@translate}
134        </label>
135    <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
136  </table>
137 
138  <div style = "text-align:center;">
139    <input class = "submit" type = "submit" name = "ec_conf_submit" value = "{'Submit'|@translate}" />
140  </div>
141 
142</form>
143
144
145{* <!-- JavaScript functions --> *}
146<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/config.js"></script>
147<script type = "text/javascript"><!--
148  ec_JS_message                                               = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
149  ec_selected_action                                          = "{$ec_conf.unknown_code}";
150  ec_selected_AP                                              = "{$ec_conf.unknown_code_ap_id}";
151  document.ec_gen_conf.ec_unknown[ec_selected_action].checked = 'checked';
152  if (de('ec_unknown_2_id').checked != '') ec_mark_action('ec_unknown_2_id');
153//--></script>
154
155{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
Note: See TracBrowser for help on using the repository browser.