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

Revision 7942, 27.2 KB checked in by LucMorizur, 9 years ago (diff)

Redesigning autolog_new.tpl page, slowly :-/ ...

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