<div id="viewemail">
Enquiry Number: <?php echo $email['Enquiry']['title']; ?> <br>
Date: <?php echo $email['Email']['date']; ?> <br>
Subject: <?php echo $email['Email']['subject']; ?> <br>
To: <?php echo $email['Email']['to']; ?> <br>		
From: <?php echo $email['Email']['from']; ?> <br>		
CC: <?php echo $email['Email']['cc']; ?> <br>		
<hr>
	<div id="printemailbody">
		
	<?php 
	/* strip out thinks messing up my link styles! */
	$cleanbody = strip_tags($email['Email']['body'], '<p><a><br><hr><span><table><tr><td>'); ?>
		
	<?php echo $cleanbody; ?>
	</div>
<div class="related">
	<h3><?php __('Attachments');?></h3>
	<?php if (!empty($email['EmailAttachment'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		
		<th><?php __('Name'); ?></th>
		<th><?php __('Type'); ?></th>
		<th><?php __('Size'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($email['EmailAttachment'] as $emailAttachment):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			
			<td><?php echo $emailAttachment['name'];?></td>
			<td><?php echo $emailAttachment['type'];?></td>
			<td><?php echo $number->toReadableSize($emailAttachment['size']);?></td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

</div>

</div>
