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