2009-02-09 14:25:49 -08:00
|
|
|
<?php if (!empty($emails)):?>
|
2009-02-09 21:39:26 -08:00
|
|
|
<table cellpadding = "0" cellspacing = "0" class="emailtable">
|
2009-02-09 14:25:49 -08:00
|
|
|
<tr>
|
|
|
|
|
<th><?php __('Email Date'); ?></th>
|
2009-02-09 21:39:26 -08:00
|
|
|
<th><?php __('Subject'); ?></th>
|
2009-02-09 14:25:49 -08:00
|
|
|
<th><?php __('To'); ?></th>
|
|
|
|
|
<th><?php __('CC'); ?></th>
|
|
|
|
|
<th><?php __('From'); ?></th>
|
2009-02-09 21:39:26 -08:00
|
|
|
|
2009-02-09 14:25:49 -08:00
|
|
|
<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>
|
2009-02-09 21:39:26 -08:00
|
|
|
<td><?php echo $html->link($email['Email']['subject'], array('controller'=> 'emails', 'action'=>'view/', $email['Email']['id'])); ?></td>
|
2009-02-09 14:25:49 -08:00
|
|
|
<td><?php echo $email['Email']['to']; ?></td>
|
|
|
|
|
<td><?php echo $email['Email']['cc']; ?></td>
|
|
|
|
|
<td><?php echo $email['Email']['from']; ?></td>
|
2009-02-09 21:39:26 -08:00
|
|
|
|
2009-02-09 14:25:49 -08:00
|
|
|
<td class="actions">
|
|
|
|
|
<?php echo $html->link(__('View', true), array('controller'=> 'emails', 'action'=>'view/', $email['Email']['id'])); ?>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</table>
|
|
|
|
|
<?php endif; ?>
|