{* Smarty foreach/sample7-1.tpl *}
<html>
<head>
<title>Smarty Test</title>
</head>
<body>

<h1>{$title}</h1>
{foreach from=$personaldata item=var name=loopname}
<p>
要素:{$var}
[{$smarty.foreach.loopname.iteration}/{$smarty.foreach.loopname.total}]
</p>
{/foreach}
<p>トータル回数:{$smarty.foreach.loopname.total}</p>

</body>
</html>