By: Salavat
Date: 2015-06-25
Time: 23:22
|
One row of table with several cells and one of the cells with multiple rows
I am trying to construct a table per record, the table will have header row, which is constant, placed in template. The next row of table is filled with merging, and the last cell in that row is divided into two columns and will contain several rows (number of rows depends on the data being merged).
Something like this:
____________________________
_______|_________|___________
| |______|_____
| |______|_____
_______|_________|______|_____
Data structure is as follows:
Array(
[0] => array('title'=>'subject Name',
'code'=>'subject Code',
'description'=>'subject Description',
'workload'=>array(
[0]=>array('title'=>'lab',
'hour'=>'15'),
[1]=>array('title'=>'exam',
'hour'=>'4')
)
),
and so on....
)
I failed to have multiple rows in one cell keeping other cells having only one row.
Is there any idea how to fullfil this?
Thanks in advance.
|