I have this sequence that collects data entered in BreezingForms
of Joomla
, and presents them in a consecutive table.
The problem is that we would like to make this sequence drawn in 2 tables, one next to the other, so that it does not occupy 2 folios when it is exported in PDF
.
Would there be a way for it to reach a specific number of repetitions cut the sequence and follow it on another table?
From this code, we could know how to extract the data to present them individually if you wanted?
There is no more code than this and what it does is export the data entered through a form from BreeszingForms
in Joomla
to% PDF
that reaches an email.
Thank you very much for the help you can provide.
<?php
if (count($xmldata)){
foreach ($xmldata as $data) {
?>
<table width="100%" border="1" style="font-family:'Arial Black', Gadget, sans-serifserif; font-size:8pt; font-style:italic">
<tr>
<td width="35%">
<strong><?php echo wordwrap(htmlentities($data[_FF_DATA_TITLE], ENT_QUOTES, 'UTF-8'), 40, '<br />', true); ?>:</strong>
</td>
<td width="65%">
<?php echo $data[_FF_DATA_TYPE] == 'Signature' && file_exists(JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE]) ? '<img src="'.JPATH_SITE.'/media/breezingforms/signatures/'.$data[_FF_DATA_VALUE].'" />' : nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8')); ?>
</td>
</tr>
</table>
<?php
}
}
?>