Ignore:
Timestamp:
Nov 21, 2010, 4:47:29 PM (13 years ago)
Author:
LucMorizur
Message:

[Validity date] One step forward

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/template/autolog_new.tpl

    r7811 r7828  
    324324  <fieldset>
    325325    <legend style = "font-weight:bold;">Date de validité</legend>
    326    
    327326    <table style = "margin-left: 0px; text-align:left;">
    328327      <tr>
     328       
    329329        <td style="vertical-align:top; margin-top:0;">
    330           <p style = "text-align: left; padding-bottom: 1em; padding-top: 0; margin-top: 0pt;">
     330          <p style = "text-align: left; padding-bottom: 1em; padding-top: 0; margin-top: 0pt; font-weight: bold;">
    331331            <label for = "ec_valid_date_on_id">
    332332              <input type = "checkbox" name = "ec_valid_date_on" id = "ec_valid_date_on_id">
     
    338338          </p>
    339339          <p style = "text-align:left;">
    340             <select id = "ec_validity_day_id" name = "ec_validity_day" {* onchange = "ec_update_ts();" *} >
     340            <select id = "ec_validity_day_id" name = "ec_validity_day">
    341341              <option value = "0">——</option>
    342342              {section name=day start=1 loop=32}
    343                 <option value = "{$smarty.section.day.index}" {if $smarty.section.day.index == 14} selected = "selected" {/if} >
     343                <option value = "{$smarty.section.day.index}">
    344344                  {$smarty.section.day.index}
    345345                </option>
    346346              {/section}
    347347            </select>
    348             <select id = "ec_validity_month_id" name = "ec_validity_month" {* onchange = "ec_update_ts();" *} >
    349               {html_options options=$month_list selected=11}
     348            <select id = "ec_validity_month_id" name = "ec_validity_month">
     349              {html_options options=$month_list}
    350350            </select>
    351             <input id = "ec_validity_year_id" name = "ec_validity_year" type = "text" size = "4" maxlength = "4" value = "2010" {* onchange = "ec_update_ts();" *} >
    352             <input id = "ec_validity_time_id" name = "ec_validity_time" type = "text" size = "5" maxlength = "5" value = "22:50" {* onchange = "ec_update_ts();" *} >
     351            <input id = "ec_validity_year_id" name = "ec_validity_year" type = "text" size = "4" maxlength = "4">
     352            <input id = "ec_validity_time_id" name = "ec_validity_time" type = "text" size = "5" maxlength = "5">
    353353            <input id = "ec_linked_date_id" name = "ec_linked_date_id" type = "hidden" size = "10" disabled = "disabled">
    354354          </p>
    355355          <p style = "text-align:left;">
    356356            <input id = "ec_date_add_btn_id" type = "button" value = "Ajouter"
    357              onclick = "ec_update_date(document.getElementById('ec_date_add_val_id').value, document.getElementById('ec_date_add_kind_id').selectedIndex);">&nbsp;
     357             onclick = "ec_add_time(document.getElementById('ec_date_add_val_id').value, document.getElementById('ec_date_add_kind_id').selectedIndex);">&nbsp;
    358358            <input id = "ec_date_add_val_id" type = "text" size = "5" maxlength = "5" value = "">&nbsp;
    359359            <select id = "ec_date_add_kind_id" name = "ec_date_add_kind">
     
    365365            </select>
    366366          </p>
     367          <p>
     368            <table>
     369              <tr>
     370                <td style = "text-align:right; vertical-align:top; font-weight:bold;">
     371                  <label for = "ec_notify_id">
     372                    <input type = "checkbox" name = "ec_notify" id = "ec_notify_id" disabled = "disabled">
     373                    Lorsque le code<br>
     374                    a expiré, notifier
     375                  </label>
     376                </td>
     377                <td style = "text-align:left;">
     378                  <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;">
     379                    <li style = "margin-bottom:0;">
     380                      <label for = "ec_notify_user_id">
     381                        <input type = "checkbox" name = "ec_notify_user" id = "ec_notify_user_id">
     382                        l'utilisateur
     383                      </label>
     384                    </li>
     385                    <li style = "margin-bottom:0;">
     386                      <label for = "ec_notify_webm_id">
     387                        <input type = "checkbox" name = "ec_notify_webm" id = "ec_notify_webm_id">
     388                        le webmestre
     389                      </label>
     390                    </li>
     391                    <li style = "margin-bottom:0;">
     392                      <label for = "ec_notify_admins_id">
     393                        <input type = "checkbox" name = "ec_notify_admins" id = "ec_notify_admins_id">
     394                        tous les administrateurs
     395                      </label>
     396                    </li>
     397                  </ul>
     398                </td>
     399              </tr>
     400            </table>
     401          </p>
    367402          <p style = "display:none;">
    368403            <!-- jQuery datepicker : voir http://fr.piwigo.org/forum/viewtopic.php?id=19042 -->
     404            <select id = "ec_min_day_id" name = "ec_min_day">
     405              <option value = "0">——</option>
     406              {section name=day start=1 loop=32}
     407                <option value = "{$smarty.section.day.index}" {if $smarty.section.day.index == 14} selected = "selected" {/if} >
     408                  {$smarty.section.day.index}
     409                </option>
     410              {/section}
     411            </select>
     412            <select id = "ec_min_month_id" name = "ec_min_month">
     413              {html_options options=$month_list selected=11}
     414            </select>
     415            <input id = "ec_min_year_id" name = "ec_min_year" type = "text" size = "4" maxlength = "4" value = "2010" >
    369416            <input id = "ec_min_date_id" name = "ec_min_date_id" type = "hidden" size = "10" disabled = "disabled">
    370417          </p>
     
    375422          {* <!-- /For tests purpose ; must be removed --> *}
    376423        </td>
     424       
    377425        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> {* <!-- sorry :-\ --> *}
    378         <td>
     426       
     427        <td style="vertical-align:top; margin-top:0;">
    379428          <table>
    380429            <tr>
    381430              <td style = "text-align:right; vertical-align:top; font-weight:bold;">
    382                 Page à utiliser après<br>
    383                 expiration du code
     431                Page à affecter au<br>
     432                code une fois expiré
    384433              </td>
    385434              <td style = "text-align:left;">
     
    428477<script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script>
    429478<script type = "text/javascript"><!--
    430   pwg_initialization_datepicker("#ec_validity_day_id", "#ec_validity_month_id",
    431    "#ec_validity_year_id", "#ec_min_date_id", null, null, null);
    432   pwg_initialization_datepicker("#ec_validity_day_id", "#ec_validity_month_id",
    433    "#ec_validity_year_id", "#ec_linked_date_id", null, "#ec_min_date_id", null);
    434479  ec_is_creation                          = {if $ec_is_creation}true{else}false{/if};
    435480  ec_validity_on                          = {if $ec_validity_on}true{else}false{/if};
Note: See TracChangeset for help on using the changeset viewer.