Categories > TinyButStrong general >

td and tr

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: sdexter
Date: 2003-06-14
Time: 23:00

td and tr

I have table:
---------------
x1 |  x2 | x3
---------------
y1 |  y2 | y3
---------------
z1 | z2  | z3

---------------

x1 |  x2 | x3
---------------
y1 |  y2 | y3
---------------
z1 | z2  | z3
---------------

etc

<!- 1st row -->
<tr>
<td>x1</td>
<td>x2</td>
<td>x3</td>
</tr>
<tr>
<td>y1</td>
<td>y2</td>
<td>y3</td>
</tr>
<tr>
<td>z1</td>
<td>z2</td>
<td>z3</td>
</tr>
<!- 2nd row -->
etc

how i can make it with templates? (all data in mysql)
By: Skrol29
Date: 2003-06-15
Time: 12:24

Re: td and tr

Hello sdexter,

It depends on how data is stored in your database.
If x1,x2,x3,y1,y2,y3,z1,z2,z3 can be fields of record source, the you can use a block defined upon 3 rows using the 'extend' property.

Example:
<tr>
<td>[bk.x1;block=tr;extend=2]</td>
<td>[bk.x2]</td>
<td>[bk.x3]</td>
</tr>
<tr>
<td>[bk.y1]</td>
<td>[bk.y2]</td>
<td>[bk.y3]</td>
</tr>
<tr>
<td>[bk.z1]</td>
<td>[bk.z2]</td>
<td>[bk.z3]</td>
</tr>

Regards,