2004-04-13 11:47:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
2006-10-08 10:27:27 +00:00
|
|
|
|
<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready -->
|
2005-12-10 15:13:28 +00:00
|
|
|
|
|
2004-05-23 15:50:53 +00:00
|
|
|
|
<sect1 id="variable.config.overwrite">
|
|
|
|
|
|
<title>$config_overwrite</title>
|
|
|
|
|
|
<para>
|
2006-10-08 10:27:27 +00:00
|
|
|
|
Si cette variable est <20> &true; (par d<>faut), les variables lues dans les
|
2005-12-10 15:13:28 +00:00
|
|
|
|
<link linkend="config.files">fichiers de configuration</link>
|
|
|
|
|
|
peuvent s'<27>craser entre elles. Sinon les variables
|
2004-05-23 15:50:53 +00:00
|
|
|
|
seront mises dans un tableau. Tr<54>s utile si vous voulez stocker
|
|
|
|
|
|
des tableaux de donn<6E>es dans des fichiers de configuration, listez
|
2005-12-10 15:13:28 +00:00
|
|
|
|
simplement chaque <20>l<EFBFBD>ment plusieurs fois.
|
2004-05-23 15:50:53 +00:00
|
|
|
|
</para>
|
2005-12-10 15:13:28 +00:00
|
|
|
|
|
|
|
|
|
|
<example>
|
|
|
|
|
|
<title>Tableau de variables de configuration</title>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Cet exemple utilise
|
2006-10-08 10:27:27 +00:00
|
|
|
|
<link linkend="language.function.cycle"><varname>{cycle}</varname></link>
|
|
|
|
|
|
pour afficher un tableau dont les lignes sont alternativement rouge/verte/bleu
|
|
|
|
|
|
avec <parameter>$config_overwrite</parameter> = &false;.
|
2005-12-10 15:13:28 +00:00
|
|
|
|
</para>
|
|
|
|
|
|
<para>Le fichier de configuration</para>
|
|
|
|
|
|
<programlisting>
|
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
# couleur des lignes
|
|
|
|
|
|
rowColors = #FF0000
|
|
|
|
|
|
rowColors = #00FF00
|
|
|
|
|
|
rowColors = #0000FF
|
|
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Le template avec une boucle
|
2006-10-08 10:27:27 +00:00
|
|
|
|
<link linkend="language.function.section"><varname>{section}</varname></link>.
|
2005-12-10 15:13:28 +00:00
|
|
|
|
</para>
|
|
|
|
|
|
<programlisting>
|
|
|
|
|
|
<![CDATA[
|
|
|
|
|
|
<table>
|
|
|
|
|
|
{section name=r loop=$rows}
|
|
|
|
|
|
<tr bgcolor="{cycle values=#rowColors#}">
|
|
|
|
|
|
<td> ....etc.... </td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
{/section}
|
|
|
|
|
|
</table>
|
|
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
|
|
|
|
|
</example>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Voir aussi
|
2006-10-08 10:27:27 +00:00
|
|
|
|
<link linkend="language.function.config.load"><varname>{config_load}</varname></link>,
|
|
|
|
|
|
<link linkend="api.get.config.vars"><varname>get_config_vars()</varname></link>,
|
|
|
|
|
|
<link linkend="api.clear.config"><varname>clear_config()</varname></link>,
|
|
|
|
|
|
<link linkend="api.config.load"><varname>config_load()</varname></link> et
|
|
|
|
|
|
les <link linkend="config.files">fichiers de configuration</link>.
|
2005-12-10 15:13:28 +00:00
|
|
|
|
</para>
|
2004-04-13 11:47:32 +00:00
|
|
|
|
</sect1>
|
2005-12-10 15:13:28 +00:00
|
|
|
|
|
2004-04-13 11:47:32 +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-10 15:13:28 +00:00
|
|
|
|
-->
|