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

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

Improvements, and replace '$' with 'jQuery'

File size: 26.5 KB
RevLine 
[5058]1{* <!-- Event Cats (event categories) LucMorizur June 2009 - ... --> *}
[3999]2
[7832]3{* <!-- Keeps file coded in UTF-8 without BOM: é --> *}
[4421]4
[7285]5{include file = $HeaderIncTPL}
6{include file = 'include/datepicker.inc.tpl'}
[3999]7
[7661]8{* <!-- Remove a strange unwanted line at the bottom of the screen --> *}
9{html_head} {literal}
[7847]10  <link rel = "stylesheet" type = "text/css" href = "{$RACINE_URL}themes/default/js/ui/theme/ui.datepicker.css">
[7661]11  <style type = "text/css"> #ui-datepicker-div { display:none; } </style>
12{/literal} {/html_head}
[7285]13
[4437]14{* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *}
[3999]15<div style = "text-align:right; font-style:italic;">
[4437]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"/>
[4443]20      {'Show'|@translate}
[4437]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"/>
[4443]25      {'Hide'|@translate}
[4437]26    </label>
[7285]27    &nbsp;—&nbsp;
[4437]28  </span>
[3999]29  {if $ec_ap_ok}
[4329]30    {'Additional Pages active'|@translate}
31    <script type = "text/javascript">
[7287]32      var ec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if};
[3999]33    </script>
34  {else}
[4329]35    {'Additional Pages inactive'|@translate}
36    <script type = "text/javascript">
37      var ec_ap_ok = false;
[3999]38    </script>
39  {/if}
[4437]40</div><span id = "ec_help_ban"></span>
41<script type = "text/javascript"><!--
42  document.getElementById('ec_help_banner2').style.display = "none";
43//--></script>
[3999]44
45{* <!-- Parameters list --> *}
[4019]46<form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();">
[7285]47  <p>
[7663]48    <input type = "hidden" id = "ec_act1_id" name = "ec_act1">
49    <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel">
[7285]50  </p>
[3999]51 
[4157]52  {* <!-- Page title. Can be "New entry" or "Entry modification" --> *}
[4002]53  <div style = "text-align:center;">
[4329]54    <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}">
[4181]55      <!--[if !IE]> <--> <label> <!--> <![endif]-->
[4157]56        {if $ec_is_creation}
[4329]57          {'New entry title'|@translate}
[4157]58        {else}
[4329]59          {'Modify entry title'|@translate}
[4092]60        {/if}
[4181]61      <!--[if !IE]> <--> </label> <!--> <![endif]-->
62      <!-- What we're able to do for our "prefered" browser |-( ...!  -->
[4157]63    </a>
[4058]64    {if $ec_is_creation}
[7663]65      <br><br>
[7693]66      <input class = "submit" type = "button" value = "{'Full auto'|@translate}"
[4058]67       id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/>
68    {/if}
[4371]69  </div>
[4002]70 
[7661]71  {* <!-- [ [ [New] / [existing] code] / [Existing entry] ] selection --> *}
[4371]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>
[7661]80    <ul>
[3999]81   
[4371]82      {if $ec_is_creation}
[4027]83        <li>
[4371]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} >
[7285]86            <input type = "radio" name = "ec_sel_code" value = "new" id = "ec_sel_code_new"/>
[4371]87            {'New code'|@translate}
[3999]88          </label>
[4371]89          <span {$ec_hidden_when_no_code} >&nbsp;</span>
90          <label for = "ec_in_up_code_id" style = "margin:0;">
[7693]91            <input class = "submit" type = "button" value = "{'Auto code button'|@translate}"
[4371]92             id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;"
[7663]93           >
[4371]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;">
[7285]97            {foreach from = $ec_auto_code_dg_nb item = ec_item name = listloop}
[4371]98              <option value = "{$ec_item}">
99                {$ec_item}
[7287]100                {if $smarty.foreach.listloop.index == 0}
[4371]101                  {'Auto code min'|@translate}
102                {/if}
[7287]103                {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1}
[4371]104                  {'Auto code max'|@translate}
105                {/if}
106              </option>
107            {/foreach}
108          </select>
[7663]109          {'Auto code end'|@translate}<br>
[7285]110        </li>
[7661]111       
[7285]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);"
[7663]115         >
[7285]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;"
[7663]121           >
[7285]122          </label>
[4027]123        </li>
124       
125        <li>
[4371]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}>
[7663]128            <input type = "radio" name = "ec_sel_code" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old">
[4371]129            {'Existing code'|@translate}
[3999]130          </label>
[4371]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} >
[7285]132            {foreach from = $ec_lists.duplicable_codes.codes key = ec_key item = ec_val}
[4418]133              <option value = "{$ec_val.id}">
134                {$ec_key}
135                {if $ec_val.comment != ''}
[7285]136                  &nbsp;—&nbsp;{$ec_val.comment}
[4418]137                {/if}
138              </option>
[4027]139            {/foreach}
[4418]140          </select>
[4027]141        </li>
[4228]142       
[4371]143      {else}
144       
145        {* <!-- Existing entry selection --> *}
[4228]146        <li>
[4371]147          {* <!-- Entry choice --> *}
148          <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);">
[7285]149            {foreach from = $ec_lists.ec_table item = ec_val}
[4418]150              <option value = "{$ec_val.id}">
151                {$ec_val.id} : {$ec_val.code}
152                {if $ec_val.comment != ''}
[7285]153                  &nbsp;—&nbsp;{$ec_val.comment}
[4418]154                {/if}
155              </option>
[4371]156            {/foreach}
157          </select>
[7285]158          &nbsp;—&nbsp;
[4440]159            <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}">
[4438]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"
[7663]162               onchange = "ec_new_comment_text = this.value;">
[4438]163            </label>
[4228]164        </li>
[3999]165       
[4371]166      {/if}
[7661]167   
[7285]168    </ul>
[4371]169  </fieldset>
170 
171  {* <!-- User to identify --> *}
172  <fieldset>
173    <legend style = "font-weight:bold;">
174      {'Identified user'|@translate}
[7663]175      <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn">&nbsp;</span><br>
[4371]176    </legend>
[7661]177      <ul>
[7285]178     
179        {if !$ec_is_creation}
180          <li>
181            {* <!-- None --> *}
182            <label onclick = "return ec_mark_user('ec_sel_user_none');">
[7663]183              <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none">
[7285]184              {'No user'|@translate}
[7663]185            </label><br>
[7285]186          </li>
187        {/if}
188       
[4228]189        <li>
[7285]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} >
[7663]192            <input type = "radio" name = "ec_sel_user" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user}>
[7285]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;">
[7693]197            <input class = "submit" type = "button" value = "{'Generate username'|@translate}"
[7285]198             id = "ec_submit_gen_user_id" onclick = "ec_gen_user();"
[7663]199           >
[7285]200          </label>
[4371]201        </li>
202        <li style = "padding-left: 30px;">
[7663]203          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br>
[4371]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();"
[7663]206           >
[4058]207          </label>
[7663]208          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br>
[4371]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();"
[7663]211           >
[4228]212          </label>
[7663]213          <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br>
[4371]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 != '');"
[7663]219           >
[4371]220            <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;">
221              {'New group'|@translate}
[7663]222            </span><br>
[4371]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;"
[7663]225           >
226          </label><br>
[7285]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} >
[7663]232            <input type = "radio" name = "ec_sel_user" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old">
[7285]233            {'Existing user'|@translate}
[4371]234          </label>
[7285]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}
[7663]239          </select><br>
[7285]240        </li>
[7661]241   
[7285]242      </ul>
[4371]243  </fieldset>
244 
245  {* <!-- Page to display --> *}
[7661]246  <fieldset>
[4371]247    <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend>
[7661]248    <ul>
[4371]249   
[7285]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>
[4371]256     
[7285]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');"
[7287]260         {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if}
[7285]261        >
[7663]262          <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p">
263          {'Additional Page'|@translate}<br>
[7285]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>
[4371]267        </label>
[7285]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');"
[7287]271         {if count($ec_lists.categories) == 0} style = "display:none;" {/if}
[7285]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;"
[7663]275         >
276          <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br>
[7285]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');"
[7287]284         {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if}
[7285]285        >
[7663]286          <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img">
287          {'Image id'|@translate}<br>
[7285]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');"
[7663]290         ><br>
291          <span id = "ec_in_up_imgs_warn">&nbsp;</span><br>
[7285]292        </label>
293       
294        {* <!-- Index page --> *}
295        <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');">
[7663]296          <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home">
[7285]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');">
[7663]303            <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused">
[7285]304            {'Access denied'|@translate}
305          </label>
306        {/if}
307      </li>
[7661]308   
[7285]309    </ul>
[4371]310  </fieldset>
311 
[7661]312  {* <!-- Validity date --> *}
[7811]313 
314  {*
315    <!--
316      Next steps:
[7879]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:
320          _ tick checkboxes when necessary;
321          _ throw proper information when submitting form.
[7811]322        _ implement PHP ;
323        _ commit, and drink a pint!
[7835]324      {''|@translate}
[7811]325    -->
326  *}
327 
[7661]328  <fieldset>
[7835]329    <legend style = "font-weight:bold;">{'Validity date'|@translate}</legend>
[7661]330    <table style = "margin-left: 0px; text-align:left;">
[7285]331      <tr>
[7828]332       
[7693]333        <td style="vertical-align:top; margin-top:0;">
[7847]334          <p style = "text-align:left; padding-bottom: 1em; padding-top: 0; margin-top: 0pt; font-weight: bold;">
[7661]335            <label for = "ec_valid_date_on_id">
336              <input type = "checkbox" name = "ec_valid_date_on" id = "ec_valid_date_on_id">
[7835]337              {'Activate'|@translate}
[7661]338            </label>
339          </p>
[7879]340          <p style = "text-align:left;">
341            <input type = "text" id = "ec_validity_sel_day" style = "text-align:right; border:none; cursor:default;" disabled = "disabled">&nbsp;
342            <select id = "ec_validity_day_id" name = "ec_validity_day" class = "ec_valid_ctl ec_datepicker">
[7832]343              <option value = "0">--</option>
[7661]344              {section name=day start=1 loop=32}
[7828]345                <option value = "{$smarty.section.day.index}">
[7661]346                  {$smarty.section.day.index}
347                </option>
348              {/section}
349            </select>
[7879]350            <select id = "ec_validity_month_id" name = "ec_validity_month" class = "ec_valid_ctl ec_datepicker">
[7828]351              {html_options options=$month_list}
[7661]352            </select>
[7864]353            <input id = "ec_validity_year_id" name = "ec_validity_year" type = "text" size = "4"
[7879]354             maxlength = "4" style = "text-align:right; " class = "ec_valid_ctl ec_datepicker">
355            <input id = "ec_validity_time_id" name = "ec_validity_time" type = "text" class = "ec_valid_ctl ec_datepicker"
[7864]356             size = "5" maxlength = "5" title = "{'Hours field tooltip'|@translate}" style = "text-align:right; ">
[7810]357            <input id = "ec_linked_date_id" name = "ec_linked_date_id" type = "hidden" size = "10" disabled = "disabled">
[7885]358            <img id = "ec_tmp_img" class = "ui-datepicker-trigger" alt = "" title = ""
359             src = "{$EVNTCATS_URLS.ROOT}icon/tmp.png" style = "display:none; cursor:default;">
[7661]360          </p>
[7693]361          <p style = "text-align:left;">
[7864]362            <input id = "ec_date_today_btn_id" type = "button" value = "{'Now + 2 mn'|@translate}"
[7879]363             class = "ec_valid_ctl submit" title = "{'Now button tooltip'|@translate}" onclick = "ec_mark_now();">&nbsp;—&nbsp;
[7864]364            <input id = "ec_set_time_to_btn_id" type = "button" value = "{'Set time to'|@translate}"
[7879]365             class = "ec_valid_ctl submit" onclick = "ec_valid_set_time_to(document.getElementById('ec_set_time_to_id').selectedIndex);">&nbsp;
366            <select id = "ec_set_time_to_id" name = "ec_set_time_to" onchange = "ec_valid_set_time_to(this.selectedIndex);" class = "ec_valid_ctl">
[7864]367              {section name=time start=0 loop=24}
368                <option label = "{if strlen($smarty.section.time.index) lt 2}0{/if}{$smarty.section.time.index}:00" value = "{$smarty.section.time.index}">
369                  {if strlen($smarty.section.time.index) lt 2}0{/if}{$smarty.section.time.index}:00
370                </option>
371              {/section}
372            </select>
373          </p>
374          <p style = "text-align:left;">
[7879]375            <input id = "ec_date_add_btn_id" type = "button" value = "{'Add'|@translate}" title = "{'Add button tooltip'|@translate}" class = "ec_valid_ctl submit"
[7828]376             onclick = "ec_add_time(document.getElementById('ec_date_add_val_id').value, document.getElementById('ec_date_add_kind_id').selectedIndex);">&nbsp;
[7879]377            <input id = "ec_date_add_val_id" type = "text" size = "5" maxlength = "5" value = "" style = "text-align:right;" class = "ec_valid_ctl">&nbsp;
378            <select id = "ec_date_add_kind_id" name = "ec_date_add_kind" class = "ec_valid_ctl">
[7835]379              <option label = "{'Minutes'|@translate}" value = "minutes">{'Minutes'|@translate}</option>
380              <option label = "{'Hours'|@translate}"   value = "hours"  >{'Hours'|@translate}</option>
381              <option label = "{'Days'|@translate}"    value = "days"   >{'Days'|@translate}</option>
382              <option label = "{'Months'|@translate}"  value = "months" >{'Months'|@translate}</option>
383              <option label = "{'Years'|@translate}"   value = "years"  >{'Years'|@translate}</option>
[7693]384            </select>
385          </p>
[7847]386          <br>
387          <table>
388            <tr>
389              <td style = "text-align:right; vertical-align:top; font-weight:bold;">
390                <label for = "ec_notify_id" title = "{'Notify label tooltip'|@translate}">
391                  <input type = "checkbox" name = "ec_notify" id = "ec_notify_id" disabled = "disabled">
392                  {'Do notify'|@translate}
393                </label>
394              </td>
395              <td style = "text-align:left;">
396                <ul style = "list-style-type:none; list-style-position:inside; padding-left:0.5em;">
397                  <li style = "margin-bottom:0;">
398                    <label for = "ec_notify_user_id">
[7879]399                      <input type = "checkbox" name = "ec_notify_user" id = "ec_notify_user_id" class = "ec_valid_ctl">
[7847]400                      {'The user'|@translate}
401                    </label>
402                  </li>
403                  <li style = "margin-bottom:0;">
404                    <label for = "ec_notify_webm_id">
[7879]405                      <input type = "checkbox" name = "ec_notify_webm" id = "ec_notify_webm_id" class = "ec_valid_ctl">
[7847]406                      {'The webmaster'|@translate}
407                    </label>
408                  </li>
409                  <li style = "margin-bottom:0;">
410                    <label for = "ec_notify_admins_id">
[7879]411                      <input type = "checkbox" name = "ec_notify_admins" id = "ec_notify_admins_id" class = "ec_valid_ctl">
[7847]412                      {'All administrators'|@translate}
413                    </label>
414                  </li>
415                </ul>
416              </td>
417            </tr>
418          </table>
[7810]419          <p style = "display:none;">
[7835]420            <!-- jQuery datepicker: see (french) http://fr.piwigo.org/forum/viewtopic.php?id=19042 -->
[7828]421            <select id = "ec_min_day_id" name = "ec_min_day">
[7832]422              <option value = "0">--</option>
[7828]423              {section name=day start=1 loop=32}
[7835]424                <option value = "{$smarty.section.day.index}">
[7828]425                  {$smarty.section.day.index}
426                </option>
427              {/section}
428            </select>
429            <select id = "ec_min_month_id" name = "ec_min_month">
[7835]430              {html_options options=$month_list}
[7828]431            </select>
[7835]432            <input id = "ec_min_year_id" name = "ec_min_year" type = "text" size = "4" maxlength = "4">
[7847]433            <input id = "ec_min_date_id" name = "ec_min_date_id" type = "hidden" disabled = "disabled">
434            <input id = "ec_valid_offset_id" name = "ec_valid_offset" type = "text">
[7693]435          </p>
[7835]436          {* <!-- For tests purpose; must be removed --> *}
[7693]437          <p style = "text-align:left;">
438            <span id = "ec_span_tst_id"></span>
439          </p>
[7835]440          {* <!-- /For tests purpose; must be removed --> *}
[7285]441        </td>
[7828]442       
[7811]443        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
[7828]444       
445        <td style="vertical-align:top; margin-top:0;">
[7661]446          <table>
447            <tr>
[7811]448              <td style = "text-align:right; vertical-align:top; font-weight:bold;">
[7835]449                {'Page once code outdated'|@translate}
[7661]450              </td>
451              <td style = "text-align:left;">
[7811]452                <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
[7810]453                  <li style = "margin-bottom:0;">
454                    <label for = "ec_date_unknown_0_id">
[7879]455                      <input type = "radio" name = "ec_date_unknown" value = "0" id = "ec_date_unknown_0_id" class = "ec_valid_ctl">
[7810]456                      {'Home'|@translate}
457                    </label>
458                  </li>
459                  <li style = "margin-bottom:0;">
460                    <label for = "ec_date_unknown_1_id">
[7879]461                      <input type = "radio" name = "ec_date_unknown" value = "1" id = "ec_date_unknown_1_id" class = "ec_valid_ctl">
[7810]462                      {'Access denied'|@translate}
463                    </label>
464                  </li>
465                  {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *}
466                  <li {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {else} style = "margin-bottom:0;" {/if} >
[7879]467                    <label for = "ec_date_in_up_aps_id">
468                      <input type = "radio" name = "ec_date_unknown" value = "2" id = "ec_date_unknown_2_id" class = "ec_valid_ctl">
[7810]469                      {'Additional Page'|@translate}<br>
[7879]470                      <select class = "ec_valid_ctl categoryList" name = "ec_date_in_up_aps" size = "30" id = "ec_date_in_up_aps_id" >
[7810]471                        {html_options options = $ec_lists.add_pages}
472                      </select>
473                    </label>
474                  </li>
475                </ul>
[7661]476              </td>
477            </tr>
478          </table>
[7285]479        </td>
[7661]480       
[7285]481      </tr>
482    </table>
[7661]483   
[7165]484  </fieldset>
485 
[7661]486 
487  <p style = "margin-top:0;">
[7663]488    <input class = "submit" type = "submit" value = "{'Submit'|@translate}" style = "margin-top:1em;">
489    <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();" style = "margin-top:1em;">
[3999]490  </p>
491</form>
492
493{* <!-- JavaScript functions --> *}
[4002]494<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
495<script type = "text/javascript"><!--
[4112]496  ec_is_creation                          = {if $ec_is_creation}true{else}false{/if};
[7693]497  ec_validity_on                          = {if $ec_validity_on}true{else}false{/if};
[4329]498  ec_up_code_lbl_forced_txt               = "{'Forced'|@translate}";
[4112]499  ec_JS_message['ec_gen_user_act_miss']   = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}";
500  ec_JS_message['ec_act_cat_miss']        = "{'ec_act_cat_miss'|@translate|@escape:javascript}";
501  ec_JS_message['ec_act_img_miss']        = "{'ec_act_img_miss'|@translate|@escape:javascript}";
[4263]502  ec_JS_message['ec_new_pwd_gen']         = "{'ec_new_pwd_gen'|@translate|@escape:javascript}";
[4472]503  ec_JS_message['ec_clk_entry_miss']      = "{'ec_clk_entry_miss'|@translate|@escape:javascript}";
[4181]504  ec_JS_message['ec_confirm_force']       = "{'ec_confirm_force'|@translate|@escape:javascript}";
[4112]505  ec_JS_message['ec_confirm_del_other']   = "{'ec_confirm_del_other'|@translate|@escape:javascript}";
[4157]506  ec_JS_message['ec_user_already_exists'] = "{'ec_user_already_exists'|@translate|@escape:javascript}";
507  ec_JS_message['ec_code_already_exists'] = "{'ec_code_already_exists'|@translate|@escape:javascript}";
[4158]508  ec_JS_message['ec_conf_pwd_dont_match'] = "{'ec_conf_pwd_dont_match'|@translate|@escape:javascript}";
[4181]509  ec_JS_message['ec_confirm_change_user'] = "{'ec_confirm_change_user'|@translate|@escape:javascript}";
[4329]510  ec_JS_message['Home']                   = "{'Home'|@translate}";
[4112]511  ec_JS_message['ec_submit_code_miss']    = "{'ec_submit_code_miss'|@translate}";
512  ec_JS_message['ec_submit_user_miss']    = "{'ec_submit_user_miss'|@translate}";
513  ec_JS_message['ec_submit_action_miss']  = "{'ec_submit_action_miss'|@translate}";
514  ec_JS_message['ec_submit_code_bad']     = "{'ec_submit_code_bad'|@translate}";
515  ec_default_action                       = "{$ec_default_action}";
516  ec_default_entry                        = "{$ec_default_entry}";
517  ec_auto_code_digits_nb                  = "{$ec_def_auto_code_dg_nb}";
518  {if $ec_is_creation}
[7285]519    {foreach from = $ec_lists.duplicable_codes.ids key = ec_key item = ec_val}
[4112]520      ec_duplic_codes[{$ec_key}] = {$ec_val};
521    {/foreach}
522  {/if}
[7285]523  {foreach from = $ec_lists.ec_table item = ec_val name = listloop}
[7864]524    ec_lists_temp[{$smarty.foreach.listloop.index}] =
[4418]525     "{$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}";
[4116]526  {/foreach}
[7864]527  {foreach from = $ec_days item = ec_day name = listloop}
528    ec_validity_days[{$smarty.foreach.listloop.index}] = "{$ec_day}";
529  {/foreach}
[4157]530  ec_build_ec_lists();
[7693]531  ec_init();
[7663]532  //-->
533</script>
[3999]534
[7285]535{include file = $FooterIncTPL}
Note: See TracBrowser for help on using the repository browser.