<div>
 <table class="test" style="table-layout: fixed !important;overflow:hidden;" cellpadding="0" cellspacing="0" autosize="1" border="0" width="100%" >
	<tbody>
		
<?php
	if (!empty($pdff_type) && empty($is_email))
	{
		?><tr><td colspan="4" style="text-align: center;"><h3 class="nm dib"><?php echo $pdff_type; ?></h3></td></tr><?php
	}
		?>
		<tr>
			<td class="label"><?php echo $tNo_text; ?></td>
			<td><b><?php echo $tNo; ?></b></td>
			<td class="label"><?php echo $tDate_text; ?></td>
			<td style="border-right: none;"> <b><?php echo $tDate; ?></b></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td style="border-right: none;">&nbsp;</td>
		</tr>
		<tr>
			<td class="label"><?php echo $dueDate_text ? $dueDate_text : 'Due Date'; ?></td>
			<td> <b><?php echo $dueDate; ?></b></td>
			<td class="label"><?php echo ($tType == 'PC' || $tType == 'PD') ? 'Supplier Invoice No #': 'Reference No' ?></td>
			<td style="border-right: none;"> <b><?php echo $ref; ?></b></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td style="border-right: none;">&nbsp;</td>
		</tr>
		<?php
		if (!empty($relNumber) && !empty($relDate))
		{
		?><tr>
			<td class="label"><?php echo $rel_tNo_text; ?></td>
			<td> <b><?php echo $relNumber; ?></b></td>
			<td class="label"><?php echo $rel_tDate_text; ?></td>
			<td style="border-right: none;"> <b><?php echo $relDate; ?></b></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td style="border-right: none;">&nbsp;</td>
		</tr>
		<?php
		}?>
		
		<?php 
		if (!empty($issalesrep) && !empty($sRepName))
		{
		?><tr>
		<?php if(!empty($sRepName)) { ?>
			<td class="label"><?php echo $srep_text; ?></td>
			<td> <b><?php echo $sRepName; ?></b></td>
		<?php } ?>
		<td class="label"><?php echo !empty($issalesrep) && !empty($sRepMobile) ?   $srep_mobile_text : ''; ?></td>
		<td style="border-right: none;"> <b><?php echo !empty($issalesrep) && !empty($sRepMobile)  ? $sRepMobile : ''; ?></b></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td style="border-right: none;">&nbsp;</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>
<style>

	.test tr:first-child td {
   border-top: none;
}

	.label {
		padding-left: 5px !important;
	}
</style>
