mam taki sobie kodzik w .tpl:
Kod
{section name=maxl loop=$maxlen}
{if $smarty.section.maxl.first}
<form method="post" action="{$PARSER}" name="new_Firma" id="new_Firma">
<input type="hidden" name="forma" value="new_Firma">
<table>
{/if}
{if }{*Tu wyswietl przy 16 interakcji *}
<form>
<select name=states>
{html_options values=$option_values selected=$option_selected output=$option_output}
</select>
</form>
{/if}
<tr>
<td>Skrót</td>
<td><input type="text" size="" maxlength="{$maxlen[maxl]}" value="" id="fmj" name="fm[]"></td>
</tr>
{if $smarty.section.maxl.last}
</table>
{/if}
{/section}
{if $smarty.section.maxl.first}
<form method="post" action="{$PARSER}" name="new_Firma" id="new_Firma">
<input type="hidden" name="forma" value="new_Firma">
<table>
{/if}
{if }{*Tu wyswietl przy 16 interakcji *}
<form>
<select name=states>
{html_options values=$option_values selected=$option_selected output=$option_output}
</select>
</form>
{/if}
<tr>
<td>Skrót</td>
<td><input type="text" size="" maxlength="{$maxlen[maxl]}" value="" id="fmj" name="fm[]"></td>
</tr>
{if $smarty.section.maxl.last}
</table>
{/if}
{/section}
No i wlasnie jak spowodowac by wyswietlil przy 16 intrakcji wartosc zawarta w if-ie ? Przeszukalem manuale ale jakos nie moge sie do tego nigdzie dokopac, a zmienilem system templetow na smarty niedawno i jeszcze nie wszystko jest jasne
