How can I fill two TMPL_LOOP's with some values in one cycle?
My source code is:
$vtmpl-newLoopMONTH_FROM;
$vtmpl-newLoopMONTH_TO;
while $curr_month=each$months
$vtmpl-addRow
array
MONTH_NUM=$curr_monthkey,
MONTH_NAME=$curr_monthvalue
, MONTH_FROM;
$vtmpl-addRow
array
MONTH_NUM=$curr_monthkey,
MONTH_NAME=$curr_monthvalue
, MONTH_TO;
$vtmpl-addLoopMONTH_FROM;
$vtmpl-addLoopMONTH_TO;
And my template is:
select name=mf
TMPL_LOOP NAME=MONTH_FROM
option value=TMPL_VAR NAME=MONTH_NUMTMPL_IF NAME=SELECTED SELECTED/TMPL_IFTMPL_VAR NAME=MONTH_NAME
/TMPL_LOOP
/select
...
select name=mt
TMPL_LOOP NAME=MONTH_TO
option value=TMPL_VAR NAME=MONTH_NUMTMPL_IF NAME=SELECTED SELECTED/TMPL_IFTMPL_VAR NAME=MONTH_NAME
/TMPL_LOOP
/select
But only second loop is filled. If I change the order of newLoop appearance (MONTH_TO, then MONTH_FROM), first one is filled, second is not.
Seems like addRow(rowdata, loopname) pays no attention to "loopname" parameter.
Am I right?