{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
-<center>
<table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
<!-- BEGIN HEADER -->
{/if}
{/foreach}
{if !empty($dataArray)}
+ {if isset($totalAmount) and isset($totalTaxAmount)}
<tr>
<td {$labelStyle}>
{ts}Amount Before Tax:{/ts}
{$totalAmount-$totalTaxAmount|crmMoney}
</td>
</tr>
+ {/if}
{foreach from=$dataArray item=value key=priceset}
<tr>
{if $priceset || $priceset == 0}
</tr>
</table>
-</center>
</body>
</html>