2004-04-13 15:43:47 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready -->
|
2005-12-04 17:56:06 +00:00
|
|
|
|
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<sect1 id="language.function.html.select.time">
|
2005-12-04 17:56:06 +00:00
|
|
|
|
<title>{html_select_time}</title>
|
|
|
|
|
|
<para>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<varname>{html_select_time}</varname> est une
|
2005-12-04 17:56:06 +00:00
|
|
|
|
<link linkend="language.custom.functions">fonction personnalis<69>e</link>
|
|
|
|
|
|
qui cr<63>e des listes d<>roulantes pour saisir une heure. Elle prends en charge l'heure,
|
|
|
|
|
|
les minutes, les secondes et le m<>ridian.
|
|
|
|
|
|
</para>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<para>
|
|
|
|
|
|
L'attribut <parameter>time</parameter> accepte comme param<61>tre diff<66>rents
|
|
|
|
|
|
formats. Ils peuvent <20>tre un timestamp unique, une cha<68>ne respectant le format
|
|
|
|
|
|
<literal>YYYYMMDDHHMMSS</literal> ou une cha<68>ne
|
|
|
|
|
|
valide pour la fonction php
|
|
|
|
|
|
<ulink url="&url.php-manual;strtotime"><varname>strtotime()</varname></ulink>.
|
|
|
|
|
|
</para>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<informaltable frame="all">
|
|
|
|
|
|
<tgroup cols="5">
|
|
|
|
|
|
<colspec colname="param" align="center" />
|
|
|
|
|
|
<colspec colname="type" align="center" />
|
|
|
|
|
|
<colspec colname="required" align="center" />
|
|
|
|
|
|
<colspec colname="default" align="center" />
|
|
|
|
|
|
<colspec colname="desc" />
|
|
|
|
|
|
<thead>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>Nom attribut</entry>
|
|
|
|
|
|
<entry>Type</entry>
|
|
|
|
|
|
<entry>Requis</entry>
|
2005-05-11 09:47:36 +00:00
|
|
|
|
<entry>D<EFBFBD>faut</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>Description</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>prefix</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>Time_</entry>
|
|
|
|
|
|
<entry>Par quoi pr<70>fixer la variable.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>time</entry>
|
|
|
|
|
|
<entry>timestamp</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>current time</entry>
|
|
|
|
|
|
<entry>Quel jour / heure utiliser.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>display_hours</entry>
|
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<entry>&true;</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>S'il faut afficher l'heure.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>display_minutes</entry>
|
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<entry>&true;</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>S'il faut afficher les minutes.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>display_seconds</entry>
|
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<entry>&true;</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>S'il faut afficher les secondes.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>display_meridian</entry>
|
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<entry>&true;</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>S'il faut afficher le m<>ridian (am/pm)</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>use_24_hours</entry>
|
|
|
|
|
|
<entry>boolean</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<entry>&true;</entry>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<entry>S'il faut utiliser l'horloge 24 heure.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>minute_interval</entry>
|
|
|
|
|
|
<entry>integer</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>1</entry>
|
|
|
|
|
|
<entry>Intervalle des minutes dans la liste
|
|
|
|
|
|
d<>roulante</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>second_interval</entry>
|
|
|
|
|
|
<entry>integer</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>1</entry>
|
|
|
|
|
|
<entry>Intervalle des secondes dans la liste
|
|
|
|
|
|
d<>roulante</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>field_array</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>n/a</entry>
|
|
|
|
|
|
<entry>Nom du tableau dans lequel les valeures
|
|
|
|
|
|
seront stock<63>es.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>all_extra</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
|
<entry>Ajoute des attributs suppl<70>mentaires aux balises
|
|
|
|
|
|
select / input.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>hour_extra</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
|
<entry>Ajoute des attributs suppl<70>mentaires aux balises
|
|
|
|
|
|
select / input de l'heure.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>minute_extra</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
|
<entry>Ajoute des attributs suppl<70>mentaires aux balises
|
|
|
|
|
|
select / input des minutes.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>second_extra</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
|
<entry>Ajoute des attributs suppl<70>mentaires aux balises
|
|
|
|
|
|
select / input des secondes.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
<row>
|
|
|
|
|
|
<entry>meridian_extra</entry>
|
|
|
|
|
|
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
|
|
|
|
|
<entry>Non</entry>
|
|
|
|
|
|
<entry>null</entry>
|
|
|
|
|
|
<entry>Ajoute des attributs suppl<70>mentaires aux balises
|
|
|
|
|
|
select / input du m<>ridian.</entry>
|
|
|
|
|
|
</row>
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</tgroup>
|
|
|
|
|
|
</informaltable>
|
|
|
|
|
|
<example>
|
|
|
|
|
|
<title>html_select_time</title>
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<programlisting>
|
|
|
|
|
|
<![CDATA[
|
2004-04-13 15:43:47 +00:00
|
|
|
|
{html_select_time use_24_hours=true}
|
2004-07-02 21:39:32 +00:00
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
|
|
|
|
|
<para>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<20> 9:20 et 23 secondes du matin, le template ci-dessus affichera :
|
2004-07-02 21:39:32 +00:00
|
|
|
|
</para>
|
|
|
|
|
|
<screen>
|
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
<select name="Time_Hour">
|
|
|
|
|
|
<option value="00">00</option>
|
|
|
|
|
|
<option value="01">01</option>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
...coup<75>...
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<option value="08">08</option>
|
|
|
|
|
|
<option value="09" selected>09</option>
|
|
|
|
|
|
<option value="10">10</option>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
...coup<75>...
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<option value="22">22</option>
|
|
|
|
|
|
<option value="23">23</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<select name="Time_Minute">
|
|
|
|
|
|
<option value="00">00</option>
|
|
|
|
|
|
<option value="01">01</option>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
...coup<75>...
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<option value="19">19</option>
|
|
|
|
|
|
<option value="20" selected>20</option>
|
|
|
|
|
|
<option value="21">21</option>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
...coup<75>...
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<option value="58">58</option>
|
|
|
|
|
|
<option value="59">59</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<select name="Time_Second">
|
|
|
|
|
|
<option value="00">00</option>
|
|
|
|
|
|
<option value="01">01</option>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
...coup<75>...
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<option value="22">22</option>
|
|
|
|
|
|
<option value="23" selected>23</option>
|
|
|
|
|
|
<option value="24">24</option>
|
2006-10-03 18:55:36 +00:00
|
|
|
|
...coup<75>...
|
2004-07-02 21:39:32 +00:00
|
|
|
|
<option value="58">58</option>
|
|
|
|
|
|
<option value="59">59</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<select name="Time_Meridian">
|
|
|
|
|
|
<option value="am" selected>AM</option>
|
|
|
|
|
|
<option value="pm">PM</option>
|
|
|
|
|
|
</select>
|
|
|
|
|
|
]]>
|
|
|
|
|
|
</screen>
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</example>
|
2005-05-24 21:06:06 +00:00
|
|
|
|
<para>
|
|
|
|
|
|
Voir aussi
|
2006-10-03 18:55:36 +00:00
|
|
|
|
<link linkend="language.variables.smarty.now"><parameter>$smarty.now</parameter></link>,
|
|
|
|
|
|
<link linkend="language.function.html.select.date"><varname>{html_select_date}</varname></link> et
|
2005-12-04 17:56:06 +00:00
|
|
|
|
les <link linkend="tips.dates">astuces sur les dates</link>.
|
2005-05-24 21:06:06 +00:00
|
|
|
|
</para>
|
2004-04-13 15:43:47 +00:00
|
|
|
|
</sect1>
|
2005-12-04 17:56:06 +00:00
|
|
|
|
|
2004-04-13 15:43:47 +00:00
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
|
|
Local variables:
|
|
|
|
|
|
mode: sgml
|
|
|
|
|
|
sgml-omittag:t
|
|
|
|
|
|
sgml-shorttag:t
|
|
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
|
|
sgml-indent-step:1
|
|
|
|
|
|
sgml-indent-data:t
|
|
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
|
|
sgml-parent-document:nil
|
|
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
|
|
End:
|
|
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
|
|
vi: ts=1 sw=1
|
2005-12-04 17:56:06 +00:00
|
|
|
|
-->
|