[eluser]Alhazred[/eluser]
I have a table created in this way
Code:
foreach ($data as $value)
{
$tot += $value['price'];
$button = '<input type="button" name="del" id="del" value="'.lang('crd_del_item').'" alt="'.$value['id'].'-'.$value['id_type'].'" />';
$this->table->add_row($value['type'],$value['name'],$value['qty'],$value['price'], $button);
}
echo $this->table->generate();
This works, but I want to add a row like this at the end:
Code:
<tr>
<td colspan='3' class='total'><?php echo lang('crd_total_price') ?></td>
<td colspan='2' class='price'><?php echo $tot ?></td>
</tr>
How do I add it?