<?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' ); 
?>
<br/>
<table width="100%">
	<tr>
		<td width="100">
			<a style="text-decoration:none;" href="<?php echo JRoute::_('index.php?option=com_rsfiles&view=files',false); ?>"><img style="vertical-align:middle;" src="<?php echo JURI::root().'components/com_rsfiles/images/icons/home.png'; ?>" alt="<?php echo JText::_('RSFL_HOME'); ?>" /> <?php echo JText::_('RSFL_HOME'); ?></a>
		</td>
		<td>&nbsp;</td>
	</tr>
</table>
<br/><br/>

<form action="<?php echo JRoute::_('index.php?option=com_rsfiles&task=processbookmarks&controller=files'); ?>" name="adminForm" method="post">
<table width="100%">
	<tr>
		<td align="right">
			<button type="button" onclick="rsfl_check_selected(<?php echo count($this->data); ?>,0);"><?php echo JText::_('RSFL_DOWNLOAD_SELECTED'); ?></button>
			<button type="button" onclick="rsfl_check_selected(<?php echo count($this->data); ?>,1);"><?php echo JText::_('RSFL_DOWNLOAD_ALL'); ?></button>
		</td>
	</tr>
</table>

<table class="rsfl_table">
	<thead>
		<tr>
			<th width="3%"><input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->data); ?>);"/></th>
			<th><?php echo JText::_('RSFL_FILENAME_BOOKMARK'); ?></th>
			<th width="3%"><?php echo JText::_('RSFL_DELETE'); ?></th>
		</tr>
	</thead>
	<tbody>
		<?php if (!empty($this->data)) foreach ($this->data as $i=> $row) { ?>		
			<tr>
				<td align="center"><?php echo JHTML::_('grid.id',$i,urlencode($row->path)); ?></td>
				<td><a href="<?php echo JRoute::_('index.php?option=com_rsfiles&view=files&layout=download&path='.urlencode($row->path)); ?>"><?php echo $row->name; ?><a></td>
				<td align="center"><a style="text-decoration:none;" href="<?php echo JRoute::_('index.php?option=com_rsfiles&task=deletebookmark&controller=files&path='.urlencode($row->path)); ?>">(X)<a></td>
			</tr>
		<?php } ?>
	</tbody>
</table>

<input type="hidden" name="boxchecked" id="boxchecked" value="0" />
<input type="hidden" name="action" id="action" value="" />
</form>