Posted by Man-wai Chang on 04/24/07 08:47
The full section of codes I was trying to do:
{assign var=ii value=0}
{assign var=ileft value=0}
{assign var=iright value=10}
{section name=j start=0 loop=$cols_per_page step=1}
{section name=k start=0 loop=$rows_per_page step=1}
{php} $pos="C{$smarty.section.j}R{$smarty.section.k}"; echo
"<li>$pos"; {/php}
{if ($ii % 2 == 0)}
<tr>
<td><input type="textbox" id="txtItem_no<?php echo $pos; ?>"
name="txtItem_no<?php echo $pos; ?>" value="{$dtl_array.$ileft.item_no}"
size=10>
<td>{$dtl_array.$ileft.s_desc}
<td><input type="textbox" id="txtUom<?php echo $pos; ?>"
name="txtUom<?php echo $pos; ?>" value="{$dtl_array.$ileft.uom}" size=10>
<td><input type="textbox" id="txtQty<?php echo $pos; ?>"
name="txtQty<?php echo $pos; ?>" value="{$dtl_array.$ileft.qty}" size=15>
{assign var=ileft value=$ileft+1}
{else}
<td>
<td><input type="textbox" id="txtItem_no<?php echo $pos; ?>"
name="txtItem_no<?php echo $pos; ?>"
value="{$dtl_array.$iright.item_no}" size=10>
<td>{$dtl_array.$iright.s_desc}
<td><input type="textbox" id="txtUom<?php echo $pos; ?>"
name="txtUom<?php echo $pos; ?>" value="{$dtl_array.$iright.uom}" size=10>
<td><input type="textbox" id="txtQty<?php echo $pos; ?>"
name="txtQty<?php echo $pos; ?>" value="{$dtl_array.$iright.qty}" size=15>
</tr>
{assign var=iright value=$iright+1}
{/if}
{assign var=ii value=$ii+1}
{/section}
{/section}
--
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]
|