source: extensions/event_cats/admin/template/autolog_new.tpl @ 7864

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

Validity date presentation somehow finished now

File size: 26.0 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{include file = 'include/datepicker.inc.tpl'}
7
8{* <!-- Remove a strange unwanted line at the bottom of the screen --> *}
9{html_head} {literal}
10  <link rel = "stylesheet" type = "text/css" href = "{$RACINE_URL}themes/default/js/ui/theme/ui.datepicker.css">
11  <style type = "text/css"> #ui-datepicker-div { display:none; } </style>
12{/literal} {/html_head}
13
14{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *}
15<div style = "text-align:right; font-style:italic;">
16  <span id = "ec_help_banner2">
17    {'Help banner'|@translate}&nbsp;
18    <label for = "ec_help_banner2_1" onclick = "ec_mark_help('ec_help_banner_1');">
19      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"/>
20      {'Show'|@translate}
21    </label>
22    &nbsp;
23    <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');">
24      <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"/>
25      {'Hide'|@translate}
26    </label>
27    &nbsp;—&nbsp;
28  </span>
29  {if $ec_ap_ok}
30    {'Additional Pages active'|@translate}
31    <script type = "text/javascript">
32      var ec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if};
33    </script>
34  {else}
35    {'Additional Pages inactive'|@translate}
36    <script type = "text/javascript">
37      var ec_ap_ok = false;
38    </script>
39  {/if}
40</div><span id = "ec_help_ban"></span>
41<script type = "text/javascript"><!--
42  document.getElementById('ec_help_banner2').style.display = "none";
43//--></script>
44
45{* <!-- Parameters list --> *}
46<form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();">
47  <p>
48    <input type = "hidden" id = "ec_act1_id" name = "ec_act1">
49    <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel">
50  </p>
51 
52  {* <!-- Page title. Can be "New entry" or "Entry modification" --> *}
53  <div style = "text-align:center;">
54    <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}">
55      <!--[if !IE]> <--> <label> <!--> <![endif]-->
56        {if $ec_is_creation}
57          {'New entry title'|@translate}
58        {else}
59          {'Modify entry title'|@translate}
60        {/if}
61      <!--[if !IE]> <--> </label> <!--> <![endif]-->
62      <!-- What we're able to do for our "prefered" browser |-( ...!  -->
63    </a>
64    {if $ec_is_creation}
65      <br><br>
66      <input class = "submit" type = "button" value = "{'Full auto'|@translate}"
67       id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/>
68    {/if}
69  </div>
70 
71  {* <!-- [ [ [New] / [existing] code] / [Existing entry] ] selection --> *}
72  <fieldset>
73    <legend style = "font-weight:bold;">
74      {if $ec_is_creation}
75        {'Code'|@translate}
76      {else}
77        {'Selected entry'|@translate}
78      {/if}
79    </legend>
80    <ul>
81   
82      {if $ec_is_creation}
83        <li>
84          {* <!-- New code (to create) --> *}
85          <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} >
86            <input type = "radio" name = "ec_sel_code" value = "new" id = "ec_sel_code_new"/>
87            {'New code'|@translate}
88          </label>
89          <span {$ec_hidden_when_no_code} >&nbsp;</span>
90          <label for = "ec_in_up_code_id" style = "margin:0;">
91            <input class = "submit" type = "button" value = "{'Auto code button'|@translate}"
92             id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;"
93           >
94          </label>
95          {'Auto code mid'|@translate}
96          <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;">
97            {foreach from = $ec_auto_code_dg_nb item = ec_item name = listloop}
98              <option value = "{$ec_item}">
99                {$ec_item}
100                {if $smarty.foreach.listloop.index == 0}
101                  {'Auto code min'|@translate}
102                {/if}
103                {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1}
104                  {'Auto code max'|@translate}
105                {/if}
106              </option>
107            {/foreach}
108          </select>
109          {'Auto code end'|@translate}<br>
110        </li>
111       
112        <li style = "padding-left: 30px;">
113          <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40"
114           id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);"
115         >
116          &nbsp;—&nbsp;
117          <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}">
118            <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span>
119            <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id"
120              onchange = "ec_new_comment_text = this.value;"
121           >
122          </label>
123        </li>
124       
125        <li>
126          {* <!-- Known code --> *}
127          <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}>
128            <input type = "radio" name = "ec_sel_code" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old">
129            {'Existing code'|@translate}
130          </label>
131          <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code} >
132            {foreach from = $ec_lists.duplicable_codes.codes key = ec_key item = ec_val}
133              <option value = "{$ec_val.id}">
134                {$ec_key}
135                {if $ec_val.comment != ''}
136                  &nbsp;—&nbsp;{$ec_val.comment}
137                {/if}
138              </option>
139            {/foreach}
140          </select>
141        </li>
142       
143      {else}
144       
145        {* <!-- Existing entry selection --> *}
146        <li>
147          {* <!-- Entry choice --> *}
148          <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);">
149            {foreach from = $ec_lists.ec_table item = ec_val}
150              <option value = "{$ec_val.id}">
151                {$ec_val.id} : {$ec_val.code}
152                {if $ec_val.comment != ''}
153                  &nbsp;—&nbsp;{$ec_val.comment}
154                {/if}
155              </option>
156            {/foreach}
157          </select>
158          &nbsp;—&nbsp;
159            <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}">
160              <span style = "font-weight:bold;  font-style:italic;">{'Comment'|@translate}</span>
161              <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id"
162               onchange = "ec_new_comment_text = this.value;">
163            </label>
164        </li>
165       
166      {/if}
167   
168    </ul>
169  </fieldset>
170 
171  {* <!-- User to identify --> *}
172  <fieldset>
173    <legend style = "font-weight:bold;">
174      {'Identified user'|@translate}
175      <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br>
176    </legend>
177      <ul>
178     
179        {if !$ec_is_creation}
180          <li>
181            {* <!-- None --> *}
182            <label onclick = "return ec_mark_user('ec_sel_user_none');">
183              <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none">
184              {'No user'|@translate}
185            </label><br>
186          </li>
187        {/if}
188       
189        <li>
190          {* <!-- New user (to create) --> *}
191          <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} >
192            <input type = "radio" name = "ec_sel_user" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user}>
193            {'New generic user'|@translate}
194          </label>
195          <span {$ec_hidden_when_no_user} >&nbsp;</span>
196          <label for = "ec_in_up_usr_txt_id" style = "margin:0;">
197            <input class = "submit" type = "button" value = "{'Generate username'|@translate}"
198             id = "ec_submit_gen_user_id" onclick = "ec_gen_user();"
199           >
200          </label>
201        </li>
202        <li style = "padding-left: 30px;">
203          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br>
204            <input type = "text" name = "login" id = "ec_in_up_usr_txt_id" maxlength = "50"
205             size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();"
206           >
207          </label>
208          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br>
209            <input type = "text" name = "password" id = "ec_in_up_psd_txt_id" maxlength = "32"
210             size = "20" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();"
211           >
212          </label>
213          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br>
214            <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/>
215          </label>
216          <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id">
217            <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id"
218             onchange = "ec_selected_old_group = (this.checked != '');"
219           >
220            <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;">
221              {'New group'|@translate}
222            </span><br>
223            <input type = "text" name = "groupname" id = "ec_in_up_grp_txt_id" maxlength = "32"
224             size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;"
225           >
226          </label><br>
227        </li>
228       
229        <li>
230          {* <!-- Known user --> *}
231          <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} >
232            <input type = "radio" name = "ec_sel_user" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old">
233            {'Existing user'|@translate}
234          </label>
235          <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onchange = "ec_change_user_list(this.value);" {$ec_hidden_when_no_user} >
236            {foreach from = $ec_lists.user_ids key = ec_key item = ec_val}
237              <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option>
238            {/foreach}
239          </select><br>
240        </li>
241   
242      </ul>
243  </fieldset>
244 
245  {* <!-- Page to display --> *}
246  <fieldset>
247    <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend>
248    <ul>
249   
250      <li>
251        <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();">
252          <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id">
253          <span id = "ec_style_forced_id">&nbsp;</span>
254        </label>
255      </li>
256     
257      <li>
258        {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *}
259        <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');"
260         {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if}
261        >
262          <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p">
263          {'Additional Page'|@translate}<br>
264          <select class = "categoryList" name = "ec_in_up_aps" size = "30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" >
265            {html_options options = $ec_lists.add_pages}
266          </select>
267        </label>
268       
269        {* <!-- Category, provided at least one category is available --> *}
270        <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');"
271         {if count($ec_lists.categories) == 0} style = "display:none;" {/if}
272        >
273          <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat"
274            onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;"
275         >
276          <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br>
277          <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;">
278            {html_options options = $ec_lists.categories}
279          </select>
280        </label>
281       
282        {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *}
283        <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');"
284         {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if}
285        >
286          <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img">
287          {'Image id'|@translate}<br>
288          <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6"
289           size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');"
290         ><br>
291          <span id = "ec_in_up_imgs_warn">&nbsp;</span><br>
292        </label>
293       
294        {* <!-- Index page --> *}
295        <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');">
296          <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home">
297          {'Home'|@translate}
298        </label>
299       
300        {* <!-- Access denied page (only when modifying an entry) --> *}
301        {if !$ec_is_creation}
302          <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');">
303            <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused">
304            {'Access denied'|@translate}
305          </label>
306        {/if}
307      </li>
308   
309    </ul>
310  </fieldset>
311 
312  {* <!-- Validity date --> *}
313 
314  {*
315    <!--
316      Next steps:
317        _ check if initialize validity date with JS is doable ;   DONE
318        _ check if ' onchange = "ec_update_ts();" ' can be used ; DONE
319        _ implement JS ; DONE
320        _ implement PHP ;
321        _ commit, and drink a pint!
322      {''|@translate}
323    -->
324  *}
325 
326  <fieldset>
327    <legend style = "font-weight:bold;">{'Validity date'|@translate}</legend>
328    <table style = "margin-left: 0px; text-align:left;">
329      <tr>
330       
331        <td style="vertical-align:top; margin-top:0;">
332          <p style = "text-align:left; padding-bottom: 1em; padding-top: 0; margin-top: 0pt; font-weight: bold;">
333            <label for = "ec_valid_date_on_id">
334              <input type = "checkbox" name = "ec_valid_date_on" id = "ec_valid_date_on_id">
335              {'Activate'|@translate}
336            </label>
337          </p>
338          <p style = "text-align:left;{* padding:0.5em; border:1px solid #666666; *}">
339            <input type = "text" id = "ec_validity_sel_day" style = "text-align:right; border:none;" disabled = "disabled">&nbsp;
340            <select id = "ec_validity_day_id" name = "ec_validity_day" class = "ec_datepicker">
341              <option value = "0">--</option>
342              {section name=day start=1 loop=32}
343                <option value = "{$smarty.section.day.index}">
344                  {$smarty.section.day.index}
345                </option>
346              {/section}
347            </select>
348            <select id = "ec_validity_month_id" name = "ec_validity_month" class = "ec_datepicker">
349              {html_options options=$month_list}
350            </select>
351            <input id = "ec_validity_year_id" name = "ec_validity_year" type = "text" size = "4"
352             maxlength = "4" style = "text-align:right; " class = "ec_datepicker">
353            <input id = "ec_validity_time_id" name = "ec_validity_time" type = "text" class = "ec_datepicker"
354             size = "5" maxlength = "5" title = "{'Hours field tooltip'|@translate}" style = "text-align:right; ">
355            <input id = "ec_linked_date_id" name = "ec_linked_date_id" type = "hidden" size = "10" disabled = "disabled">
356          </p>
357          <p style = "text-align:left;">
358            <input id = "ec_date_today_btn_id" type = "button" value = "{'Now + 2 mn'|@translate}"
359             class = "submit" title = "{'Now button tooltip'|@translate}" onclick = "ec_mark_now();">&nbsp;—&nbsp;
360            <input id = "ec_set_time_to_btn_id" type = "button" value = "{'Set time to'|@translate}"
361             class = "submit" onclick = "ec_valid_set_time_to(document.getElementById('ec_set_time_to_id').selectedIndex);">&nbsp;
362            <select id = "ec_set_time_to_id" name = "ec_set_time_to" onchange = "ec_valid_set_time_to(this.selectedIndex);">
363              {section name=time start=0 loop=24}
364                <option label = "{if strlen($smarty.section.time.index) lt 2}0{/if}{$smarty.section.time.index}:00" value = "{$smarty.section.time.index}">
365                  {if strlen($smarty.section.time.index) lt 2}0{/if}{$smarty.section.time.index}:00
366                </option>
367              {/section}
368            </select>
369          </p>
370          <p style = "text-align:left;">
371            <input id = "ec_date_add_btn_id" type = "button" value = "{'Add'|@translate}" title = "{'Add button tooltip'|@translate}" class = "submit"
372             onclick = "ec_add_time(document.getElementById('ec_date_add_val_id').value, document.getElementById('ec_date_add_kind_id').selectedIndex);">&nbsp;
373            <input id = "ec_date_add_val_id" type = "text" size = "5" maxlength = "5" value = "" style = "text-align:right;">&nbsp;
374            <select id = "ec_date_add_kind_id" name = "ec_date_add_kind">
375              <option label = "{'Minutes'|@translate}" value = "minutes">{'Minutes'|@translate}</option>
376              <option label = "{'Hours'|@translate}"   value = "hours"  >{'Hours'|@translate}</option>
377              <option label = "{'Days'|@translate}"    value = "days"   >{'Days'|@translate}</option>
378              <option label = "{'Months'|@translate}"  value = "months" >{'Months'|@translate}</option>
379              <option label = "{'Years'|@translate}"   value = "years"  >{'Years'|@translate}</option>
380            </select>
381          </p>
382          <br>
383          <table>
384            <tr>
385              <td style = "text-align:right; vertical-align:top; font-weight:bold;">
386                <label for = "ec_notify_id" title = "{'Notify label tooltip'|@translate}">
387                  <input type = "checkbox" name = "ec_notify" id = "ec_notify_id" disabled = "disabled">
388                  {'Do notify'|@translate}
389                </label>
390              </td>
391              <td style = "text-align:left;">
392                <ul style = "list-style-type:none; list-style-position:inside; padding-left:0.5em;">
393                  <li style = "margin-bottom:0;">
394                    <label for = "ec_notify_user_id">
395                      <input type = "checkbox" name = "ec_notify_user" id = "ec_notify_user_id">
396                      {'The user'|@translate}
397                    </label>
398                  </li>
399                  <li style = "margin-bottom:0;">
400                    <label for = "ec_notify_webm_id">
401                      <input type = "checkbox" name = "ec_notify_webm" id = "ec_notify_webm_id">
402                      {'The webmaster'|@translate}
403                    </label>
404                  </li>
405                  <li style = "margin-bottom:0;">
406                    <label for = "ec_notify_admins_id">
407                      <input type = "checkbox" name = "ec_notify_admins" id = "ec_notify_admins_id">
408                      {'All administrators'|@translate}
409                    </label>
410                  </li>
411                </ul>
412              </td>
413            </tr>
414          </table>
415          <p style = "display:none;">
416            <!-- jQuery datepicker: see (french) http://fr.piwigo.org/forum/viewtopic.php?id=19042 -->
417            <select id = "ec_min_day_id" name = "ec_min_day">
418              <option value = "0">--</option>
419              {section name=day start=1 loop=32}
420                <option value = "{$smarty.section.day.index}">
421                  {$smarty.section.day.index}
422                </option>
423              {/section}
424            </select>
425            <select id = "ec_min_month_id" name = "ec_min_month">
426              {html_options options=$month_list}
427            </select>
428            <input id = "ec_min_year_id" name = "ec_min_year" type = "text" size = "4" maxlength = "4">
429            <input id = "ec_min_date_id" name = "ec_min_date_id" type = "hidden" disabled = "disabled">
430            <input id = "ec_valid_offset_id" name = "ec_valid_offset" type = "text">
431          </p>
432          {* <!-- For tests purpose; must be removed --> *}
433          <p style = "text-align:left;">
434            <span id = "ec_span_tst_id"></span>
435          </p>
436          {* <!-- /For tests purpose; must be removed --> *}
437        </td>
438       
439        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
440       
441        <td style="vertical-align:top; margin-top:0;">
442          <table>
443            <tr>
444              <td style = "text-align:right; vertical-align:top; font-weight:bold;">
445                {'Page once code outdated'|@translate}
446              </td>
447              <td style = "text-align:left;">
448                <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
449                  <li style = "margin-bottom:0;">
450                    <label for = "ec_date_unknown_0_id">
451                      <input type = "radio" name = "ec_date_unknown" value = "0" id = "ec_date_unknown_0_id">
452                      {'Home'|@translate}
453                    </label>
454                  </li>
455                  <li style = "margin-bottom:0;">
456                    <label for = "ec_date_unknown_1_id">
457                      <input type = "radio" name = "ec_date_unknown" value = "1" id = "ec_date_unknown_1_id">
458                      {'Access denied'|@translate}
459                    </label>
460                  </li>
461                  {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *}
462                  <li {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {else} style = "margin-bottom:0;" {/if} >
463                    <label class = "ec_date_block" for = "ec_date_in_up_aps_id">
464                      <input type = "radio" name = "ec_date_unknown" value = "2" id = "ec_date_unknown_2_id">
465                      {'Additional Page'|@translate}<br>
466                      <select class = "categoryList" name = "ec_date_in_up_aps" size = "30" id = "ec_date_in_up_aps_id" >
467                        {html_options options = $ec_lists.add_pages}
468                      </select>
469                    </label>
470                  </li>
471                </ul>
472              </td>
473            </tr>
474          </table>
475        </td>
476       
477      </tr>
478    </table>
479   
480  </fieldset>
481 
482 
483  <p style = "margin-top:0;">
484    <input class = "submit" type = "submit" value = "{'Submit'|@translate}" style = "margin-top:1em;">
485    <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();" style = "margin-top:1em;">
486  </p>
487</form>
488
489{* <!-- JavaScript functions --> *}
490<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
491<script type = "text/javascript"><!--
492  ec_is_creation                          = {if $ec_is_creation}true{else}false{/if};
493  ec_validity_on                          = {if $ec_validity_on}true{else}false{/if};
494  ec_up_code_lbl_forced_txt               = "{'Forced'|@translate}";
495  ec_JS_message['ec_gen_user_act_miss']   = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
496  ec_JS_message['ec_act_cat_miss']        = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
497  ec_JS_message['ec_act_img_miss']        = "{'ec_act_img_miss'|@translate|@escape:javascript}";
498  ec_JS_message['ec_new_pwd_gen']         = "{'ec_new_pwd_gen'|@translate|@escape:javascript}";
499  ec_JS_message['ec_clk_entry_miss']      = "{'ec_clk_entry_miss'|@translate|@escape:javascript}";
500  ec_JS_message['ec_confirm_force']       = "{'ec_confirm_force'|@translate|@escape:javascript}";
501  ec_JS_message['ec_confirm_del_other']   = "{'ec_confirm_del_other'|@translate|@escape:javascript}";
502  ec_JS_message['ec_user_already_exists'] = "{'ec_user_already_exists'|@translate|@escape:javascript}";
503  ec_JS_message['ec_code_already_exists'] = "{'ec_code_already_exists'|@translate|@escape:javascript}";
504  ec_JS_message['ec_conf_pwd_dont_match'] = "{'ec_conf_pwd_dont_match'|@translate|@escape:javascript}";
505  ec_JS_message['ec_confirm_change_user'] = "{'ec_confirm_change_user'|@translate|@escape:javascript}";
506  ec_JS_message['Home']                   = "{'Home'|@translate}";
507  ec_JS_message['ec_submit_code_miss']    = "{'ec_submit_code_miss'|@translate}";
508  ec_JS_message['ec_submit_user_miss']    = "{'ec_submit_user_miss'|@translate}";
509  ec_JS_message['ec_submit_action_miss']  = "{'ec_submit_action_miss'|@translate}";
510  ec_JS_message['ec_submit_code_bad']     = "{'ec_submit_code_bad'|@translate}";
511  ec_default_action                       = "{$ec_default_action}";
512  ec_default_entry                        = "{$ec_default_entry}";
513  ec_auto_code_digits_nb                  = "{$ec_def_auto_code_dg_nb}";
514  {if $ec_is_creation}
515    {foreach from = $ec_lists.duplicable_codes.ids key = ec_key item = ec_val}
516      ec_duplic_codes[{$ec_key}] = {$ec_val};
517    {/foreach}
518  {/if}
519  {foreach from = $ec_lists.ec_table item = ec_val name = listloop}
520    ec_lists_temp[{$smarty.foreach.listloop.index}] =
521     "{$ec_val.id};{$ec_val.code};{$ec_val.user_id};{$ec_val.action};{$ec_val.arg1};{$ec_val.arg2};{$ec_val.forced};{$ec_val.comment}";
522  {/foreach}
523  {foreach from = $ec_days item = ec_day name = listloop}
524    ec_validity_days[{$smarty.foreach.listloop.index}] = "{$ec_day}";
525  {/foreach}
526  ec_build_ec_lists();
527  ec_init();
528  //-->
529</script>
530
531{include file = $FooterIncTPL}
Note: See TracBrowser for help on using the repository browser.