<? _title($this, $this->Language('Emails')); ?>



<table class="content">
<tr>
	<th class="pj-filter pj-sort" id="client_email"><?=$this->Language('Client email');?></th>
	<th class="pj-filter pj-sort" id="client_name"><?=$this->Language('Client name');?></th>
	<th class="pj-filter pj-sort" id="from_name"><?=$this->Language('From name');?></th>
	<th class="pj-filter pj-sort" id="from_email"><?=$this->Language('From email');?></th>
	<th class="pj-filter pj-sort" id="subject"><?=$this->Language('Subject');?></th>
	<th class="pj-filter pj-sort" id="is_sent"><?=$this->Language('Is sent');?></th>
	<th class="pj-filter pj-sort" id="created_at"><?=$this->Language('Created at');?></th>
	<th class="pj-filter pj-sort" id="sent_at"><?=$this->Language('Sent at');?></th>
</tr>
<?
while($row = $this->emails->Assoc()){

	?>
	<tr>
		<td><?=$row['client_email'];?></td>
		<td><?=$row['client_name'];?></td>
		<td><?=$row['from_name'];?></td>
		<td><?=$row['from_email'];?></td>
		<td><?=$row['subject'];?></td>
		<td><?=$row['is_sent'];?></td>
		<td><?=$row['created_at'];?></td>
		<td><?=$row['sent_at'];?></td>
	</tr>
	<?
}
?>
</table>