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

Last change on this file since 7832 was 7832, checked in by LucMorizur, 13 years ago

Some cosmetic corrections

File size: 10.3 KB
Line 
1{* <!-- Event Cats (event categories) LucMorizur June 2009 - ... --> *}
2
3{* <!-- Keeps file coded in UTF-8 without BOM: é --> *}
4
5{include file=$HeaderIncTPL}
6
7{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *}
8<div style = "text-align:right; font-style:italic;">
9  <span id = "ec_help_banner2">
10    {'Help banner'|@translate}&nbsp;
11    <label for = "ec_help_banner2_1" onclick = "ec_mark_help('ec_help_banner_1');">
12      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"/>
13      {'Show'|@translate}
14    </label>
15    &nbsp;
16    <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');">
17      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"/>
18      {'Hide'|@translate}
19    </label>
20    &nbsp;—&nbsp;
21  </span>
22  {if $ec_ap_ok}
23    {'Additional Pages active'|@translate}
24    <script type = "text/javascript">
25      var ec_ap_ok = {if count($add_pages) == 0}false{else}true{/if};
26    </script>
27  {else}
28    {'Additional Pages inactive'|@translate}
29    <script type = "text/javascript">
30      var ec_ap_ok = false;
31    </script>
32  {/if}
33</div><span id = "ec_help_ban"></span>
34<script type = "text/javascript"><!--
35  document.getElementById('ec_help_banner2').style.display = "none";
36//--></script>
37
38<form action = "" method = "post" class = "titrePage" name = "ec_gen_conf" onsubmit = "return ec_check_submit();">
39 
40  {* <!-- Duplication configuration parameters --> *}
41  <fieldset><legend>{'Duplication'|@translate}</legend>
42    <table>
43      <tr>
44        <td style = "text-align:right; font-weight:bold;">
45          {'Duplication allowance'|@translate}
46        </td>
47        <td>
48          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
49            <li style = "margin-bottom:0;">
50              <label for = "ec_dup_conf_none_id">
51                <input
52                  type = "radio" name = "ec_dup_conf" value = "0" id = "ec_dup_conf_none_id"
53                  {if $ec_conf.dup_allow == '0'} checked = "checked" {/if}
54               >
55                {'No account'|@translate}
56              </label>
57            </li>
58            <li style = "margin-bottom:0;">
59              <label for = "ec_dup_conf_group_id">
60                <input
61                  type = "radio" name = "ec_dup_conf" value = "2" id = "ec_dup_conf_group_id"
62                  {if $ec_conf.dup_allow == '2'} checked = "checked" {/if}
63               >
64                {'Selection per group'|@translate}
65              </label>
66            </li>
67            <li style = "margin-bottom:0;">
68              <label for = "ec_dup_conf_all_id">
69                <input
70                  type = "radio" name = "ec_dup_conf" value = "1" id = "ec_dup_conf_all_id"
71                  {if $ec_conf.dup_allow == '1'} checked = "checked" {/if}
72               >
73                {'All accounts'|@translate}
74              </label>
75            </li>
76          </ul>
77        </td>
78        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
79        <td style = "text-align:right; font-weight:bold;"> <!-- id = "Replace "Register" link ?" -->
80          {* <!-- Replace "Register" link ? --> *}
81          {$ec_dup_link_conf}
82        </td>
83        <td>
84          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
85            <li style = "margin-bottom:0;">
86              <label for = "ec_dup_disp_normal_id">
87                <input
88                  type = "radio" name = "ec_dup_disp" value = "0" id = "ec_dup_disp_normal_id"
89                  {if $ec_conf.duplic_display == '0'} checked = "checked" {/if}
90               >
91                {'No account'|@translate}
92              </label>
93            </li>
94            <li style = "margin-bottom:0;">
95              <label for = "ec_dup_disp_but_gen_id">
96                <input
97                  type = "radio" name = "ec_dup_disp" value = "2" id = "ec_dup_disp_but_gen_id"
98                  {if $ec_conf.duplic_display == '2'} checked = "checked" {/if}
99               >
100                {'All but generics'|@translate}
101              </label>
102            </li>
103            <li style = "margin-bottom:0;">
104              <label for = "ec_dup_disp_dup_id">
105                <input
106                  type = "radio" name = "ec_dup_disp" value = "1" id = "ec_dup_disp_dup_id"
107                  {if $ec_conf.duplic_display == '1'} checked = "checked" {/if}
108               >
109                {'All accounts'|@translate}
110              </label>
111            </li>
112          </ul>
113        </td>
114      </tr>
115    </table>
116  </fieldset>
117 
118  {* <!-- What to do if an unknown code is used --> *}
119  <fieldset><legend>{'Unknown code'|@translate}</legend>
120    <table>
121      <tr>
122        <td style = "text-align:right; vertical-align:top; font-weight:bold;">
123          {'Page for unknown code'|@translate}
124        </td>
125        <td>
126          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
127            <li style = "margin-bottom:0;">
128              <label for = "ec_unknown_0_id" onclick = "ec_mark_action('ec_unknown_0_id');">
129                <input type = "radio" name = "ec_unknown" value = "0" id = "ec_unknown_0_id">
130                {'Home'|@translate}
131              </label>
132            </li>
133            <li style = "margin-bottom:0;">
134              <label for = "ec_unknown_1_id" onclick = "ec_mark_action('ec_unknown_1_id');">
135                <input type = "radio" name = "ec_unknown" value = "1" id = "ec_unknown_1_id">
136                {'Access denied'|@translate}
137              </label>
138            </li>
139            <li {if !$ec_ap_ok or count($add_pages) == 0} style = "display:none;" {else} style = "margin-bottom:0;" {/if}>
140              {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *}
141              <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "ec_mark_action('ec_unknown_2_id');">
142                <input type = "radio" name = "ec_unknown" value = "2" id = "ec_unknown_2_id">
143                {'Additional Page'|@translate}<br>
144                <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" >
145                  {html_options options=$add_pages}
146                </select>
147              </label>
148            </li>
149          </ul>
150        </td>
151      </tr>
152    </table>
153  </fieldset>
154 
155  {* <!-- Other --> *}
156  <fieldset><legend>{'Other'|@translate}</legend>
157    <table>
158      <tr>
159        <td style = "text-align:right; font-weight:bold;">
160          {'Comments display'|@translate}
161        </td>
162        <td>
163          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
164            <li style = "margin-bottom:0;">
165              <label for = "ec_comments_0_id">
166                <input type = "radio" name = "ec_comments" value = "0" id = "ec_comments_0_id"
167                  {if $ec_conf.comment_display == '0'} checked = "checked" {/if}
168               >
169                {'As tooltip'|@translate}
170              </label>
171            </li>
172            <li style = "margin-bottom:0;">
173              <label for = "ec_comments_1_id">
174                <input type = "radio" name = "ec_comments" value = "1" id = "ec_comments_1_id"
175                  {if $ec_conf.comment_display == '1'} checked = "checked" {/if}
176               >
177                {'In a row'|@translate}
178              </label>
179            </li>
180          </ul>
181        </td>
182        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
183        <td style = "text-align:right; font-weight:bold;">
184          {'Help banner'|@translate}
185        </td>
186        <td>
187          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
188            <li style = "margin-bottom:0;">
189              <label for = "ec_2help_banner_1_id">
190                <input type = "radio" name = "ec_help_banner_onoff2" value = "1" id = "ec_2help_banner_1_id"
191                  onclick = "ec_mark_help('ec_help_banner_1');"
192               >
193                {'Banner on'|@translate}
194              </label>
195            </li>
196            <li style = "margin-bottom:0;">
197              <label for = "ec_2help_banner_0_id">
198                <input type = "radio" name = "ec_help_banner_onoff2" value = "0" id = "ec_2help_banner_0_id"
199                  onclick = "ec_mark_help('ec_help_banner_0');"
200               >
201                {'Banner off'|@translate}
202              </label>
203            </li>
204          </ul>
205        </td>
206        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
207        <td style = "text-align:right; font-weight:bold;">
208          {$ec_display_connect_conf}
209        </td>
210        <td>
211          <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
212            <li style = "margin-bottom:0;">
213              <label for = "ec_connection_1_id">
214                <input type = "radio" name = "ec_connection" value = "1" id = "ec_connection_1_id"
215                  {if $ec_conf.display_connection == '1'} checked = "checked" {/if}
216               >
217                {'Yes'|@translate}
218              </label>
219            </li>
220            <li style = "margin-bottom:0;">
221              <label for = "ec_connection_0_id">
222                <input type = "radio" name = "ec_connection" value = "0" id = "ec_connection_0_id"
223                  {if $ec_conf.display_connection == '0'} checked = "checked" {/if}
224               >
225                {'No'|@translate}
226              </label>
227            </li>
228          </ul>
229        </td>
230    </table>
231  </fieldset>
232 
233  <div style = "text-align:center;">
234    <input class = "submit" type = "submit" name = "ec_conf_submit" value = "{'Submit'|@translate}">
235  </div>
236 
237</form>
238
239
240{* <!-- JavaScript functions --> *}
241<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/config.js"></script>
242<script type = "text/javascript"><!--
243  ec_help_in_config = true;
244  ec_JS_message                                               = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
245  ec_selected_action                                          = "{$ec_conf.unknown_code}";
246  ec_selected_AP                                              = "{$ec_conf.unknown_code_ap_id}";
247  document.ec_gen_conf.ec_unknown[ec_selected_action].checked = 'checked';
248  if (de('ec_unknown_2_id').checked != '') ec_mark_action('ec_unknown_2_id');
249//--></script>
250
251{include file=$FooterIncTPL}
Note: See TracBrowser for help on using the repository browser.