From 1bfef29adac1bd1f837792a960ad291eee087b16 Mon Sep 17 00:00:00 2001 From: yannick Date: Tue, 10 May 2005 21:36:53 +0000 Subject: [PATCH] sync with EN --- .../language-function-php.xml | 8 +- .../language-function-section.xml | 518 ++++++++++-------- 2 files changed, 306 insertions(+), 220 deletions(-) diff --git a/docs/fr/designers/language-builtin-functions/language-function-php.xml b/docs/fr/designers/language-builtin-functions/language-function-php.xml index b2172bdb..f06ade90 100644 --- a/docs/fr/designers/language-builtin-functions/language-function-php.xml +++ b/docs/fr/designers/language-builtin-functions/language-function-php.xml @@ -1,6 +1,6 @@ - + php @@ -22,6 +22,12 @@ ]]> + + Voir aussi + {include_php}, + {include} et + les templates composantes. + - + section, sectionelse @@ -94,148 +94,176 @@ section - - + + {/section} - -SORTIE: - -id: 1000<br> -id: 1001<br> -id: 1002<br> +]]> + + + L'exemple ci-dessus affichera : + + + +id: 1001
+id: 1002
+]]> +
- + section, variable de parcours - + + + nom: {$noms[client]}
+ addresse: {$addresses[client]}
+

{/section} - - -SORTIE: - -id: 1000<br> -nom: John Smith<br> -addresse: 253 N 45th<br> -<p> -id: 1001<br> -nom: Jack Jones<br> -addresse: 417 Mulberry ln<br> -<p> -id: 1002<br> -nom: Jane Munson<br> -addresse: 5605 apple st<br> -<p> +]]> + + + L'exemple ci-dessus affichera : + + + +nom: John Smith
+addresse: 253 N 45th
+

+id: 1001
+nom: Jack Jones
+addresse: 417 Mulberry ln
+

+id: 1002
+nom: Jane Munson
+addresse: 5605 apple st
+

+]]> + - + nom de section - + + + id: {$idCLient[monTableau]}
+ name: {$noms[monTableau]}
+ address: {$addresses[monTableau]}
+

+{/section} +]]> + - + sections imbriquées - + + + nom: {$nom[client]}
+ addresse: {$addresse[client]}
{section name=contact loop=$type_contact[client]} - {$type_contact[client][contact]}: {$info_contact[client][contact]}<br> + {$type_contact[client][contact]}: {$info_contact[client][contact]}
{/section} - <p> +

{/section} - - -SORTIE: - -id: 1000<br> -nom: John Smith<br> -addresse: 253 N 45th<br> -telephone: 555-555-5555<br> -telephone portable: 555-555-5555<br> -e-mail: john@myexample.com<br> -<p> -id: 1001<br> -nom: Jack Jones<br> -addresse: 417 Mulberry ln<br> -telephone: 555-555-5555<br> -telephone portable: 555-555-5555<br> -e-mail: jack@myexample.com<br> -<p> -id: 1002<br> -nom: Jane Munson<br> -addresse: 5605 apple st<br> -telephone: 555-555-5555<br> -telephone portable: 555-555-5555<br> -e-mail: jane@myexample.com<br> -<p> +]]> + + + L'exemple ci-dessus affichera : + + + +nom: John Smith
+addresse: 253 N 45th
+telephone: 555-555-5555
+telephone portable: 555-555-5555
+e-mail: john@myexample.com
+

+id: 1001
+nom: Jack Jones
+addresse: 417 Mulberry ln
+telephone: 555-555-5555
+telephone portable: 555-555-5555
+e-mail: jack@myexample.com
+

+id: 1002
+nom: Jane Munson
+addresse: 5605 apple st
+telephone: 555-555-5555
+telephone portable: 555-555-5555
+e-mail: jane@myexample.com
+

+]]> + - + Sections et tableaux associatifs - + + + telephone: {$contacts[client].home}
+ portable: {$contacts[client].cell}
+ e-mail: {$contacts[client].email}

{/section} - - -SORTIE: - -nom: John Smith<br> -telephone: 555-555-5555<br> -portable: 555-555-5555<br> -e-mail: john@myexample.com<p> -nom: Jack Jones<br> -telephone: 555-555-5555<br> -portable: 555-555-5555<br> -e-mail: jack@myexample.com<p> -nom: Jane Munson<br> -telephone: 555-555-5555<br> -portable: 555-555-5555<br> -e-mail: jane@myexample.com<p> +]]> + + + L'exemple ci-dessus affichera : + + + +telephone: 555-555-5555
+portable: 555-555-5555
+e-mail: john@myexample.com

+nom: Jack Jones
+telephone: 555-555-5555
+portable: 555-555-5555
+e-mail: jack@myexample.com

+nom: Jane Munson
+telephone: 555-555-5555
+portable: 555-555-5555
+e-mail: jane@myexample.com

