<?php defined('_JEXEC') or die(); ?>
<form id="adminForm" action="<?php echo JRoute::_('index.php'); ?>" method="post" name="adminForm">
	<div style="margin-bottom: 10px;">
		<label>Filter by:</label>
		<?php echo JHTML::_('select.genericlist', $this->lists['search_cols'], 'filter_search_col', null, 'value', 'text', $this->lists['search_col']); ?>
		<input type="text" name="filter_search" value="<?php echo $this->lists['search']; ?>" />
		<input type="submit" value="Filter" />
	</div>
	<table class="adminlist">
		<thead>
			<tr>
				<th width="25"><?php echo JHTML::_('grid.sort', 'ID', 'id', $this->lists['order_Dir'], $this->lists['order']); ?></th>
				<th><?php echo JHTML::_('grid.sort', 'Email Address', 'email', $this->lists['order_Dir'], $this->lists['order']); ?></th>
				<th><?php echo JHTML::_('grid.sort', 'Remote Address', 'addr', $this->lists['order_Dir'], $this->lists['order']); ?></th>
				<th><?php echo JHTML::_('grid.sort', 'Date Submitted', 'created', $this->lists['order_Dir'], $this->lists['order']); ?></th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($this->data as $row) { ?>
			<tr>
				<td><?php echo $row->id; ?></td>
				<td><?php echo $row->email; ?></td>
				<td><?php echo $row->addr; ?></td>
				<td><?php echo $row->created; ?></td>
			</tr>
			<?php } ?>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="4"><?php echo $this->pagination->getListFooter(); ?></td>
			</tr>
		</tfoot>
	</table>
	<input type="hidden" name="option" value="com_readmore" />
	<input type="hidden" name="view" value="emails" />
	<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
	<input type="hidden" name="filter_order_Dir" value="" />
</form>