mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
sync with en
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.syntax.functions">
|
<sect1 id="language.syntax.functions">
|
||||||
<title>Fonctions</title>
|
<title>Fonctions</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -11,22 +11,20 @@
|
|||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>syntaxe des fonctions</title>
|
<title>syntaxe des fonctions</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
|
||||||
{config_load file="colors.conf"}
|
{config_load file="colors.conf"}
|
||||||
|
|
||||||
{include file="header.tpl"}
|
{include file="header.tpl"}
|
||||||
|
|
||||||
{if $name eq "Fred"}
|
{if $name eq "Fred"}
|
||||||
Vous <20>tes admis dans cette zone
|
Vous <20>tes admis dans cette zone
|
||||||
{else}
|
{else}
|
||||||
Bienvenue, <font color="{#fontColor#}">{$name}!</font>
|
Bienvenue, <font color="{#fontColor#}">{$name} !</font>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{include file="footer.tpl"}
|
{include file="footer.tpl"}
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Les fonctions natives et les fonctions utilisateurs ont toutes deux la m<>me
|
Les fonctions natives et les fonctions utilisateurs ont toutes deux la m<>me
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.syntax.quotes">
|
<sect1 id="language.syntax.quotes">
|
||||||
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
|
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>Syntaxe d'insertion de variables dans des cha<68>nes</title>
|
<title>Syntaxe d'insertion de variables dans des cha<68>nes</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
EXEMPLE DE SYNTAXE:
|
EXEMPLE DE SYNTAXE:
|
||||||
{func var="test $foo test"} <-- comprends $foo
|
{func var="test $foo test"} <-- comprends $foo
|
||||||
@@ -24,10 +24,9 @@ EXEMPLE DE SYNTAXE:
|
|||||||
|
|
||||||
EXEMPLE PRATIQUE:
|
EXEMPLE PRATIQUE:
|
||||||
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
|
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
|
||||||
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les
|
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les apostrophes inverses
|
||||||
apostrophes inverses
|
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.foreach">
|
<sect1 id="language.function.foreach">
|
||||||
<title>foreach,foreachelse</title>
|
<title>foreach,foreachelse</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -22,10 +22,10 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<row>
|
<row>
|
||||||
<entry>from</entry>
|
<entry>from</entry>
|
||||||
<entry>cha<EFBFBD>ne de caract<63>re</entry>
|
<entry>tableau</entry>
|
||||||
<entry>oui</entry>
|
<entry>oui</entry>
|
||||||
<entry><emphasis>n/a</emphasis></entry>
|
<entry><emphasis>n/a</emphasis></entry>
|
||||||
<entry>Le nom du tableau <20> parcourir</entry>
|
<entry>Le tableau <20> parcourir</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry>item</entry>
|
<entry>item</entry>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.html.radios">
|
<sect1 id="language.function.html.radios">
|
||||||
<title>html_radios</title>
|
<title>html_radios</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
<example>
|
<example>
|
||||||
<title>html_radios</title>
|
<title>html_radios</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
index.php:
|
index.php:
|
||||||
|
|
||||||
require('Smarty.class.php');
|
require('Smarty.class.php');
|
||||||
@@ -98,7 +98,7 @@ $smarty->display('index.tpl');
|
|||||||
|
|
||||||
index.tpl:
|
index.tpl:
|
||||||
|
|
||||||
{html_radios values=$id_client checked=$client_id output=$nom_client separator="<br />"}
|
{html_radios name="id" values=$id_client checked=$client_id output=$nom_client separator="<br />"}
|
||||||
|
|
||||||
|
|
||||||
index.php:
|
index.php:
|
||||||
@@ -106,10 +106,10 @@ index.php:
|
|||||||
require('Smarty.class.php');
|
require('Smarty.class.php');
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->assign('cust_radios', array(
|
$smarty->assign('cust_radios', array(
|
||||||
1001 => 'Joe Schmoe',
|
1000 => 'Joe Schmoe',
|
||||||
1002 => 'Jack Smith',
|
1001 => 'Jack Smith',
|
||||||
1003 => 'Jane Johnson',
|
1002 => 'Jane Johnson',
|
||||||
1004 => 'Charlie Brown'));
|
1003 => 'Charlie Brown'));
|
||||||
$smarty->assign('client_id', 1001);
|
$smarty->assign('client_id', 1001);
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
@@ -119,12 +119,12 @@ index.tpl:
|
|||||||
{html_radios name="id" options=$cust_radios checked=$client_id separator="<br />"}
|
{html_radios name="id" options=$cust_radios checked=$client_id separator="<br />"}
|
||||||
|
|
||||||
|
|
||||||
SORTIE: (both examples)
|
SORTIE: (pour les deux exemples)
|
||||||
|
|
||||||
<input type="radio" name="id[]" value="1000">Joe Schmoe<br />
|
<input type="radio" name="id" value="1000">Joe Schmoe<br />
|
||||||
<input type="radio" name="id[]" value="1001" checked="checked"><br />
|
<input type="radio" name="id" value="1001" checked="checked"><br />
|
||||||
<input type="radio" name="id[]" value="1002">Jane Johnson<br />
|
<input type="radio" name="id" value="1002">Jane Johnson<br />
|
||||||
<input type="radio" name="id[]" value="1003">Charlie Brown<br /></programlisting>
|
<input type="radio" name="id" value="1003">Charlie Brown<br /></programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.variables.smarty">
|
<sect1 id="language.variables.smarty">
|
||||||
<title>Variable r<>serv<72>e {$smarty}</title>
|
<title>Variable r<>serv<72>e {$smarty}</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -119,16 +119,16 @@
|
|||||||
<sect2 id="language.variables.smarty.ldelim">
|
<sect2 id="language.variables.smarty.ldelim">
|
||||||
<title>{$smarty.ldelim}</title>
|
<title>{$smarty.ldelim}</title>
|
||||||
<para>
|
<para>
|
||||||
This variable is used for printing the left-delimiter value
|
Cette variable est utilis<69> pour afficher le d<>l<EFBFBD>miteur gauche. Lisez aussi
|
||||||
literally. See also <link
|
la partie <link
|
||||||
linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
|
linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
|
||||||
</para>
|
</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
<sect2 id="language.variables.smarty.rdelim">
|
<sect2 id="language.variables.smarty.rdelim">
|
||||||
<title>{$smarty.rdelim}</title>
|
<title>{$smarty.rdelim}</title>
|
||||||
<para>
|
<para>
|
||||||
This variable is used for printing the right-delimiter value literally.
|
Cette variable est utilis<69> pour afficher le d<>l<EFBFBD>miteur droit. Lisez aussi
|
||||||
See also <link linkend="language.function.ldelim">{rdelim},{rdelim}</link>.
|
la partie <link linkend="language.function.ldelim">{ldelim},{rdelim}</link>.
|
||||||
</para>
|
</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
Reference in New Issue
Block a user