mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
sync with en.
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 2698 Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: 3152 Maintainer: takagi Status: ready -->
|
||||
<!-- CREDITS: mat-sh,daichi,joe -->
|
||||
<sect1 id="language.function.section">
|
||||
<title>{section},{sectionelse}</title>
|
||||
<para>
|
||||
<varname>{section}</varname> は、
|
||||
<emphasis role="bold">データの配列</emphasis> をループするために使用します。
|
||||
<emphasis role="bold">データが格納された数値添字配列</emphasis> をループするために使用します。
|
||||
これは、<link linkend="language.function.foreach"><varname>{foreach}</varname></link>
|
||||
が <emphasis role="bold">1つの連想配列</emphasis>
|
||||
をループするのとは異なります。すべての <varname>{section}</varname>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 2586 Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: 3154 Maintainer: takagi Status: ready -->
|
||||
<!-- CREDITS: mat-sh,daichi,joe -->
|
||||
<sect1 id="language.function.cycle">
|
||||
<title>{cycle}</title>
|
||||
@@ -111,7 +111,7 @@
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{section name=rows loop=$data}
|
||||
<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}">
|
||||
<tr class="{cycle values="odd,even"}">
|
||||
<td>{$data[rows]}</td>
|
||||
</tr>
|
||||
{/section}
|
||||
@@ -120,13 +120,13 @@
|
||||
<para>上のテンプレートの出力</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
<tr bgcolor="#eeeeee">
|
||||
<tr class="odd">
|
||||
<td>1</td>
|
||||
</tr>
|
||||
<tr bgcolor="#d0d0d0">
|
||||
<tr class="even">
|
||||
<td>2</td>
|
||||
</tr>
|
||||
<tr bgcolor="#eeeeee">
|
||||
<tr class="odd">
|
||||
<td>3</td>
|
||||
</tr>
|
||||
]]>
|
||||
|
Reference in New Issue
Block a user