forみたいな動き(section)


<!--{section name=test start=1 loop=$row step=1}-->
                             startとstepは省略可能
 
	<!--{if $smarty.section.test.first}-->
		最初
	<!--{/if}-->
 
	<!--{if $smarty.section.test.iteration % 5 == 1}-->
		5行おき
	<!--{/if}-->
 
	<!--{if $smarty.section.test.last}-->
		最後
	<!--{/if}-->
	現在のループインデックスは<!--{$smarty.section.test.index}-->回目です。
			(0又はstart属性の値から始まり、1又はstep属性の値ずつ増加)
 
	現在ループは<!--{$smarty.section.test.iteration}-->回目です(1からスタート)。
 
<!--{/section}-->
 
ループの最後のインデックスは<!--{$smarty.section.test.loop}-->です。
ループトータル回数は<!--{$smarty.section.test.total}-->回です。
 

















トータル: - /今日: - /昨日: -
最終更新:2015年04月14日 13:22