<?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=viewstatistic&cid=<?php echo $this->cid; ?>" method="post" name="adminForm" id="adminForm">

<div id="editcell1">
	<table class="adminlist">
		<thead>
		<tr>
			<th width="2%">#</th>
			<th width="11%">
				<?php echo JText::_('RSFL_STATISTICS_DATE'); ?>
			</th>
			<th width="9%">
				<?php echo JText::_('RSFL_STATISTICS_IP'); ?>
			</th>
			<th width="70%">
				<?php echo JText::_('RSFL_STATISTICS_USER'); ?>
			</th>
		</tr>
		</thead>
		<tbody>
<?php
$k = 0;
for ($i=0,$n=count($this->data);$i<$n;$i++)
{
	$row =& $this->data[$i];
?>
		<tr class="<?php echo "row$k"; ?>">
			<td align="center"><?php echo $this->pagination->getRowOffset($i); ?></td>
			<td align="center"><?php echo date($this->rsfilesConfig['global_date'],$row->Date); ?></td>
			<td align="center"><?php echo $row->Ip; ?></td>
			<td><?php echo !empty($row->username) ? $row->username : JText::_('RSFL_GUEST'); ?></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="1" />
<input type="hidden" name="option" value="com_rsfiles" />
<input type="hidden" name="controller" value="statistics" />
<input type="hidden" name="view" value="statistics" />
<input type="hidden" name="IdFile" value="<?php echo $this->cid; ?>" />
<input type="hidden" name="task" value="viewstatistic" />
</form>

<?php
//keep session alive while editing
JHTML::_('behavior.keepalive');
?>