+]]> + - - - + sectionelse - + + {sectionelse} Aucune valeur dans $idClient. -{/section} +{/section} +]]> + Les sections ont leur propre variable de gestion des propriétés. @@ -266,17 +294,22 @@ e-mail: jane@myexample.com<p> propriété de section index - {section name=client loop=$idClient} - {$smarty.section.client.index} id: {$idClient[client]}<br> - {/section} - - - SORTIE: - - 0 id: 1000<br> - 1 id: 1001<br> - 2 id: 1002<br> - + +{/section} +]]> + + + L'exemple ci-dessus affichera : + + + + 1 id: 1001
+ 2 id: 1002
+]]> +
@@ -287,25 +320,30 @@ e-mail: jane@myexample.com<p>
propriété de section index_prev - + + {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *} {if $idClient[client.index_prev] ne $idClient[client.index]} - L'id du client à été modifié<br> + L'id du client à été modifié
{/if} {/section} - - - SORTIE: - - 0 id: 1000<br> - L'id du client à été modifié<br> - 1 id: 1001<br> - L'id du client à été modifié<br> - 2 id: 1002<br> - L'id du client à été modifié<br> -
+]]> +
+ + L'exemple ci-dessus affichera : + + + + L'id du client à été modifié
+ 1 id: 1001
+ L'id du client à été modifié
+ 2 id: 1002
+ L'id du client à été modifié
+]]> +
@@ -317,25 +355,30 @@ e-mail: jane@myexample.com<p> propriété de section index_next - + + {* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *} {if $idClient[client.index_next] ne $idClient[client.index]} - L'id du client va changer<br> + L'id du client va changer
{/if} {/section} - - - SORTIE: - - 0 id: 1000<br> - L'id du client va changer<br> - 1 id: 1001<br> - L'id du client va changer<br> - 2 id: 1002<br> - L'id du client va changer<br> -
+]]> +
+ + L'exemple ci-dessus affichera : + + + + L'id du client va changer
+ 1 id: 1001
+ L'id du client va changer
+ 2 id: 1002
+ L'id du client va changer
+]]> +
@@ -351,29 +394,34 @@ e-mail: jane@myexample.com<p> propriété iteration de section - + + + {$smarty.section.client.index} id: {$idClient[client]}
{* Pour votre information, $idClient[client.index] and $idClient[client] sont identiques *} {if $idCLient[client.index_next] ne $idClient[client.index]} - L'id du client va changer<br> + L'id du client va changer
{/if} {/section} - - - SORTIE: - +]]> +
+ + L'exemple ci-dessus affichera : + + + + L'id du client va changer
Iteration courante: 2 - 7 id: 1001<br> - L'id du client va changer<br> + 7 id: 1001
+ L'id du client va changer
Iteration courante: 3 - 9 id: 1002<br> - L'id du client va changer<br> -
+ 9 id: 1002
+ L'id du client va changer
+]]> +
@@ -383,29 +431,34 @@ e-mail: jane@myexample.com<p> propriété first de la section - + + {/if} - <tr><td>{$smarty.section.client.index} id: - {$idClient[client]}</td></tr> + {$smarty.section.client.index} id: + {$idClient[client]} {if $smarty.section.client.last} - </table> + {/if} {/section} - - - SORTIE: - - <table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> - </table> - +]]> + + + L'exemple ci-dessus affichera : + + + + 0 id: 1000 + 1 id: 1001 + 2 id: 1002 + +]]> + @@ -415,29 +468,34 @@ e-mail: jane@myexample.com<p> Propriété last de section - + + {/if} - <tr><td>{$smarty.section.client.index} id: - {$idClient[client]}</td></tr> + {$smarty.section.client.index} id: + {$idClient[client]} {if $smarty.section.client.last} - </table> + {/if} {/section} - - - SORTIE: - - <table> - <tr><td>0 id: 1000</td></tr> - <tr><td>1 id: 1001</td></tr> - <tr><td>2 id: 1002</td></tr> - </table> - +]]> + + + L'exemple ci-dessus affichera : + + + + 0 id: 1000 + 1 id: 1001 + 2 id: 1002 + +]]> + @@ -450,17 +508,22 @@ e-mail: jane@myexample.com<p> propriété rownum de section + {/section} - - - SORTIE: - - 1 id: 1000<br> - 2 id: 1001<br> - 3 id: 1002<br> - +]]> + + + L'exemple ci-dessus affichera : + + + + 2 id: 1001
+ 3 id: 1002
+]]> +
@@ -472,20 +535,26 @@ e-mail: jane@myexample.com<p> Propriété de section index + {/section} Il y eu {$smarty.section.client.loop} clients d'affichés. - - SORTIE: - - 0 id: 1000<br> - 1 id: 1001<br> - 2 id: 1002<br> +]]> + + + L'exemple ci-dessus affichera : + + + + 1 id: 1001
+ 2 id: 1002
il y eu 3 clients d'affichés. - +]]> +
@@ -498,11 +567,12 @@ e-mail: jane@myexample.com<p> section, attribut show - + + {/section} {if $smarty.section.client.show} @@ -510,16 +580,20 @@ e-mail: jane@myexample.com<p> {else} la section n'a pas été affichée. {/if} - - - SORTIE: - - 1 id: 1000<br> - 2 id: 1001<br> - 3 id: 1002<br> +]]> + + + L'exemple ci-dessus affichera : + + + + 2 id: 1001
+ 3 id: 1002
la section à été affichée. - +]]> +
@@ -530,21 +604,27 @@ e-mail: jane@myexample.com<p> section, propriété total - + + {/section} Il y eu {$smarty.section.client.total} clients affichés. - - SORTIE: - - 0 id: 1000<br> - 2 id: 1001<br> - 4 id: 1002<br> +]]> + + + L'exemple ci-dessus affichera : + + + + 2 id: 1001
+ 4 id: 1002
Il y eu 3 clients affichés. -
+]]> +