My table is generated dynamically to display the work done by employees within a specific time period. Each work item is listed as a new row with 4 columns containing information on time spent, costs, etc. The data looks like this:
Worker1
mailservice | 2h | 3$ | 6$
phonecalls | 1.4h | 2$ | 2.8$
Worker2
mailservice | 4h | 3$ | 12$
storage | 11h | 8$ | 88$
Worker3
phonecalls | 23h | 3$ | 69$
and so on. The number of rows for each worker varies based on their activities during the given time frame. Similarly, the number of workers can vary in a single time frame. After generating this detailed table on screen, I now need to print it out in landscape format across two columns, like this:
<div class="halfboxR" id="do-print" style="border:1px solid #000;"><table border="0" class="fontxsmall">
<!-- Table content here -->
</table></div>