Posted by Man-wai Chang on 04/26/07 01:58
> <select name="aname">
> {section name=mm start=0 loop=$dtl_array.0.uom_array step=1}
> <option value="{$dtl_array.0.uom_array.mm.0}">
> {$dtl_array.0.uom_array.mm.1}
> {/section}
> </select>
I found the solution after a bit of trial-and-error. it needs a
temporary variable as a bridge:
<select name="aname">
{section name=mm start=0 loop=$dtl_array.0.uom_array step=1}
{assign var=ha value=$smarty.section.mm.index}
<option value="{$dtl_array.0.uom_array.$ha.0}">
{$dtl_array.0.uom_array.$ha.1}
{/section}
</select>
--
iTech Consulting Services Limited
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Navigation:
[Reply to this message]
|