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

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

[Event Cats] Add character "é" in all files so to keep them coded in UTF-8 w/o BOM

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