<?php $i = 0; ?>
<table border="0" align="center" width="100%" cellpadding="2" cellspacing="0">
<?php if (isset($dat)): ?><tr>
  <td class="item<?php echo$i?>" align="right" valign="top"><b><?php echo _("Date") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><?php echo $dat ?></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
<?php if (isset($frm)): ?><tr>
  <td class="item<?php echo$i?>" align="right" valign="top"><b><?php echo _("From") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><?php echo $frm ?></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
<?php if (isset($to)): ?><tr>
  <td class="item<?php echo$i?>" align="right" valign="top"><b><?php echo _("To") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><?php echo $to ?></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
<?php if (isset($cc)): ?><tr>
  <td class="item<?php echo$i?>" align="right" valign="top"><b><?php echo _("Cc") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><?php echo $cc ?></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
<?php if (isset($bcc)): ?><tr>
  <td class="item<?php echo$i?>" align="right" valign="top"><b><?php echo _("Bcc") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><?php echo $bcc ?></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
<?php if (isset($rep) && (isset($rep)) && (!isset($frm) || $rep != $frm)): ?><tr>
  <td class="item<?php echo$i?>" nowrap="nowrap" align="right" valign="top"><b><?php echo _("Reply-to") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><?php echo $rep ?></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
<?php if (isset($sub)): ?><tr>
  <td class="item<?php echo$i?>" align="right" valign="top"><b><?php echo _("Subject") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><?php echo $sub ?></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
<?php if (!empty($atc)): ?><tr>
  <td class="item<?php echo$i?>" align="right" valign="top"><b><?php echo _("Part(s)") ?>:</b>&nbsp;</td>
  <td class="item<?php echo$i?>" width="100%"><table cellspacing="2" cellpadding="1"><?php echo $atc ?></table></td>
</tr><?php $i = ($i + 1) % 2; endif; ?>
</table>
