</tr> <?php $i = 0; foreach ($receipt_items as $item) { ?> <tr style="vertical-align:top;" class="<?php if ($i % 2 == 0) { echo "odd"; } else { echo "even"; } ?> " > <td style="text-align:left;"> <?php echo $item->getDate(); ?> </td> <td class="description"> <?php echo $item->getDescription(); ?> </td> <td align="right"> <?php echo number_format(ceil(amount_convert($item->getPrice()) * 100) / 100, 2); ?> </td> </tr> <?php $i++;
<tbody> <tr> <td colspan="3" class="items"> <table class="items"> <tbody> <tr class="one"> <th style="text-align:left;" width="20%"><?php echo gettext("Date"); ?></th> <th class="description" width="60%"><?php echo gettext("Description"); ?></th> <th width="20%" ><?php echo gettext("Cost"); ?></th> </tr> <?php $i=0; foreach ($receipt_items as $item){ ?> <tr style="vertical-align:top;" class="<?php if($i%2==0) echo "odd"; else echo "even";?>" > <td style="text-align:left;"> <?php echo $item->getDate(); ?> </td> <td class="description"> <?php echo $item->getDescription(); ?> </td> <td align="right"> <?php echo number_format(ceil(amount_convert($item->getPrice())*100)/100,2) ?> </td> </tr> <?php $i++;} ?> </tbody></table> </td> </tr> <?php