52 lines
1.5 KiB
PHP
52 lines
1.5 KiB
PHP
<?php if (!empty($emails)):?>
|
|
<table cellpadding = "0" cellspacing = "0" class="emailtable">
|
|
<tr>
|
|
<th><?php __('Email Date'); ?></th>
|
|
<th><?php echo $html->image('attach.png'); ?></th>
|
|
<th><?php __('Subject'); ?></th>
|
|
<th><?php __('To'); ?></th>
|
|
<th><?php __('CC'); ?></th>
|
|
<th><?php __('From'); ?></th>
|
|
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($emails as $email):
|
|
$class = null;
|
|
|
|
if ($i % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
$i++;
|
|
|
|
|
|
|
|
?>
|
|
|
|
<tr<?php echo $class;?>>
|
|
|
|
<td><?php echo $email['Email']['date'];?></td>
|
|
<td><?php if(count($email['EmailAttachment']) > 0) {
|
|
echo $html->image('attach.png');
|
|
}
|
|
?>
|
|
|
|
|
|
</td>
|
|
<td><?php echo $text->highlight($ajax->link($email['Email']['subject'], array('controller'=> 'emails', 'action'=>'frame/', $email['Email']['id']), array('update'=>'showemail')), 'Quotation'); ?></td>
|
|
<td><?php echo $email['Email']['to']; ?></td>
|
|
<td><?php echo $email['Email']['cc']; ?></td>
|
|
<td><?php echo $email['Email']['from']; ?></td>
|
|
|
|
<td class="actions">
|
|
<?php //echo $html->link(__('View', true), array('controller'=> 'emails', 'action'=>'view/', $email['Email']['id']));
|
|
echo $ajax->link('View', array('controller'=>'emails', 'action'=>'frame/', $email['Email']['id']), array('update' => 'showemail'));
|
|
echo $html->link('Print', array('controller' => 'emails', 'action'=>'printview/', $email['Email']['id']));
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|