encapsulation problem with openoffice
This is my query. My proble is how write in openoffice this block:
In my openoffice I need a table that show my contacts and for each of them the linked accounts. so I try to show this with 2 table: table b inside table A.
So in the first table A I wrote something like this:
and in a second table B inside the first table A a wrote:
but is not correct..help..
Re: encapsulation problem with openoffice
The PHP snippet you've posted do not produce a correct data representation. After it is run, $mm contains only accounts names of the last contact, and $cc contains a resource id. But what ever, I think I have the idea of what you're trying to do.
In order to perform your encapsulation, you just have to use TBS sub-blocks. They are described in the online examples. Go and see here
and choose the Sub-block Example. It works exactly the same way for HTML or OpenOffice, you just have to take in account that the row entity in an OO table is "table:table-row".
Assuming that the $contacts array contains records having an "id" column and an "mm" column. And that the mm column contains the records having a "name" column. Then you can build your template with a table [A] with:
and a table [B] placed inside table A with: