Ignore:
Timestamp:
Jan 28, 2011, 10:22:28 PM (13 years ago)
Author:
tiico
Message:
  • Correct hour/min bug when time is set to 00h00 and control coherence between end and begin dates/hours
  • Correct export to csv file (utf8decode)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ConcoursPhoto/admin/template/add_concours.tpl

    r8946 r8965  
    129129          </td>
    130130          <td>
    131             <input id="start_hour" name="start_hour" value="{$START_HOUR}" type="text" size="2" maxlength="2" >:
    132             <input id="start_min" name="start_min" value="{$START_MIN}" type="text" size="2" maxlength="2" >
     131              <select id="start_hour" name="start_hour">
     132                {section name=hour start=0 loop=24}
     133                <option value="{$smarty.section.hour.index}" {if $smarty.section.hour.index==$START_HOUR}selected="selected"{/if}>{$smarty.section.hour.index}</option>
     134                {/section}
     135              </select>
     136              <select id="start_min" name="start_min">
     137                {section name=min start=0 loop=60}
     138                <option value="{$smarty.section.min.index}" {if $smarty.section.min.index==$START_MIN}selected="selected"{/if}>{$smarty.section.min.index}</option>
     139                {/section}
     140              </select>
    133141          </td>
    134142        </tr>
     
    154162          </td>
    155163          <td>
    156             <input id="end_hour" name="end_hour" value="{$END_HOUR}" type="text" size="2" maxlength="2" >:
    157             <input id="end_min" name="end_min" value="{$END_MIN}" type="text" size="2" maxlength="2" >
     164              <select id="end_hour" name="end_hour">
     165                {section name=hour start=0 loop=24}
     166                <option value="{$smarty.section.hour.index}" {if $smarty.section.hour.index==$END_HOUR}selected="selected"{/if}>{$smarty.section.hour.index}</option>
     167                {/section}
     168              </select>
     169              <select id="end_min" name="end_min">
     170                {section name=min start=0 loop=60}
     171                <option value="{$smarty.section.min.index}" {if $smarty.section.min.index==$END_MIN}selected="selected"{/if}>{$smarty.section.min.index}</option>
     172                {/section}
     173              </select>
    158174          </td>
    159175           
Note: See TracChangeset for help on using the changeset viewer.