mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
sync with EN
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.fetch">
|
||||
<title>fetch</title>
|
||||
<informaltable frame="all">
|
||||
@@ -72,18 +72,18 @@
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{* Inclus du javascript dans votre template *}
|
||||
{fetch file="/export/httpd/www.domain.com/docs/navbar.js"}
|
||||
{fetch file="/export/httpd/www.example.com/docs/navbar.js"}
|
||||
|
||||
{* r<>cup<75>re les informations m<>t<EFBFBD>o d'un autre site sur votre page *}
|
||||
{fetch file="http://www.myweather.com/68502/"}
|
||||
|
||||
{* r<>cup<75>re les titres depuis un fichier ftp *}
|
||||
{fetch file="ftp://user:password@ftp.domain.com/path/to/currentheadlines.txt"}
|
||||
{fetch file="ftp://user:password@ftp.example.com/path/to/currentheadlines.txt"}
|
||||
|
||||
{* assigne le contenu r<>cup<75>r<EFBFBD> <20> une variable de template *}
|
||||
{fetch file="http://www.myweather.com/68502/" assign="weather"}
|
||||
{if $weather ne ""}
|
||||
<b>{$weather}</b>
|
||||
<b>{$weather}</b>
|
||||
{/if}
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.html.options">
|
||||
<title>html_options</title>
|
||||
<informaltable frame="all">
|
||||
@@ -86,51 +86,54 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>html_options</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
index.php:
|
||||
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;
|
||||
$smarty->assign('id_client', array(1000,1001,1002,1003));
|
||||
$smarty->assign('nom_client', array('Joe Schmoe','Jack Smith','Jane
|
||||
$smarty->assign('id_client', array(1000,1001,1002,1003));
|
||||
$smarty->assign('nom_client', array('Joe Schmoe','Jack Smith','Jane
|
||||
Johnson','Charlie Brown'));
|
||||
$smarty->assign('client_id', 1001);
|
||||
$smarty->display('index.tpl');
|
||||
$smarty->assign('client_id', 1001);
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
index.tpl:
|
||||
|
||||
<select name=client_id>
|
||||
{html_options values=$id_client selected=$client_id output=$nom_client}
|
||||
</select>
|
||||
<select name=client_id>
|
||||
{html_options values=$id_client selected=$client_id output=$nom_client}
|
||||
</select>
|
||||
|
||||
|
||||
index.php:
|
||||
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;
|
||||
$smarty->assign('cust_options', array(
|
||||
1001 => 'Joe Schmoe',
|
||||
1002 => 'Jack Smith',
|
||||
1003 => 'Jane Johnson',
|
||||
1004 => 'Charlie Brown'));
|
||||
$smarty->assign('client_id', 1001);
|
||||
$smarty->display('index.tpl');
|
||||
$smarty->assign('cust_options', array(
|
||||
1001 => 'Joe Schmoe',
|
||||
1002 => 'Jack Smith',
|
||||
1003 => 'Jane Johnson',
|
||||
1004 => 'Charlie Brown'));
|
||||
$smarty->assign('client_id', 1001);
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
index.tpl:
|
||||
|
||||
<select name=client_id>
|
||||
{html_options options=$cust_options selected=$client_id}
|
||||
</select>
|
||||
<select name=client_id>
|
||||
{html_options options=$cust_options selected=$client_id}
|
||||
</select>
|
||||
|
||||
|
||||
SORTIE: (valable pour les deux exemples)
|
||||
|
||||
<select name=client_id>
|
||||
<option value="1000">Joe Schmoe</option>
|
||||
<option value="1001" selected="selected">Jack Smith</option>
|
||||
<option value="1002">Jane Johnson</option>
|
||||
<option value="1003">Charlie Brown</option>
|
||||
</select></programlisting>
|
||||
<select name=client_id>
|
||||
<option value="1000">Joe Schmoe</option>
|
||||
<option value="1001" selected="selected">Jack Smith</option>
|
||||
<option value="1002">Jane Johnson</option>
|
||||
<option value="1003">Charlie Brown</option>
|
||||
</select>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: partial -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: partial -->
|
||||
<sect1 id="language.function.html.select.date">
|
||||
<title>html_select_date</title>
|
||||
<informaltable frame="all">
|
||||
@@ -258,54 +258,54 @@ Ce qui donne en sortie :
|
||||
<screen>
|
||||
<![CDATA[
|
||||
<select name="Date_Month">
|
||||
<option value="1">January</option>
|
||||
<option value="2">February</option>
|
||||
<option value="3">March</option>
|
||||
<option value="4">April</option>
|
||||
<option value="5">May</option>
|
||||
<option value="6">June</option>
|
||||
<option value="7">July</option>
|
||||
<option value="8">August</option>
|
||||
<option value="9">September</option>
|
||||
<option value="10">October</option>
|
||||
<option value="11">November</option>
|
||||
<option value="12" selected="selected">December</option>
|
||||
<option value="1">January</option>
|
||||
<option value="2">February</option>
|
||||
<option value="3">March</option>
|
||||
<option value="4">April</option>
|
||||
<option value="5">May</option>
|
||||
<option value="6">June</option>
|
||||
<option value="7">July</option>
|
||||
<option value="8">August</option>
|
||||
<option value="9">September</option>
|
||||
<option value="10">October</option>
|
||||
<option value="11">November</option>
|
||||
<option value="12" selected="selected">December</option>
|
||||
</select>
|
||||
<select name="Date_Day">
|
||||
<option value="1">01</option>
|
||||
<option value="2">02</option>
|
||||
<option value="3">03</option>
|
||||
<option value="4">04</option>
|
||||
<option value="5">05</option>
|
||||
<option value="6">06</option>
|
||||
<option value="7">07</option>
|
||||
<option value="8">08</option>
|
||||
<option value="9">09</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13" selected>13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
<option value="21">21</option>
|
||||
<option value="22">22</option>
|
||||
<option value="23">23</option>
|
||||
<option value="24">24</option>
|
||||
<option value="25">25</option>
|
||||
<option value="26">26</option>
|
||||
<option value="27">27</option>
|
||||
<option value="28">28</option>
|
||||
<option value="29">29</option>
|
||||
<option value="30">30</option>
|
||||
<option value="31">31</option>
|
||||
<option value="1">01</option>
|
||||
<option value="2">02</option>
|
||||
<option value="3">03</option>
|
||||
<option value="4">04</option>
|
||||
<option value="5">05</option>
|
||||
<option value="6">06</option>
|
||||
<option value="7">07</option>
|
||||
<option value="8">08</option>
|
||||
<option value="9">09</option>
|
||||
<option value="10">10</option>
|
||||
<option value="11">11</option>
|
||||
<option value="12">12</option>
|
||||
<option value="13" selected>13</option>
|
||||
<option value="14">14</option>
|
||||
<option value="15">15</option>
|
||||
<option value="16">16</option>
|
||||
<option value="17">17</option>
|
||||
<option value="18">18</option>
|
||||
<option value="19">19</option>
|
||||
<option value="20">20</option>
|
||||
<option value="21">21</option>
|
||||
<option value="22">22</option>
|
||||
<option value="23">23</option>
|
||||
<option value="24">24</option>
|
||||
<option value="25">25</option>
|
||||
<option value="26">26</option>
|
||||
<option value="27">27</option>
|
||||
<option value="28">28</option>
|
||||
<option value="29">29</option>
|
||||
<option value="30">30</option>
|
||||
<option value="31">31</option>
|
||||
</select>
|
||||
<select name="Date_Year">
|
||||
<option value="2001" selected="selected">2001</option>
|
||||
<option value="2001" selected="selected">2001</option>
|
||||
</select>
|
||||
|
||||
]]>
|
||||
@@ -325,27 +325,27 @@ Ce qui donne en sortie: (L'ann
|
||||
<screen>
|
||||
<![CDATA[
|
||||
<select name="StartDateMonth">
|
||||
<option value="1">January</option>
|
||||
<option value="2">February</option>
|
||||
<option value="3">March</option>
|
||||
<option value="4">April</option>
|
||||
<option value="5">May</option>
|
||||
<option value="6">June</option>
|
||||
<option value="7">July</option>
|
||||
<option value="8">August</option>
|
||||
<option value="9">September</option>
|
||||
<option value="10">October</option>
|
||||
<option value="11">November</option>
|
||||
<option value="12" selected="selected">December</option>
|
||||
<option value="1">January</option>
|
||||
<option value="2">February</option>
|
||||
<option value="3">March</option>
|
||||
<option value="4">April</option>
|
||||
<option value="5">May</option>
|
||||
<option value="6">June</option>
|
||||
<option value="7">July</option>
|
||||
<option value="8">August</option>
|
||||
<option value="9">September</option>
|
||||
<option value="10">October</option>
|
||||
<option value="11">November</option>
|
||||
<option value="12" selected="selected">December</option>
|
||||
</select>
|
||||
<select name="StartDateYear">
|
||||
<option value="1999">1995</option>
|
||||
<option value="1999">1996</option>
|
||||
<option value="1999">1997</option>
|
||||
<option value="1999">1998</option>
|
||||
<option value="1999">1999</option>
|
||||
<option value="2000" selected="selected">2000</option>
|
||||
<option value="2001">2001</option>
|
||||
<option value="1999">1995</option>
|
||||
<option value="1999">1996</option>
|
||||
<option value="1999">1997</option>
|
||||
<option value="1999">1998</option>
|
||||
<option value="1999">1999</option>
|
||||
<option value="2000" selected="selected">2000</option>
|
||||
<option value="2001">2001</option>
|
||||
</select>
|
||||
]]>
|
||||
</screen>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.html.table">
|
||||
<title>html_table</title>
|
||||
<informaltable frame="all">
|
||||
@@ -12,27 +12,59 @@
|
||||
<colspec colname="desc" />
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Nom attribut</entry>
|
||||
<entry>Nom de l'attribut</entry>
|
||||
<entry>Type</entry>
|
||||
<entry>Requis</entry>
|
||||
<entry>Defaut</entry>
|
||||
<entry>D<EFBFBD>faut</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>loop</entry>
|
||||
<entry>array</entry>
|
||||
<entry>tableau</entry>
|
||||
<entry>Oui</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>Tableau de donn<6E>es <20> parcourir</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>cols</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>3</emphasis></entry>
|
||||
<entry>Nombre de colonnes du tableau</entry>
|
||||
<entry>
|
||||
nombre de colonnes de la table. Si l'attribut "cols" est vide,
|
||||
mais que des lignes sont donn<6E>es, alors le nombre de colonnes sera calcul<75>
|
||||
en utilisant le nombre de lignes et le nombre d'<27>l<EFBFBD>ments <20> afficher pour qu'il y
|
||||
ait juste assez de colonnes pour afficher tous les <20>l<EFBFBD>ments. Si les lignes et
|
||||
les colonnes sont omis tous les deux, la valeur par d<>faut de "cols" sera appliqu<71>e,
|
||||
<20> savoir 3.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>rows</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>No</entry>
|
||||
<entry><emphasis>empty</emphasis></entry>
|
||||
<entry>
|
||||
nombre de lignes de la table. Si l'attribut "rows" est vide, mais que des colonnes
|
||||
sont donn<6E>es, alors le nombre de lignes sera calcul<75>e en utilisant le nombre de colonnes
|
||||
et le nombre d'<27>l<EFBFBD>ments <20> afficher pour qu'il y ait juste assez de lignes pour afficher
|
||||
tous les <20>l<EFBFBD>ments.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>inner</entry>
|
||||
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
||||
<entry>No</entry>
|
||||
<entry><emphasis>cols</emphasis></entry>
|
||||
<entry>
|
||||
la direction du rendu des <20>l<EFBFBD>ments cons<6E>cutifs dans la boucle du tableau.
|
||||
<emphasis>cols</emphasis> signifie que les <20>l<EFBFBD>ments doivent <20>tre
|
||||
afficher colonnes par colonnes.
|
||||
<emphasis>rows</emphasis> signifie que les <20>l<EFBFBD>ments doivent <20>tre
|
||||
afficher lignes par lignes.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>table_attr</entry>
|
||||
@@ -46,16 +78,14 @@
|
||||
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>empty</emphasis></entry>
|
||||
<entry>attributs pour les balises tr (les tableaux sont
|
||||
parcourus)</entry>
|
||||
<entry>attributs pour les balises tr (les tableaux sont parcourus)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>td_attr</entry>
|
||||
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>empty</emphasis></entry>
|
||||
<entry>attributs pour les balises td (les tableaux sont
|
||||
parcourus)</entry>
|
||||
<entry>attributs pour les balises td (les tableaux sont parcourus)</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>trailpad</entry>
|
||||
@@ -67,18 +97,25 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>hdir</entry>
|
||||
<entry>string</entry>
|
||||
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>right</emphasis></entry>
|
||||
<entry>Direction du rendu. Les valeurs possibles sont <emphasis>left</emphasis>/<emphasis>right</emphasis></entry>
|
||||
<entry>
|
||||
Direction du rendu. Les valeurs possibles sont <emphasis>left</emphasis> (left-to-right),
|
||||
<emphasis>right</emphasis> (right-to-left)
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>vdir</entry>
|
||||
<entry>string</entry>
|
||||
<entry>cha<EFBFBD>ne de caract<63>res</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>down</emphasis></entry>
|
||||
<entry>Direction des colonnes lors du rendu. Les valeurs possibles sont : <emphasis>up</emphasis>/<emphasis>down</emphasis></entry>
|
||||
</row>
|
||||
<entry>
|
||||
Direction des colonnes lors du rendu. Les valeurs possibles sont :
|
||||
<emphasis>down</emphasis> (top-to-bottom), <emphasis>up</emphasis>
|
||||
(bottom-to-top)
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
@@ -93,26 +130,32 @@
|
||||
<emphasis>trailpad</emphasis> est la valeur avec laquelle remplir
|
||||
les cellules restantes de la derni<6E>re ligne, s'il y en a une.
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>html_table</title>
|
||||
<programlisting>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
index.php:
|
||||
|
||||
<?php
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;
|
||||
$smarty->assign('data',array(1,2,3,4,5,6,7,8,9));
|
||||
$smarty->assign('tr',array('bgcolor="#eeeeee"','bgcolor="#dddddd"'));
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
index.tpl:
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{html_table loop=$data}
|
||||
{html_table loop=$data cols=4 table_attr='border="0"'}
|
||||
{html_table loop=$data cols=4 tr_attr=$tr}
|
||||
|
||||
OUTPUT:
|
||||
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Affichera :
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
<table border="1">
|
||||
<tr><td>1</td><td>2</td><td>3</td></tr>
|
||||
<tr><td>4</td><td>5</td><td>6</td></tr>
|
||||
@@ -128,9 +171,11 @@ OUTPUT:
|
||||
<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr>
|
||||
<tr bgcolor="#eeeeee"><td>9</td><td> </td><td> </td><td> </td></tr>
|
||||
</table>
|
||||
]]></programlisting>
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</sect1>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.mailto">
|
||||
<title>mailto</title>
|
||||
<informaltable frame="all">
|
||||
@@ -108,27 +108,27 @@
|
||||
<example>
|
||||
<title>mailto</title>
|
||||
<programlisting>
|
||||
{mailto address="me@domain.com"}
|
||||
{mailto address="moi@domaine.com" text="send me some mail"}
|
||||
{mailto address="moi@domaine.com" encode="javascript"}
|
||||
{mailto address="moi@domaine.com" encode="hex"}
|
||||
{mailto address="moi@domaine.com" subject="Hello to you!"}
|
||||
{mailto address="moi@domaine.com" cc="you@domain.com,they@domain.com"}
|
||||
{mailto address="moi@domaine.com" extra='class="email"'}
|
||||
{mailto address="moi@example.com"}
|
||||
{mailto address="moi@example.com" text="send me some mail"}
|
||||
{mailto address="moi@example.com" encode="javascript"}
|
||||
{mailto address="moi@example.com" encode="hex"}
|
||||
{mailto address="moi@example.com" subject="Hello to you!"}
|
||||
{mailto address="moi@example.com" cc="you@domain.com,they@domain.com"}
|
||||
{mailto address="moi@example.com" extra='class="email"'}
|
||||
|
||||
SORTIE:
|
||||
|
||||
<a href="mailto:moi@domaine.com" >moi@domaine.com</a>
|
||||
<a href="mailto:moi@domaine.com" >send me some mail</a>
|
||||
<a href="mailto:moi@example.com" >moi@example.com</a>
|
||||
<a href="mailto:moi@example.com" >send me some mail</a>
|
||||
<SCRIPT language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6
|
||||
9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%
|
||||
61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e
|
||||
%27%29%3b'))</SCRIPT>
|
||||
<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >&#x6d;&#x65;&#x40;&#x64;&
|
||||
#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;</a>
|
||||
<a href="mailto:moi@domaine.com?subject=Hello%20to%20you%21" >moi@domaine.com</a>
|
||||
<a href="mailto:moi@domaine.com?cc=you@domain.com%2Cthey@domain.com" >moi@domaine.com</a>
|
||||
<a href="mailto:moi@domaine.com" class="email">moi@domaine.com</a></programlisting>
|
||||
<a href="mailto:moi@example.com?subject=Hello%20to%20you%21" >moi@example.com</a>
|
||||
<a href="mailto:moi@example.com?cc=you@example.com%2Cthey@example.com" >moi@example.com</a>
|
||||
<a href="mailto:moi@example.com" class="email">moi@example.com</a></programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.popup">
|
||||
<title>popup</title>
|
||||
<informaltable frame="all">
|
||||
@@ -37,7 +37,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>sticky</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>false</emphasis></entry>
|
||||
<entry>Rends la popup active jusqu'a ce qu'elle soit
|
||||
@@ -130,35 +130,35 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>width</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>Longeur de la popup</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>height</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>Hauteur de la popup</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>left</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>false</emphasis></entry>
|
||||
<entry>la popup va <20> gauche de la souris</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>right</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>false</emphasis></entry>
|
||||
<entry>la popup va <20> droite de la souris</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>center</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>false</emphasis></entry>
|
||||
<entry>la popup est centr<74>e par rapport <20> la
|
||||
@@ -166,7 +166,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>above</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>false</emphasis></entry>
|
||||
<entry>la popup est au dessus de la souris. NOTE:
|
||||
@@ -174,14 +174,14 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>below</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>false</emphasis></entry>
|
||||
<entry>la popup apparait en dessous de la souris</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>border</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>rends la bordure de la popup plus <20>paisse ou plus
|
||||
@@ -189,7 +189,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>offsetx</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>A quelle distance du curseur la popup apparaitra
|
||||
@@ -197,7 +197,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>offsety</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>A quelle distance du curseur la popup apparaitra
|
||||
@@ -205,7 +205,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>fgbackground</entry>
|
||||
<entry>url to image</entry>
|
||||
<entry>url vers l'image</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>Une image <20> utiliser <20> la place de la couleur de
|
||||
@@ -213,7 +213,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>bgbackground</entry>
|
||||
<entry>url to image</entry>
|
||||
<entry>url vers l'image</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>Image <20> utiliser <20> la place de la bordure de la
|
||||
@@ -232,7 +232,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>noclose</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>N'affiche pas le bouton "Close" pour les fen<65>tres
|
||||
@@ -249,7 +249,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>autostatus</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>D<EFBFBD>fini le texte de la barre de statut au contenu
|
||||
@@ -265,7 +265,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>inarray</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>indique <20> overLib de lire le texte <20> cet index dans le
|
||||
@@ -274,7 +274,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>caparray</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>indique <20> overlib de lire le libell<6C> depuis le
|
||||
@@ -290,21 +290,21 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>snapx</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>Aligne la popup sur une grille horizontale</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>snapy</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>Aligne la popup sur une grille verticale</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>fixx</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>v<EFBFBD>rrouille la popup <20> une position horizontale.
|
||||
@@ -313,7 +313,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>fixy</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>v<EFBFBD>rouille la popup <20> une position verticale
|
||||
@@ -330,7 +330,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>padx</entry>
|
||||
<entry>integer,integer</entry>
|
||||
<entry>entier, entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry><EFBFBD>carte l'image de fond du reste des <20>l<EFBFBD>ments
|
||||
@@ -339,7 +339,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>pady</entry>
|
||||
<entry>integer,integer</entry>
|
||||
<entry>entier, entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry><EFBFBD>carte l'image de fond du reste des <20>l<EFBFBD>ments
|
||||
@@ -348,7 +348,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>fullhtml</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>vous autorise <20> placer du code html en tant que
|
||||
@@ -375,7 +375,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>delay</entry>
|
||||
<entry>integer</entry>
|
||||
<entry>entier</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>la popup se comporte comme une infobulle.
|
||||
@@ -384,7 +384,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>hauto</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>D<EFBFBD>termine automatiquement si la popup doit <20>tre
|
||||
@@ -392,7 +392,7 @@
|
||||
</row>
|
||||
<row>
|
||||
<entry>vauto</entry>
|
||||
<entry>boolean</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>n/a</emphasis></entry>
|
||||
<entry>D<EFBFBD>termine automatiquement si la popup doit <20>tre
|
||||
@@ -406,20 +406,23 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>popup</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{* popup_init doit <20>tre appel<65> en haut de votre page *}
|
||||
{popup_init src="/javascripts/overlib.js"}
|
||||
|
||||
{* cr<63>ation d'un lien avec une popup qui apparait sur l'<27>v<EFBFBD>nement onMouseOver *}
|
||||
<A href="mypage.html" {popup text="Ce lien vous am<61>ne sur ma page!"}>mypage</A>
|
||||
<A href="mypage.html" {popup text="Ce lien vous am<61>ne sur ma page!"}>mypage</A>
|
||||
|
||||
{* vous pouvez utiliser du html, des liens, etc dans vos popup *}
|
||||
<A href="mypage.html" {popup sticky=true caption="mypage contents"
|
||||
text="<UL><LI>links<LI>pages<LI>images</UL>" snapx=10 snapy=10}>mypage</A>
|
||||
<A href="mypage.html" {popup sticky=true caption="mypage contents"
|
||||
text="<UL><LI>links<LI>pages<LI>images</UL>" snapx=10 snapy=10}>mypage</A>
|
||||
|
||||
SORTIE:
|
||||
|
||||
(allez sur le site officiel de Smarty pour des exemples.)</programlisting>
|
||||
(allez sur le site officiel de Smarty pour des exemples.)
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,37 +1,70 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.capitalize">
|
||||
<title>capitalize</title>
|
||||
<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>Position du param<61>tre</entry>
|
||||
<entry>Type</entry>
|
||||
<entry>Requis</entry>
|
||||
<entry>D<EFBFBD>faut</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>1</entry>
|
||||
<entry>bool<EFBFBD>en</entry>
|
||||
<entry>No</entry>
|
||||
<entry>false</entry>
|
||||
<entry>D<EFBFBD>termine si oui ou non les mots contenant des chiffres
|
||||
doivent <20>tre mis en majuscule</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
<para>
|
||||
Met la premi<6D>re lettre de chaque mot d'une variable en majuscule.
|
||||
</para>
|
||||
<example>
|
||||
<title>capitalize</title>
|
||||
<title>Mise en majuscule</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
$smarty = new Smarty;
|
||||
$smarty->assign('articleTitle', 'Police begin campaign to rundown jaywalkers.');
|
||||
$smarty->assign('titreArticle', 'Le nouveau php5 est vraiment performant !');
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Where index.tpl is:
|
||||
O<EFBFBD> index.tpl contient :
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{$articleTitle}
|
||||
{$articleTitle|capitalize}
|
||||
{$titreArticle}
|
||||
{$titreArticle|capitalize}
|
||||
{$titreArticle|capitalize:true}
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Affichera :
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
La police commence une campagne de sensibilisation contre la violence routi<74>re.
|
||||
La Police Commence Une Campagne De Sensibilisation Contre La Violence Routi<74>re.
|
||||
Le nouveau php5 est vraiment performant !
|
||||
Le Nouveau php5 Est Vraiment Performant !
|
||||
Le Nouveau Php5 Est Vraiment Performant !
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.variables.smarty">
|
||||
<title>Variable r<>serv<72>e {$smarty}</title>
|
||||
<para>
|
||||
@@ -19,7 +19,7 @@
|
||||
<title>Afficher des variables de requ<71>te</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{* Affiche la valeur de page dans l'url (GET) http://www.domain.com/index.php?page=foo *}
|
||||
{* Affiche la valeur de page dans l'url (GET) http://www.example.com/index.php?page=foo *}
|
||||
{$smarty.get.page}
|
||||
|
||||
{* affiche la variable "page" r<>cup<75>r<EFBFBD>e depuis un formulaire (POST) *}
|
||||
@@ -119,7 +119,7 @@
|
||||
<sect2 id="language.variables.smarty.ldelim">
|
||||
<title>{$smarty.ldelim}</title>
|
||||
<para>
|
||||
Cette variable est utilis<69> pour afficher le d<>l<EFBFBD>miteur gauche. Lisez aussi
|
||||
Cette variable est utilis<69>e pour afficher le d<>l<EFBFBD>miteur gauche. Lisez aussi
|
||||
la partie <link
|
||||
linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
|
||||
</para>
|
||||
@@ -127,7 +127,7 @@
|
||||
<sect2 id="language.variables.smarty.rdelim">
|
||||
<title>{$smarty.rdelim}</title>
|
||||
<para>
|
||||
Cette variable est utilis<69> pour afficher le d<>l<EFBFBD>miteur droit. Lisez aussi
|
||||
Cette variable est utilis<69>e pour afficher le d<>l<EFBFBD>miteur droit. Lisez aussi
|
||||
la partie <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
|
||||
</para>
|
||||
</sect2>
|
||||
|
Reference in New Issue
Block a user