>
image('pdf_type.png'); } else if($emailAttachment['EmailAttachment']['type'] == 'application/msword') { echo $html->image('document_type.png'); } else if($emailAttachment['EmailAttachment']['type'] == 'application/vnd.ms-excel') { echo $html->image('spreadsheet_document_type.png'); } else if($emailAttachment['EmailAttachment']['type'] == 'image/jpeg') { echo $html->image('image_type.png'); } else if($emailAttachment['EmailAttachment']['type'] == 'text/plain') { echo $html->image('text-x-generic.png'); } else { echo $html->image('unknown_type.png'); } ?> toReadableSize($emailAttachment['EmailAttachment']['size']);?> link(__('View', true), array('controller'=> 'email_attachments', 'action'=>'download', $emailAttachment['EmailAttachment']['id'])); ?>