Hello!
I've problems with sub-blocks and creating select-option-list-menues.
In the lines with the '?' the 'select name=' and the 'id=' are missing
and in the line with the '??' there is a syntax like this: '<opt<option>'
and the first entry 'All TestB' is missing in the browsers output list menue.
What I only want to do is to create a couple of select lists to learn the how to.
Here is what I've done and was is happening:
--- php file ---
$itemArea[$i] = array('itemLabel' => $itemLabel, 'selectedItem' => $selectedItem);
$itemArea[$i]['item'][] = array('itemId' => $itemId, 'itemValue' => $defaultItem);
$Nbr = $tmpl->MergeBlock('showItemLabel','array','itemArea') ;
if ($Nbr > 0) $tmpl->MergeBlock('showItem','array','itemArea[%p1%][item]') ;
$tmpl->Show(TBS_OUTPUT);
--- html file ---
<table width="400" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#3399CC">
<td>[var.searchFormLabel;magnet=table]<br><br>
<tr>
<td>[showItemLabel.itemLabel;block=tr]<br><br>
<table border="1" align="center" cellpadding="2" cellspacing="0">
<tr bgcolor="#F0F0F0">
<td>
<select name="[showItem.itemId]" class="normal" id="[showItem.itemId]">
<option value="[showItem.itemValue]">[showItem.itemValue;block=option;p1=[showItemLabel.$]]</option>
<option>[showItemLabel.selectedItem;ope=html;select]</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
</td>
</table>
--- html-output ---
<table width="400" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#3399CC">
<td>title 1<br><br>
<tr>
<td>subtitle 1<br><br>
<table border="1" align="center" cellpadding="2" cellspacing="0">
<tr bgcolor="#F0F0F0">
<td>
? <select name="" class="normal" id="">
<option>All TestA</option>
<option>test1</option>
<option>test2</option>
<option>test3</option>
<option>test4</option>
</select>
</td>
</tr>
</table>
</td>
</tr><tr>
<td>subtitle 2<br>
<br>
<table border="1" align="center" cellpadding="2" cellspacing="0">
<tr bgcolor="#F0F0F0">
<td>
? <select name="" class="normal" id="">
?? <opt<option>All testB</option>
<option>next1</option>
<option>next2</option>
<option>next3</option>
</select>
</td>
</tr>
</table>
</td>
</tr>
</td>
</table>
|
Thanks for help
Ronny