<?php
/**
* @version 1.0.0
* @package RSFiles! 1.0.0
* @copyright (C) 2009 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/

defined('_JEXEC') or die('Restricted access');
?>

<form action="index.php?option=com_rsfiles&task=reports" method="post" name="adminForm">
	<div id="editcell1">
		<table class="adminlist" width="100%">
			<thead>
			<tr>
				<th width="1%">#</th>
				<th width="1%">
					<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->data); ?>);"/>
				</th>
				<th width="50%">
					<?php echo JText::_('RSFL_REPORT'); ?>
				</th>
			</tr>
			</thead>
			<tbody>
	<?php
	$k = 0;
	for ($i=0,$n=count($this->data);$i<$n;$i++)
	{
		$row =& $this->data[$i];
		$checked=JHTML::_('grid.id',$i,$row->IdReport);
	?>
			<tr class="<?php echo "row$k"; ?>">
				<td><?php echo $row->IdReport; ?></td>
				<td align="center"><?php echo $checked; ?></td>
				<td><?php echo '<a href="index.php?option=com_rsfiles&task=viewreport&cid='.$row->IdReport.'">'.$row->ReportMessage.'</a>'; ?></td>
			</tr>
	<?php
		$k=1-$k;
	}
	?>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="5"><?php echo $this->pagination->getListFooter(); ?></td>
			</tr>
		</tfoot>
		</table>
	</div>
	<?php echo JHTML::_( 'form.token' ); ?>
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="id" value="<?php echo JRequest::getVar('id'); ?>" />
	<input type="hidden" name="task" value="reports" />
	<input type="hidden" name="option" value="com_rsfiles" />
	<input type="hidden" name="view" value="reports" />
	<input type="hidden" name="controller" value="reports" />
	</form>