quick commit, changing computer

This commit is contained in:
didou
2004-05-23 13:49:44 +00:00
parent 09a9bb3a24
commit 8bfb75e986
3 changed files with 207 additions and 194 deletions

View File

@@ -1,5 +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: nobody Status: partial -->
<sect1 id="language.function.capture"> <sect1 id="language.function.capture">
<title>capture</title> <title>capture</title>
<para> <para>
@@ -35,17 +36,20 @@
<example> <example>
<title>Capturer le contenu d'un template.</title> <title>Capturer le contenu d'un template.</title>
<programlisting> <programlisting>
<![CDATA[
{* nous ne voulons afficher une ligne que si cette derni<6E>re est activ<69>. *} {* nous ne voulons afficher une ligne que si cette derni<6E>re est activ<69>. *}
{capture name=banner} {capture name=banner}
{include file="get_banner.tpl"} {include file="get_banner.tpl"}
{/capture} {/capture}
{if $smarty.capture.banner ne ""} {if $smarty.capture.banner ne ""}
&lt;tr&gt; <tr>
&lt;td&gt; <td>
{$smarty.capture.banner} {$smarty.capture.banner}
&lt;/td&gt; </td>
&lt;/tr&gt; </tr>
{/if}</programlisting> {/if}
]]>
</programlisting>
</example> </example>
</para> </para>
</sect1> </sect1>

View File

@@ -1,5 +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: nobody Status: partial -->
<sect1 id="language.function.config.load"> <sect1 id="language.function.config.load">
<title>config_load</title> <title>config_load</title>
<informaltable frame="all"> <informaltable frame="all">
@@ -71,50 +72,57 @@
</para> </para>
<example> <example>
<title>fonction config_load</title> <title>fonction config_load</title>
<programlisting> <programlisting>
<![CDATA[
{config_load file="colors.conf"} {config_load file="colors.conf"}
&lt;html&gt; <html>
&lt;title&gt;{#pageTitle#}&lt;/title&gt; <title>{#pageTitle#}</title>
&lt;body bgcolor="{#bodyBgColor#}"&gt; <body bgcolor="{#bodyBgColor#}">
&lt;table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"&gt; <table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
&lt;tr bgcolor="{#rowBgColor#}"&gt; <tr bgcolor="{#rowBgColor#}">
&lt;td&gt;First&lt;/td&gt; <td>First</td>
&lt;td&gt;Last&lt;/td&gt; <td>Last</td>
&lt;td&gt;Address&lt;/td&gt; <td>Address</td>
&lt;/tr&gt; </tr>
&lt;/table&gt; </table>
&lt;/body&gt; </body>
&lt;/html&gt;</programlisting> </html>
]]>
</programlisting>
</example> </example>
<para> <para>
Les fichiers de configuration peuvent contenir des sections. Les fichiers de configuration peuvent contenir des sections.
Vous pouvez charger des variables d'une section donn<6E>e avec le Vous pouvez charger des variables d'une section donn<6E>e avec le
nouvel attribut <emphasis>section</emphasis>. nouvel attribut <emphasis>section</emphasis>.
</para> </para>
<note>
<para> <para>
NOTE: Les <emphasis>sections des fichiers de configuration</emphasis> Les <emphasis>sections des fichiers de configuration</emphasis>
et la fonction native <emphasis>section</emphasis> n'ont rien en et la fonction native <emphasis>section</emphasis> n'ont rien en
commun, il s'av<61>re simplement qu'elles portent le m<>me nom. commun, il s'av<61>re simplement qu'elles portent le m<>me nom.
</para> </para>
</note>
<example> <example>
<title>fonction config_load et section</title> <title>fonction config_load et section</title>
<programlisting> <programlisting>
<![CDATA[
{config_load file="colors.conf" section="client"} {config_load file="colors.conf" section="client"}
&lt;html&gt; <html>
&lt;title&gt;{#pageTitle#}&lt;/title&gt; <title>{#pageTitle#}</title>
&lt;body bgcolor="{#bodyBgColor#}"&gt; <body bgcolor="{#bodyBgColor#}">
&lt;table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}"&gt; <table border="{#tableBorderSize#}" bgcolor="{#tableBgColor#}">
&lt;tr bgcolor="{#rowBgColor#}"&gt; <tr bgcolor="{#rowBgColor#}">
&lt;td&gt;First&lt;/td&gt; <td>First</td>
&lt;td&gt;Last&lt;/td&gt; <td>Last</td>
&lt;td&gt;Address&lt;/td&gt; <td>Address</td>
&lt;/tr&gt; </tr>
&lt;/table&gt; </table>
&lt;/body&gt; </body>
&lt;/html&gt;</programlisting> </html>
]]>
</programlisting>
</example> </example>
</sect1> </sect1>
<!-- Keep this comment at the end of the file <!-- Keep this comment at the end of the file

View File

@@ -1,5 +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: nobody Status: partial -->
<sect1 id="language.function.foreach"> <sect1 id="language.function.foreach">
<title>foreach,foreachelse</title> <title>foreach,foreachelse</title>
<informaltable frame="all"> <informaltable frame="all">