By: EmilCf
Date: 2007-09-18
Time: 10:51
|
Grouping error
This is my PHP data & html :
PHP:
$array_[] = array('title'=>'t1', 'content'=>'a');
$array_[] = array('title'=>'t1', 'content'=>'b');
$array_[] = array('title'=>'t1', 'content'=>'c');
$array_[] = array('title'=>'t2', 'content'=>'a2');
$array_[] = array('title'=>'t2', 'content'=>'b2');
$array_[] = array('title'=>'t2', 'content'=>'c2');
HTML :
[test.title; block=begin; headergrp=title]
<div>[test.title; headergrp=title]</div>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>[test.content; block=tr; headergrp=content]</td>
</tr>
</table>
[test.title; block=end; headergrp=title]
-----------------------------------[End of code]
I though TBS will output :
<div>t1</div>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>a</td>
</tr>
<tr>
<td>b</td>
</tr>
<tr>
<td>c</td>
</tr>
</table>
<div>t2</div>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>a2</td>
</tr>
<tr>
<td>b2</td>
</tr>
<tr>
<td>c2</td>
</tr>
</table>
However, the result is :
<div>t1</div>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>a</td>
</tr>
</table>
<div>t2</div>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td>a2</td>
</tr>
</table>
What's wrong with my html code? Thanks....@__@"
|