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

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

Bullets implementation

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